Tosh | Shared With: Everyone - Mar 15 2008 | css, development, ie6Quoted: The Star-HTML Hack
The star-HTML hack is based on a bug of IE6’s DOM. The correct implementation for a HTML document would be to have the <html> element as the root element, but for some reason IE6 has a hidden element as the root element, which has the <html> element as its child.
...
Because of this mysterious parent element in IE6, we can use the descendant selector to apply CSS rules to IE6 only.
...
For instance, the * html p selector tells user agents to apply a style to a <p> element, which is a descedant of the <html> element, which is a descendant of any element.
Tosh | Shared With: Everyone - Mar 07 2008 | css, html, development
Didn't know about the overflow and :after techniques before.
Quoted: A common difficulty associated with the clear property is that its use requires adding extra markup in the document on subsequent elements.
...
Several authors have proposed various techniques to eliminate the need to add extra markup to the HTML document. These techniques include:
...
Add "float" to the container element.
Add "overflow:hidden" to the container element.
Add a CSS2 ":after" pseudo-class on the container element .
Related Content from Around Faves
developer
-
Zach's greatly improved the look of this sample app - and now the Save dialog comes up when you try to create a save (you need to fill in username, password, and email address to create an account).
2 FaversViewed: 22 Times - Tosh - Sep 04 20081 FaverViewed: 13 Times
- GKinlord093 - Jan 16 20087 FaversViewed: 25 Times
css
-
1 FaverViewed: 19 TimesQuoted: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
- wilburscoles - Aug 31 20082 FaversViewed: 21 Times
- mike - 22 days ago3 FaversViewed: 9 Times
