SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member Echilon's Avatar
    Join Date
    Dec 2006
    Location
    England
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem selecting elements

    I decided to get rid of the tables on a project I'm doing and replace them with DIVs. The page I'm working on can be seen at http://izeit.nu/releases/1.5/index.p...nts&act=manage . The problem is that the elements in the top box aren't getting styled, even though they're in a table with a class of .niceform, and I've styled the elements of .niceform. They used to be in a <td>, inside a table of class .inputtable. Can anyone help me with how to apply the styles in the stylesheet?

  2. #2
    padawan silver trophybronze trophy markbrown4's Avatar
    Join Date
    Jul 2006
    Location
    Victoria, Australia
    Posts
    4,108
    Mentioned
    28 Post(s)
    Tagged
    2 Thread(s)
    Hi there, can you fix these errors first,
    http://validator.w3.org/check?uri=ht...26act%3Dmanage

    Inline elements cannot contain block level elements, so div's can not go in a's.

  3. #3
    SitePoint Member Echilon's Avatar
    Join Date
    Dec 2006
    Location
    England
    Posts
    21
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Line 268 - Missing '}' :P
    Why didn't the validator pick that up?

    Problem solved!

  4. #4
    SitePoint Guru Rob_D's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Echilon View Post
    Line 268 - Missing '}' :P
    Why didn't the validator pick that up?

    Problem solved!
    The validator is for XHTML, not CSS, which is why it didn't pick up that error.
    It has yet to be proven that intelligence has any survival value.
    Arthur C. Clarke


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
  •