SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
-
Sep 26, 2006, 14:19 #1
- Join Date
- Dec 2004
- Location
- USA
- Posts
- 1,407
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
<a href="" style="display: block;" works in FF but not IE
I want it so if you click anywhere in this LI tag, not just over the "MySite" link, it will take you to mysite.com. The code below works in Firefox but not IE.
Any ideas how to fix in IE?
<li><a href="mysite.com" style="display: block;">My Site</a></li>
-
Sep 26, 2006, 14:51 #2
- Join Date
- Dec 2004
- Location
- USA
- Posts
- 1,407
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
added width: 100% and it worked in IE. something in this nav section was causing it not work as it shold.
thanks everyone
-
Sep 26, 2006, 15:05 #3
- Join Date
- May 2006
- Location
- Aurora, Illinois
- Posts
- 15,476
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Sounds like the infamous "hasLayout" issue with IE. As you noted, adding a width to the element fixed the problem.
Also, please do not use inline styles. They're very messy, look unprofessional, and will over-ride any styles that you apply to the same elements in an external or embedded stylesheet.Save the Internet - Use Opera | May my mother rest in peace: 1943-2009
Dan Schulz - Design Team Advisor | Follow me on Twitter
SitePoint References: HTML CSS JavaScript | Become A Guru
WordPress SEO Checklist | What WordPress Plugins Do You Use?
Web Standards Curriculum | Image Free Equal Height Columns
Bookmarks