SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    gimme the uuuuuuuuuuu duuudie's Avatar
    Join Date
    Feb 2004
    Location
    Switzerland
    Posts
    2,253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question a list of the common hacks

    Hi

    I finally realized that using hacks was almost inevitable.

    Therefore I was wondering if you css experts could provide me a list of the most importants work around to know.

    I already know about the width issue in IE and the folat/three pixel jog problem.

    What else should I know?

    Thanks in advance

  2. #2
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    39,868
    Mentioned
    159 Post(s)
    Tagged
    4 Thread(s)
    Hi Alex,

    Well most of the common problems are disussed in the FAQ thread but heres a list of common problems/hacks that you should know how to foil.

    Broken box model - use sbmh - as mentioned in FAQ

    Three pixel jog in ie on floats - see faq for how to defeat this.

    Floats not clearing their parents - see floats in FAQ

    peek-a-boo bug in ie - use position:relative or height:1% (hide from other browsers)

    xml prologue - causes quirks mode and broken box model - see faq

    Various ie rounding bugs with percentages - make one element smaller e.g. 49.9%

    Star selector hack * html - best hack to use for ie when offering different code as no
    other browers are affected.

    mac double backslash hack - hides code from ie5mac.

    For an exhaustive list also look here:

    http://css-discuss.incutio.com/?page=CssHack
    http://css-discuss.incutio.com/?page=BoxModelHack
    http://centricle.com/ref/css/filters/

    Hope thats a start .

    Paul

  3. #3
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Also check out http://positioniseverything.net/ for a laundry list of common bugs you'll encounter.

  4. #4
    gimme the uuuuuuuuuuu duuudie's Avatar
    Join Date
    Feb 2004
    Location
    Switzerland
    Posts
    2,253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great replies

    thanks a lot for your help

    I finally feel that this browser world is becoming friendlier now

  5. #5
    \m/\m/ karinne's Avatar
    Join Date
    Dec 2002
    Location
    Aylmer, QC, Canada
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by duuudie
    I finally feel that this browser world is becoming friendlier now
    if it was, we wouldn't need all the hacks

    unless i totally misunderstood that

  6. #6
    gimme the uuuuuuuuuuu duuudie's Avatar
    Join Date
    Feb 2004
    Location
    Switzerland
    Posts
    2,253
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol

    Before making the effort of understanding the differencies between browsers (and I'm only at the start of it) and, mostly, accepting it (PHP doesn't suffer this) I was looking at CSS as a very complicated thing.

    Now I feel much better (note that it took me 7 months...)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •