longtone Posted March 14, 2010 Share Posted March 14, 2010 This seems like a fairly simple menu with image replacement. The background image on the div should show through when there is no link, ie we're on that page. But it won't line up. I wouldn't mind but it's different on every browser. - btw, that's not the final version of the sign! http://www.phpplaypen.co.uk/test.php Link to comment https://forums.phpfreaks.com/topic/195202-how-do-i-get-this-image-replacement-to-line-up/ Share on other sites More sharing options...
haku Posted March 15, 2010 Share Posted March 15, 2010 What? I looked at your link and have no idea what you are trying to ask. Link to comment https://forums.phpfreaks.com/topic/195202-how-do-i-get-this-image-replacement-to-line-up/#findComment-1026142 Share on other sites More sharing options...
longtone Posted March 15, 2010 Author Share Posted March 15, 2010 oops, I should have said which browser to check it in In FF and IE8 the span background image is about 10 px below the div background image In Chrome it is about 5px below In IE7, IE6, Safari and Opera it lines up perfectly which is what I want The question is, how to get the span background to line up with the div background in all browsers? Link to comment https://forums.phpfreaks.com/topic/195202-how-do-i-get-this-image-replacement-to-line-up/#findComment-1026278 Share on other sites More sharing options...
haku Posted March 15, 2010 Share Posted March 15, 2010 ?? I'm not seeing that in FF. But try fixing your closing div tag - that may help. Link to comment https://forums.phpfreaks.com/topic/195202-how-do-i-get-this-image-replacement-to-line-up/#findComment-1026319 Share on other sites More sharing options...
longtone Posted March 15, 2010 Author Share Posted March 15, 2010 Good point about the closing div, don't know how that got in It doesn't make any difference though You're not seeing the shift in FF? Strange. I'm running FF 3.6 I'll try it on another machine Link to comment https://forums.phpfreaks.com/topic/195202-how-do-i-get-this-image-replacement-to-line-up/#findComment-1026418 Share on other sites More sharing options...
longtone Posted March 16, 2010 Author Share Posted March 16, 2010 I've sorted it: I moved position: relative from #sidebar_main p a to #sidebar_main p Link to comment https://forums.phpfreaks.com/topic/195202-how-do-i-get-this-image-replacement-to-line-up/#findComment-1027015 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.