How do i set height for <BR> tag in html ?

Posted on 2009-04-24
Last Modified: 2012-05-06
I have an RTF content in several paragraphs. When converted into HTML using a tool, it generates 2 <br> tags between paragraphs. The gap / spacing between these two paragraphs is high. If i manually try to replace 2 <BR> tages with one, i don't get the content in different paragraphs. It looks in a single paragraph.

How do i set the height of <BR> tag so that i use only 1 <BR> tag and get a feel of having two paragraphs on either side of <BR> tag.

Or do i have any other alternate approach to solve this ?

Question by:sputrevu
    LVL 39

    Expert Comment

    You shouldn't. Instead, use the following, which surmounts to the same:

    <div style="height:20px;>&nbsp;</div>

    Open in new window

    LVL 39

    Accepted Solution

    Btw, you mention paragraphs. It is much better to separate paragraphs by wrapping them inside <p> tags. That will give you much more flexibility by setting the padding styles and the margin styles.

    <p style="margin-bottom:12px">
       your paragraph

    Open in new window

    LVL 13

    Expert Comment

    You can't set teh height of BR tag. Inseatd u can give padding-bottom to <P> tag like this
    <p style="padding-bottom: 10px;">
    or watevr figure u want to give.. this will create a space of 10px after the content.
    LVL 39

    Expert Comment

    The points + grade are important for us, the experts, so we are only satisfied with A-grades. Give us that chance by coming with follow-ups asking us what you still miss, before closing it lower than A..

    EE has a special type of grading. I understand that you are new here, so I'd like to suggest you read How To Grade, which explains EE's 10-points must system.


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now