SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jan 2008
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unknown pseudo-element or pseudo-class :nth-child amongst other things

    I ran the site thro w3 validate ccss and one of the error was as above
    -works in FF but not in IE
    Second point there isnít any blank space at bottom of page?

    Ignore border round text that was just to let me see how positioning was working

    http://www.1812privateers.org/Great%20Britain/Reg.htm

  2. #2
    SitePoint Enthusiast Adam Chrapkowski's Avatar
    Join Date
    Sep 2011
    Location
    Poland
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The first thing:
    Code:
    Table { border:0 solid #C0C0C0; }
    use table instead of Table and border: none; instead of border:0 solid #C0C0C0;
    so set this rule to:
    Code:
    table { border: none; }
    The second one the cell border is browser default, use explicitly:
    Code:
    td { border:1px solid #000; }

  3. #3
    SitePoint Member
    Join Date
    Jan 2008
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks I'll do that.

  4. #4
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,281
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by gules View Post
    I ran the site thro w3 validate ccss and one of the error was as above
    You would need to validate against css3 and not css2.1 as nth child is css3
    -works in FF but not in IE
    In IE it's only supported from IE9+

  5. #5
    SitePoint Member
    Join Date
    Jan 2008
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah! that explains it I was testing against ie8- Thanks I'll go back and do that .


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
  •