SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: CSS hacks

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2003
    Location
    London
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CSS hacks

    found these hacks in a style sheet I have been having a play with.. an anyone tell me what each one does???

    #tabNavigation {
    padding: 0px;

    }

    html #tabNavigation/* */ {
    padding: 2px;
    }

    html>body #tabNavigation {
    padding: 4px;
    }

    head+body #tabNavigation {
    padding: 6px;
    }


    Thanks in advance

  2. #2
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Give alternative styles to different browsers. IE 5 and Mozilla I think.

    They all adjust the padding for the same thing though.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2003
    Location
    London
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks....but...I figured that

    just wanted to know which hack affects which browser..

  4. #4
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Karve
    Thanks....but...I figured that

    just wanted to know which hack affects which browser..

    I just answered that question in my last line.

    The padding of #tabNavigation is adjusted for different browsers.

  5. #5
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello World

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
  •