Permalink
Tosh on development and css
  • vote
    1
    0 starsTosh | Shared With: Everyone - Mar 15 2008 | css, development, ie6

    Quoted: 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.

  • vote
    1
    0 starsTosh | Shared With: Everyone - Mar 07 2008 | css, html, development
    Does CSS float?

    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 .

1 - 2 of 2 Faves

Related Content from Around Faves

developer

VIEW ALL

css

VIEW ALL