dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: Styling the BR tag

  1. #1
    Join Date
    May 2005
    Location
    Pangea
    Posts
    668

    Question Styling the BR tag

    Hi everybody!
    I've got a question for you all... How do you style the BR tag?
    To adjust how much space it puts between lines of text, or paragraphs, what do you use? height? padding or margin?

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    thread
    In short don't; style it's adjacent elements.

  3. #3
    Join Date
    May 2005
    Location
    Pangea
    Posts
    668
    Soooooo... To seperate two paragraphs I should just adjust the margin in the BR tag?
    I already had the paragraphs seperated with margins, but BR will make it work much better.
    Can I use height?

  4. #4
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    If you need to style the br, then your semantics are wrong.

  5. #5
    Join Date
    May 2005
    Location
    Pangea
    Posts
    668
    OK then, take a look at this site. I want to seperate the two paragraphs with the class "article". If I use margins, the lower paragraph makes ugly space between it and the border of the main div.
    http://www.team847.com/New

  6. #6
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Give the first <p> another class <p class="ARTICLE extraSpace">

  7. #7
    Join Date
    May 2005
    Location
    Pangea
    Posts
    668
    Quote Originally Posted by Fang
    Give the first <p> another class <p class="ARTICLE extraSpace">
    Oh Duh... You're right. I really need to drop the HTML syntax and migrate to CSS completely. Thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles