Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2010
    Location
    Toronto
    Posts
    95
    Thanks
    52
    Thanked 0 Times in 0 Posts

    problem-styling the first table out of two

    I have two tables on my web-page. Both of them have caption titles.
    I want the caption for the first-table to show up at the bottom of the table.

    My code is
    Code:
    body table:first-child caption{
    caption-side: bottom;
    }

    the code does not produce the desired result. Can someone please tell me why?
    I don't want to use any ids or classes.

    Thank you very much for helping me

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    Post the full code. You're probably using the :first-child wrong.

  • #3
    New Coder
    Join Date
    Oct 2010
    Location
    Toronto
    Posts
    95
    Thanks
    52
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Sammy12 View Post
    Post the full code. You're probably using the :first-child wrong.
    Thank you . I just realized that my browser does not support first-child.


  •  

    Posting Permissions

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