CSS’s “hasLayout” and the devil within

Seriously, ‘hasLayout’ can a be way to fix problems in IE 6 and “iExploder” 7. But triggering this on such a very generic selector as ‘ul li’ is pretty dangerous. Height [height: 1%] is a “hasLayout” trigger, and giving layout to an “li” causes such things as losing the list-marker and other Bad Things ™ © like eating goldfishes alive.

We’ll know of many CSS dysfunction in Internet Explorer; even the latest version 7.x release from Microsoft is not spared. HasLayout can a be way to fix such CSS dysfunction in both IE 6 and 7. However, an inner Devilish Venom of “hayLayout” is discovered when some IE users of Lorem-Ipsum Wordpress Theme complained about ordered list not being ordered.

Reason: The Lorem-Ipsum style tries to explore the power of “hasLayout” on a generic selector as simple as “ul li” and that proved pretty dangerous. My bad, I never checked the layout it in IE and was testing them against Firefox, Safari and Opera on the Mac.

Lesson Learnt: Well, look like one do not need to really do a “hasLayout” with generic selector like “ul li” at all.

If you need to know more about His Evil Majesty hasLayout, someone wrote an endlessly long, boring and tedious article on the subject. It is only about 45 printed pages long! Blame Chris Wilson, Philippe Wittenbergh for all such an over-sized gem.

[poll=9]


Don't like it? There are lots of published articles, pick a random one.

oCricket

Brajeshwar posted this article on Mon, Apr 30th, 2007 at 1:06 pm
Categorized under Technology

Prev Article: Flex is now Open Source - one of the sweetest announcement from Adobe

Next Article: I respect, regard and recommend these people

Archives: Visit the Archives for more articles.

Comments Post Yours

There are one response so far. You can follow any responses to this entry through the RSS feed. You can leave a response, or trackback from your own site.

  1. Pings & Trackbacks Sites, articles & blog posts linking back to this article.

Post yours

Sidenotes

Quick notes, scribbles, somehow related to this website and to what I do. Or perhaps I'm just plain lazy to make them into a full article.

Great Indian Developer Summit 2009

I got a Press Release of the upcoming GIDS '09 and here is an excerpt. The summit's program covers Java, REST, Unit testing, Groovy, Spring, Struts 2.0, SOA, Cloud Computing, Web Services, JRuby, RoR, Ruby, JVM, ...21st Jan, 2009

The flourishing gun market in Pakistan

VICE Travel: Darra, Pakistanby Top-Notch112 (Via: Deep Green Crystals) 20th Jan, 2009

Angry Ringtone for iPhone and others

[audio:http://audio.brajeshwar.com/angry-ring-ring.mp3] The ANGRY RINGTONE for iPhone. (Click the PLAY button above!) Download * iPhone Ringtone (.m4r) * MP3 Ringtone (.mp3) * Zipped (both .m4r and .mp3) To use it as an iPhone Ringtone; just double click the file "angry-ring-ring.m4r" and it ...15th Jan, 2009

IIM Ahmedabad's Leverage 2009

Leverage, the Venture Capital and Private Equity Club of IIM Ahmedabad and the Centre for Innovation Incubation and Entrepreneurship bring to you the 1st edition of the Venture Capital and Private Equity Conference on the ...12th Jan, 2009

Fedora 10 Released

Let's talk history! Fedora was created in late 2003 as a Linux based Operating System which gives the users an admittance from anywhere in the world to the most up-to-date free and open source software ...28th Nov, 2008

View the Sidenotes Archive

Play the Penguin Game

Recommended

  • Ode to Apple Dedicated to Apple - Mac, iPhone, iPod, iTunes, Quicktime, Apple TV and all the awesome softwares for the Apple Mac.
  • Not Safe for Work Ever clicked a link and felt embarrassed with the content in front of your co-workers? Ever caught unaware because the funny link your friend sent was a little beyond funny? Let’s minimize that with NSWF.
  • My Special Job My Special Job is a place where you can look for your weird necessities, strangely superb employees, when your need are more of those hackers, geeks, and ultimate rockstars in the Internet Technology.
  • o! Just Me Of colorful cultures, entertainment, media, life hacks, music, books and movies from hollywood & bollywood.
  • oCricket oCricket is about Cricket and people enthusiastic about it.
  • ActionScript 3.0 Reference Flash/Flex ActionScript 3.0 Reference.
  • Downloads All downloads, Free and Open Source.

Download free Brajeshwar Wordpress Theme

Brajeshwar

Brajeshwar I firmly believe in keeping things simple, easy for users and I envison pushing the technical envelop time and again for the betterment of viable commercial and practical applications. More about me.

Brajeshwar's affinity with Adobe

My Photos

More photos on Flickr

Member of 9rules Network

Since its inception on 11th June, 2001, "Brajeshwar" has 949 Articles and 6,471 comments, contained within 22 categories and 1,497 tags.