SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    \m/\m/ karinne's Avatar
    Join Date
    Dec 2002
    Location
    Aylmer, QC, Canada
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question CSS inheritance?!

    Here's my site and here's my CSS

    My problem is in the .rightcontent section. I can't remember how to do the inheritance so that all h1 in .rightcontant class are as define. If I put the style directly into the <h1> it works!?

    Help please....

    TIA

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    In your stylesheet do this:
    Code:
    <style type="text/css">
     .rightcontent h1 {
      /*your attributes here*/
      }
    </style>
    This will work for <h1> tags that are inside an element of the rightcontent class. Is that what you wanted or is your <h1> specifically rightcontent-classed? Also, your first link didn't work but your second one did.

    {EDIT}: I saw your site and CSS. Apparently my solution will work for you. Right now you're specifying h1.rightcontent, which would mean your HTML would have to look like this:
    <h1 class="rightcontent">
    But you have <div>s with the class of rightcontent so use my solution.


    --Vinnie
    Last edited by vgarcia; Dec 6, 2002 at 12:16.

  3. #3
    \m/\m/ karinne's Avatar
    Join Date
    Dec 2002
    Location
    Aylmer, QC, Canada
    Posts
    409
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I had "your" solution before and that didn't work... so I tried it the other... and that still doesn't work!?


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
  •