Blogvaria

This page is brought to you by Blogvaria (http://blog.evaria.com).

To obtain more information, ask questions and interact please visit our website.

Back to Blogvaria landing page
Feedback
Subscribe
   
Blogvaria

 

The personal pages

Internet Explorer and the LI tag

TrackBack | Filed by Max C under CSS & Design | Post popularity 6%

Once again I forgot about one of the (many) bugs in Internet Explorer while I was completing the style sheet for a new website to one of my clients. In order to present the menus I’m using the List feature in HTML, and it all looked fine in every browser except IE.

For some reason IE decides by default to add a huge space between each list element which breaks up the design to say the least. The “fix” however is simple, but as this post reflects its easy to forget about it. All you need to do is add the following in your CSS:

* html ul li a { height: 100%; }

Or as follows if you have assigned class names for the link tag A and placed it inside one of your DIV tags:

* html div#someID ul li a.someClass { height: 100%; }

Hope this post proves helpful to anyone else who suffers from Goldfish Memory from time to time…

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • BlinkList
  • blogmarks
  • del.icio.us
  • De.lirio.us
  • digg
  • Furl
  • NewsVine
  • Netscape
  • Reddit
  • Spurl
  • SphereIt
  • Technorati
  • YahooMyWeb
  • DZone
  • feedmelinks
  • Linkter
  • Ma.gnolia
  • Slashdot
  • StumbleUpon
  • TailRank
  • co.mments
01

Internet Explorer and the LI tag « jao said,

March 7, 2007 @ 12:31 am

[...] read more | digg story [...]

URL for comments RSS 2.0 feed Subscribe to Comments | TrackBack URI

Leave a Comment

Akismet has protected Blogvaria from 71,685 spam comments. Design by Evaria.com. Powered by WordPress.
Our beloved and trusted server has rendered 1.685 pages so far today, an amazing 4.008 pages yesterday
and even more astonishingly 101.335 pages since 12 September 2008 alone without dropping a byte nor a pixel.

Close
E-mail It