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 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jan 2008
    Posts
    334
    Thanks
    9
    Thanked 0 Times in 0 Posts

    How would this be done?

    Code:
    #top_inner_content, .top_links {
    background-color:#97B064;
    margin:0px auto;
    width:700px;
    height:24px;
    }
    
    .top_links a:link, a:visited {
    color:#fff;
    font-size:11px;
    font-weight:normal;
    text-decoration:none;
    }
    How would I put the .top_links style in with the top_inner_content?

  • #2
    New Coder
    Join Date
    May 2008
    Location
    Sydney, Australia
    Posts
    45
    Thanks
    0
    Thanked 8 Times in 8 Posts
    Ummm, what do you mean?

  • #3
    Regular Coder
    Join Date
    Jan 2008
    Posts
    334
    Thanks
    9
    Thanked 0 Times in 0 Posts
    What I mean is that I don't have to have to have to define them both on the page, I just want to be able to put <div id="top_inner_content"></div> and it'll have the stuff that was define in the top_inner_content id and the stuff that was define in the top_links class. I don't know any other way to put it in the top_inner_content because of the {}

  • #4
    Senior Coder
    Join Date
    Nov 2003
    Location
    Minneapolis, MN
    Posts
    2,879
    Thanks
    2
    Thanked 65 Times in 56 Posts
    Code:
    #top_inner_content, .top_links, .top_links a:link, .top_links a:visited {
    background-color:#97B064;
    margin:0px auto;
    width:700px;
    height:24px;
    color:#fff;
    font-size:11px;
    font-weight:normal;
    text-decoration:none;
    }
    ??? Not sure what you're trying to describe, but this will get all of your rules in one declaration.


  •  

    Posting Permissions

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