1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Altering <br> margin

Discussion in 'CSS' started by Jon12345, Apr 14, 2008.

  1. #1
    I have created a style called p2 which works as an alternative paragraph format for me.

    But when I use <br> within this p2 style, I want to increase the amount of space it takes. i.e. instead of it just going to a new line, it would go to a new line and a half. Make sense? But I only want it to do this when used with p2.

    Is that possible?

    Thanks,

    Jon
     
    Jon12345, Apr 14, 2008 IP
  2. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What does your HTML look like, and why are you using a line break inside a paragraph?
     
    Dan Schulz, Apr 14, 2008 IP
  3. bigdork

    bigdork Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    .p2 br {
    margin: 10px 0 10px 0;
    }

    try something like this..
     
    bigdork, Apr 14, 2008 IP
  4. Jon12345

    Jon12345 Peon

    Messages:
    599
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Fab, thanks!
     
    Jon12345, Apr 14, 2008 IP