CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 22nd, 2004, 11:40 AM
davepass davepass is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 318 davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 34 m 28 sec
Reputation Power: 30
css layout issue

This is a pretty specific CSS question, but I do not see a CSS forum anywhere so i'm hoping someone here can help.


In my site, I have assigned a background image to the <div> that contains my secondary navigation. I'm attempting to overlay my navigation buttons so that they line up at an exact position over the background image. It is working fine and Internet Explorer 6, but seems to be off by pixel or two and Netscape 7.1.

http://www.budonk.com/budonk.php?prim=workwedo

If you view this page in both browsers (looking specifically at the images beneath the logo), you will see that the text of the buttons lines up perfectly with the shape of the button (which is part of the bg image) and Internet Explorer, while in Netscape, the text for each button is too low by one or two pixels.

You can view the page's source to see all of the CSS. I'm thinking it has something to do with the style #leftpane and/or .sNavImg ... but not too sure ...

Any ideas?

Reply With Quote
  #2  
Old April 22nd, 2004, 12:10 PM
Nunzio390's Avatar
Nunzio390 Nunzio390 is offline
Insignificant Peon
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Tharsis Ridge (Martian lowlands)
Posts: 194 Nunzio390 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 38 m 55 sec
Reputation Power: 6
Both MSIE and Mozilla Firefox browsers render it properly. But I do see the problem you indicated in both Netscape and Opera browsers.

It's probably something in the stylesheet but I have no time right now to look at it. Perhaps later or tomorrow.

Reply With Quote
  #3  
Old April 22nd, 2004, 05:23 PM
davepass davepass is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 318 davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 34 m 28 sec
Reputation Power: 30
thanks, i'll stay tuned ...

Reply With Quote
  #4  
Old April 22nd, 2004, 09:54 PM
davepass davepass is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 318 davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level)davepass User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 5 Days 34 m 28 sec
Reputation Power: 30
figured it out

it was a whitespace issue.

I was using a foreach statement in php to render out those secondary nav buttons and in my trying to keep the code readable and organized, some funky spaces and line breaks were put into the html sent to the browser. And of course, this whitespace was not rendered consistently between browsers

tightened everything up and it seems to work fine

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css layout issue


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway