CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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 December 11th, 2012, 11:52 AM
Mschoaf Mschoaf is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 6 Mschoaf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 6 sec
Reputation Power: 0
Overlapping Text in List IE 8

Looking for some help with styling of text links in a list. Bascially the list looks perfect in Firefox, Chrome and IE9 but in IE8 wherever there is a space inside of the link (eg. "Illinois Open") the text seems to overlap. Once the link gets hovered on, the text reflows properly. I can "fix" it by using a non-breaking space in place of the actual spaces, but there has got to be a better fix. Dev site at ipgadev.ipcinc.net/foundation/index.asp.

List:
<nav id="subnav">
<ul>
<li class="first"><a href="/index.asp">Overview</a></li>
<li><a href="tournaments/2013/index.asp">Community Programs</a></li>
<li><a href="/illinoisopen/index.asp">Scholarships and Awards</a></li>
<li class="last"><a href="/foundation/index.asp">Illinois Golf Hall of Fame</a></li>
</ul>
</nav>

Styling navigation elements with:
#subnav ul { list-style:none; position:relative; margin: 0; padding: 0px; text-align:left; }
#subnav ul li { display: inline-block; position:relative; padding: 0; margin: 0; }
#subnav ul li a { display:inline-block; padding: 3px 8px 3px 8px; text-decoration: none; color: #686868; font-size: 1.0em; line-height: 24px; font-weight: normal; margin: 0 auto; overflow:hidden; border-right: 1px solid #ccc; }
#subnav ul li a:hover { color: #0082c8; }
#subnav ul li a.active { color: #b49956; }
#subnav ul li a.active:hover { color: #b49956; }
#subnav ul li.first a { border-left: 1px solid #ccc;;}

Any direction would be great. Thanks.

Reply With Quote
  #2  
Old December 11th, 2012, 12:34 PM
Mschoaf Mschoaf is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 6 Mschoaf User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 8 m 6 sec
Reputation Power: 0
It appears adding auto to the margin in this line resolved it:

#subnav ul li { display: inline-block; position:relative; padding: 0; margin: 0 auto; }

Does this make sense to the CSS gurus?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Overlapping Text in List IE 8

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap