Grow your CSS skills. Land your dream job.

Table ID question

  • # July 17, 2013 at 8:16 pm

    I want to make changes to one table without effecting the other tables on my site, so I gave the table the id=”on-page-validate”

    Then I created these styles:

    #on-page-validate table {width: 60%; font-size: 18px;}
    #on-page-validate table caption {height: 25px; font-size: 18px;font-size: 1.8rem; /*font-family: “Droid etc.

    But this is not working the table is not using this css.

    What am I doing wrong?

    I appreciate any help.
    JoAnn

    Here is a link to the page I am talking about:

    http://joannfitzpatrick.com/rlv/quickvalidate-basic.html

    # July 17, 2013 at 8:44 pm

    It looks like you have those commented out on the css file.

    # July 18, 2013 at 5:57 am

    I did have some commented out. But I was referring to the code starting at line 869.

    # July 18, 2013 at 6:20 am

    I dont have access to your page.. but are you sure you are using correct css select ors?

    try
    table#on-page-validate{ ….}
    table#on-page-validate caption{ ….}

    # July 18, 2013 at 6:25 am

    Or even just

    #on-page-validate

    # July 18, 2013 at 6:28 am

    Which CSS file have you added these too?

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".