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


Possibly Related Articles

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.

Introduction to Adobe AIR (NetTuts)

Nettuts have a nice Introduction to Adobe AIR which focus on using HTML/JS to build an AIR Application. It covers -- Adobe AIR Architecture, How to install AIR, Get the development SDK, Configurations, gets on to ...2nd Oct, 2008

Decide Team Type from Books

What do you think of the "Team-Type" if they got these books recently? What "Team-Type" do these books suggest? ( surveys) 29th Sep, 2008

What do investors look for in a startup?

A great video Interview with Venture Hacker Naval Ravikant answering the age-old question: What do you look for in a startup? Investors look for two things that are paramount above all: # Great team: It's obvious. It's a ...27th Sep, 2008

You don't mess with the 'Englineer Bother'

(Via: Hiring Horror) 24th Sep, 2008

Dear Adobe

Do you have a gripe with the Adobe Softwares that you use? Do you have complaints about Adobe Softwares? Please visit Dear Adobe to file your informal gripe with Adobe. 15th Sep, 2008

View the Sidenotes Archive

Play the Penguin Game

Recommended

  • 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.
  • Forum Oinam’s technical discussion forum where developers and designers can discuss all technical topics.
  • Downloads All downloads, Free and Open Source.
  • oCricket oCricket is about Cricket and people enthusiastic about it.
  • AS 2.0 Reference Reference for ActionScript 2.0 Programming Language used in Flash. Primarily stashed here for my own personal reference.
  • Ode to Apple Dedicated to Apple - Mac, iPhone, iPod, iTunes, Quicktime, Apple TV and all the awesome softwares for the Apple Mac.

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 Personal Identity Portal powered by VeriSign Labs

Brajeshwar's affinity with Adobe

My Photos

More photos on Flickr

Member of 9rules Network

Since its inception on 11th June, 2001, "Brajeshwar" has 862 Articles and 5,993 comments, contained within 20 categories and 1,229 tags.