Forums | MacLife
You are not logged in.
#1 2003-10-02 3:32 pm
- jdsmith575
- Member
- From: Texas Tech Univ.
- Registered: 2001-04-09
- Posts: 741
- Website
IE Mac doing weird things to my CSS layout
http://www.casnr.ttu.edu/testing/
It's beyond me at this point why it won't work in IE Mac. The logo should butt up against the top of the page, but instead gets about 15px of space between itself and the top. It seems to work perfectly in all other browsers except IE Mac.
Code:
body {
margin: 0;
padding: 0;
color: #000;
background: #FFF url("../images/background2.jpg") repeat-y;
border: 0;
font-family: lucida, helvetica, sans-serif;
font-size: small;
}
#header {
margin: 0;
padding: 0;
border-bottom: 7px solid #000;
background: #FFF;
background-image: url("../images/logo.jpg");
background-repeat:no-repeat;
color: #000;
height: 88px;
}
That's pretty much the relevant code.
Anyone got a suggestion? 
Offline
#2 2003-10-02 7:45 pm
- TonyPrevite
- Slobbering Jester
- Royal Wombat

- From: Glendale, AZ
- Registered: 2002-04-14
- Posts: 3606
- Website
Re: IE Mac doing weird things to my CSS layout
I would lose the padding and border declarations for the body tag and also lose padding in the header.
And I took a quick peek at the source, I seem to remember that:
Code:
<style type="text/css" media="all">
@import "./css/main.css";
</style>
IE had trouble with the @import method. You could try combining your 2 stylesheets with the link method.
A single style may also be given through multiple style sheets:
<LINK REL=StyleSheet HREF="basics.css" TITLE="Contemporary">
<LINK REL=StyleSheet HREF="tables.css" TITLE="Contemporary">
<LINK REL=StyleSheet HREF="forms.css" TITLE="Contemporary">
In this example, three style sheets are combined into one "Contemporary" style that is applied as a preferred style sheet. To combine multiple style sheets into a single style, one must use the same TITLE with each style sheet.
Offline
#3 2003-10-02 9:15 pm
- Light Speed
- Doubter of Einstein

- Registered: 2002-08-17
- Posts: 3694
Re: IE Mac doing weird things to my CSS layout
That combo info is cool.
Thanks Tony 
Offline
#4 2003-10-03 12:28 pm
- jdsmith575
- Member
- From: Texas Tech Univ.
- Registered: 2001-04-09
- Posts: 741
- Website
Re: IE Mac doing weird things to my CSS layout
Very cool indeed.
Question though. How will NN4 handle the link method? I used import so that NN4 wouldn't get any CSS.
Offline
#5 2003-10-03 12:45 pm
- TonyPrevite
- Slobbering Jester
- Royal Wombat

- From: Glendale, AZ
- Registered: 2002-04-14
- Posts: 3606
- Website
Re: IE Mac doing weird things to my CSS layout
I was wondering if that was the reason you did that.
I view support for NN4 as a personal preference. I personally don't make any code changes or workarounds for a 6 year old browser. I quit supporting NN4 entirely roughly 2 years ago and have never heard a peep about it 
Offline
#6 2003-10-03 9:18 pm
Re: IE Mac doing weird things to my CSS layout
I personally don't make any code changes or workarounds for a 6 year old browser. I quit supporting NN4 entirely roughly 2 years ago and have never heard a peep about it

Offline
#7 2003-10-06 12:16 pm
- jdsmith575
- Member
- From: Texas Tech Univ.
- Registered: 2001-04-09
- Posts: 741
- Website
Re: IE Mac doing weird things to my CSS layout
I don't really see it as a work around, but rather a suggestion to upgrade.
Offline

