/    Sign up×
Community /Pin to ProfileBookmark

Padding/Margin issue in IE6/7 and transforming a table to divs…

Hello, I have two main questions, the first and most important is the following:
[url]http://www.disembodied.us[/url]

Take a look at that in FF, IE6 and/or IE7 (both IEs do the same thing). The problem is my tabbed menu (the list) jumps way up in the IEs but not in FF or Opera.

I can’t imagine its the old box model problem the old IEs had, since they were supposed to fix those… and even if it was the box model hack doesn’t fix it. I can solve the problem by increasing the #header h1 padding by like 30px but then it is messed up in FF and Opera of course.

Anyway, here are the parts of the CSS that are probably important for this, but let me know if there are more styles that are needed:

[CODE]
#header {
padding: 0;
margin: 5px 70px 20px 70px;
text-align: center;
}

* html #header {
margin-bottom: 50px;
margin-bottom: 20px;
}

* html #header h1 {
padding: 50px;
padding: 15px;
}

#header h1 {
font-size: 48px;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-style: italic;
background-color: transparent;
padding: 15px;
}
[/CODE]

As you can see, I have included the box model hack in this, but its not solving the problem (since its not really supposed to apply to padding anyway… its supposed to correct width but I thought a similar method would work.

If anyone has any idea how to fix this it would be great… the page validates in both xhtml and css, so i know its not that.


___________

The second issue I am having is on the same page… I have used a table (don’t flog me please!) so I could place the content area next to the sidebar. DIVs wouldn’t work because the only way I knew to get them to be placed side by side is with float, but because they have to be held inside another div (to not creep up on the tabbed list menu) the float would break them out and screw the layout up. Is there anyway to maintain the site look as it is but replace that nasty table code ?

Thanks for any help!,
Marcus
Disembodied Studios
[url]http://www.disembodied.us[/url]

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@disembodiedauthorNov 04.2006 — Update on the padding issue:

I solved the problem by using the Conditional Comment trick for IE and just made a separate stylesheet that contained the header h1 element with a greater amount of padding for IE specifically.

But I am still trying to figure out how to get rid of the table and replace it with divs.

Thanks
×

Success!

Help @disembodied spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...