Quick and easy css question

Discussion in 'CSS' started by fadetoblack22, Oct 28, 2008.

  1. #1
    I've got a box container in my site. Inside the box there is text in <p> tags. However I want the p to have some different effects than the body p.

    How can I make the p inside the box id have different effects. I can't remember how to do it.

    I tried p.box and it didn't work. Can someone help please :)


    <div id=box>
    <p>
    </p>
    </div>
     
    fadetoblack22, Oct 28, 2008 IP
  2. simonspurr

    simonspurr Peon

    Messages:
    604
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think it's:
    #box p {
    list effects in here;
    list effects in here;
    }

    Hope this helps
     
    simonspurr, Oct 28, 2008 IP
  3. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #3
    <div id="box">
    Place the box inside quotes.
    then it would work!
     
    olddocks, Oct 28, 2008 IP
  4. fadetoblack22

    fadetoblack22 Well-Known Member

    Messages:
    2,399
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Thanks, the first answer worked. I think it works without quotes.
     
    fadetoblack22, Oct 28, 2008 IP