This is a forum where members new and old can come to ask questions and get info and opinions. It is not a place to advertise your business or have other forms of advertising, whether it be in your posts or signature.

All links in the forum will not be indexed by Search Engines and any unapproved forms of advertising or spam will be dealt with accordingly, deleted, and that member's account banned.

Forums

Overview » HTML, XHTML, and DHTML » <br style> doesn't work in DW8?
Reply

<br style> doesn't work in DW8?

James Hammond
Member



Since: 19 Aug 2003
Posts: 1
Posted 22 Apr 2008 19:01:41

Hi from a relative newbie.

I've got some commercial web templates and I notice that for, presumably, 'quickie' in-line use, they use the following combo in a number of places where a line break occurs:

&lt;br /&gt;&lt;br style="line height:12px" /&gt;

I've tried this in DW8, but it doesn't seem to work. Regardless of the line height value you put in, nothing changes, and only (I think) is the actual &lt;br /&gt; being observed. If you take it out and just leave the bracketed style stuff, there is no line break at all.

Am I doing something wrong? Does this only work with certain &lt;div&gt; or html code? Is it obsolete and not recognised by modern progs/browser?

Cheers
James

Hi from a relative newbie.

I've got some commercial web templates and I notice that for, presumably, 'quickie' in-line use, they use the following combo in a number of places where a line break occurs:

&lt;br /&gt;&lt;br style="line height:12px" /&gt;

I've tried this in DW8, but it doesn't seem to work. Regardless of the line height value you put in, nothing changes, and only (I think) is the actual &lt;br /&gt; being observed. If you take it out and just leave the bracketed style stuff, there is no line break at all.

Am I doing something wrong? Does this only work with certain &lt;div&gt; or html code? Is it obsolete and not recognised by modern progs/browser?

Cheers
James
satheesh Dominic
Member



Since: 24 Apr 2007
Posts: 44
Replied 11 Aug 2009 17:52:18
QuoteHi from a relative newbie.

I've got some commercial web templates and I notice that for, presumably, 'quickie' in-line use, they use the following combo in a number of places where a line break occurs:

<br /><br style="line height:12px" />

I've tried this in DW8, but it doesn't seem to work. Regardless of the line height value you put in, nothing changes, and only (I think) is the actual <br /> being observed. If you take it out and just leave the bracketed style stuff, there is no line break at all.

Am I doing something wrong? Does this only work with certain <div> or html code? Is it obsolete and not recognised by modern progs/browser?

Cheers
James


This is indeed a very good question!

There are number of other ways how you can achieve the same result.
applying "line-height:" does n't seems to work with <br /> tags. You may use "<div>" tag instead of "<br />"

The line height values needs to specified as follows:
style="line-height:12px;"
[forget not to put the "-" symbol between "line" and "height".]

NOTE: Even though W3C recommends "style" attribute as one of the standard attributes for "<br >" tag, this does n't seems to work! I wish, if some had explained, why it is so!


Edited by - satheesh Dominic on 11 Aug 2009  17:54:16

Reply to this topic

Message
Reply
Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency