Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

In HTML 4.01 why does <br style="line-height:50px;"> not work after <img src="...">?

Unless I put this <p style="line-height:50px;"><br></p> after <img src="...">, which looks stupid as <br><br> would be a lot easier.

What have I missed? Thanks in advance for your answers.

7 Answers

Relevance
  • 1 decade ago
    Favorite Answer

    Try style="margin: 50px; display:block;"

    It might work :)

  • ?
    Lv 4
    4 years ago

    Br Style

  • 1 decade ago

    Hello!

    Using <br> command is to separate lines but NOT PARAGRAPHS! This means that each <br> written will only give a space by only one line. For paragraph spacing, the command <p> is used, or more commonly, the <div> and <span>.

    For how to use <div>:

    <div style="line-height:300px;"> .... </div>

  • 1 decade ago

    <image> is unaffected by DOM and by CSS. After you code html for a while, it will dawn on you that <image name="myImage" id="myImage"> is a wasted finger exercise.

  • How do you think about the answers? You can sign in to vote the answer.
  • 6 years ago

    This Site Might Help You.

    RE:

    In HTML 4.01 why does &lt;br style=&quot;line-height:50px;&quot;&gt; not work after &lt;img src=&quot;...&quot;&gt;?

    Unless I put this &lt;p style=&quot;line-height:50px;&quot;&gt;&lt;br&gt;&lt;/p&gt; after &lt;img src=&quot;...&quot;&gt;, which looks stupid as &lt;br&gt;&lt;br&gt; would be a lot easier.

    What have I missed? Thanks in advance for your answers.

    Source(s): html 4 01 lt br style quot line height 50px quot gt work lt img src quot quot gt: https://shortly.im/XrV4y
  • Anonymous
    1 decade ago

    First of all, in strict 4.01, line breaks are <*br /*> not <*br*> (without the *s)

  • ?
    Lv 4
    5 years ago

    Yes.

Still have questions? Get your answers by asking now.