38 users online (2 members and 36 guests)  


  Results 1 to 2 of 2

Related

  1. css question    Forum: CSS Forum
    Replies: 2
  2. Yet another question?    Forum: HTML Forum
    Replies: 3
  3. AnOtHeR QuEsTiOn    Forum: HTML Forum
    Replies: 1
  4. Question    Forum: HTML Forum
    Replies: 2
  5. another question...    Forum: HTML Forum
    Replies: 6
  1. #1
    tershagirl's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2005
    Posts
    1

    Very elementary CSS question, please help!

    I'm trying to do something really simple in CSS, just have a main font size & then a different one inside a set of divs. There's just something really basic I'm missing & I don't know what it is.

    Feel free to point/laugh/mock/whatever, as long as you'll help me out a little while you're doing it...

    Thank you so much,
    T

  2. #2
    vinyl-junkie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Sep 2005
    Posts
    721

    Re: Very elementary CSS question, please help!

    Welcome to the forum, tershagirl.
    Um, it's a little hard to point, laugh or whatever when you didn't post any code. I will say this though: Think of it like a parent-child relationship. The child inherits characteristics of the parent unless it explicitly overrides those characteristics. For example:
    CSS:
    Code:
    rowclass {
    color: black;
    font-family: arial;
    }
    cellclass {
    color: white;
    }
    HTML:
    Code:
    <tr class="rowclass">
    <td class="cellclass">some stuff here</td>
    </tr>
    Both row and cells use a font of arial. However, row has a text color of black, while the individual cells within that row have a text color of white, because of that override thing.
    OK, so this probably isn't the best example in the world, but hopefully you get the idea.
    If this doesn't help, post your code so we can have a look at it.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more



Tags for this Thread