|
ash
|
 |
« on: January 20, 2008, 09:57:20 PM » |
|
Just working on a new site and i've got an annoying IE6 bug. The CSS code that works fine for IE7 and FF is: .PostDate { text-align: center; margin: 0px; position: absolute; top: 0px; left: 10px; background: url(images/PostHead.gif) repeat-x bottom; padding: 0px 10px 6px 10px;} The code that works for IE6 (but not IE7 and FF) is: .PostDate { text-align: center; margin: 0px; position: absolute; top: 0px; left: -60px; background: url(images/PostHead.gif) repeat-x bottom; padding: 0px 10px 6px 10px;} Any ideas on how to fix this? Is the final piece of CSS before the template is finalised.
|
|
|
|
|
Logged
|
|
|
|
|
dazsim
|
 |
« Reply #1 on: January 20, 2008, 10:58:34 PM » |
|
err... you know those 2 blocks of code are identical right?
|
|
|
|
|
Logged
|
|
|
|
|
yourweb
|
 |
« Reply #2 on: January 20, 2008, 11:02:35 PM » |
|
err... you know those 2 blocks of code are identical right? I was not going to tell him that. Just let him think that he is the problem and not the code. :lol:
|
|
|
|
|
Logged
|
|
|
|
|
ash
|
 |
« Reply #3 on: January 21, 2008, 09:03:53 AM » |
|
Ha Ha sorted now!
|
|
|
|
|
Logged
|
|
|
|
|
yourweb
|
 |
« Reply #4 on: January 22, 2008, 02:25:43 AM » |
|
dazsim now see what you did. He got it fixed to fast. :lol:
|
|
|
|
|
Logged
|
|
|
|
|
dazsim
|
 |
« Reply #5 on: January 22, 2008, 10:44:25 AM » |
|
aww but i was trying to be helpful. maybe he was using all his brain processing power to solve the problem :wink: Darren
|
|
|
|
|
Logged
|
|
|
|
|
yourweb
|
 |
« Reply #6 on: January 22, 2008, 02:31:07 PM » |
|
aww but i was trying to be helpful. maybe he was using all his brain processing power to solve the problem :wink: Darren What are you? Some type of brown noser? Haven't you learned anything by now. He will now have an even bigger head. :lol:
|
|
|
|
|
Logged
|
|
|
|
|
ash
|
 |
« Reply #7 on: January 22, 2008, 06:42:13 PM » |
|
Er guys, i meant i'd fixed the error in my post, not the error on my site!
|
|
|
|
|
Logged
|
|
|
|
|
dazsim
|
 |
« Reply #8 on: January 23, 2008, 01:41:54 AM » |
|
its sticky but have you thought about browser specfic content serving? might be a little over the top for a 3 character difference in the code mind. i.e. detect which browser there using and serve the content accordingly. There was another thread a few days ago i think i read about doing exactly this.
Darren
|
|
|
|
|
Logged
|
|
|
|
|
yourweb
|
 |
« Reply #9 on: January 23, 2008, 05:14:43 AM » |
|
Darren is right. There is a snippet of code that you can add to your site that will do this.
|
|
|
|
|
Logged
|
|
|
|
|
ash
|
 |
« Reply #10 on: January 23, 2008, 01:27:23 PM » |
|
its sticky but have you thought about browser specfic content serving? might be a little over the top for a 3 character difference in the code mind. i.e. detect which browser there using and serve the content accordingly. There was another thread a few days ago i think i read about doing exactly this.
Darren Yeah i was hoping their was an alternative. As you say it seems a fair amount of work just to alter a tiny imperfection! He ho must be done though. Thanks
|
|
|
|
|
Logged
|
|
|
|
|
MuNKy
|
 |
« Reply #11 on: January 28, 2008, 11:40:11 AM » |
|
Can you show us the page its on? I reckon the issue will be because of how ie renders px differently, so it will probably be because of the padding. Without seeing it though its hard to see what the problem actually is.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
pagetta
|
 |
« Reply #13 on: January 28, 2008, 12:10:16 PM » |
|
could it be something to do with the 70px left padding in post head? it says to me that for some reason IE7 & FF don't recognise this padding where IE6 does.
Sorry i can't look into it more, but i think this 70px padding left may be the bit that needs changing or adjusting, not the position on the postdate class.
|
|
|
|
|
Logged
|
|
|
|
|
ash
|
 |
« Reply #14 on: January 28, 2008, 01:31:43 PM » |
|
Thanks, yes this could be an issue.
Now displaying ok in FF but still iffy in IE6 (not sure about IE7)
Will take a look this evening when i have more time mysefl.
|
|
|
|
|
Logged
|
|
|
|
|