If you don't want to use CSS,why not add several <br /> to get the space you require.?



From: "Francesco Rizzi" <[EMAIL PROTECTED]>
To: css-d@lists.css-discuss.org
Subject: [css-d] Vertical Space Grudge Match: br vs css
Date: Sat, 19 May 2007 22:05:33 -0400

Consider an hypothetical situation:
the project requirements call for some vertical space between a certain
element on your web page (picture an horizontal line, like an hr), and a
second element (picture a textbox).

There's many ways you can achieve this effect. My instinct would be to give
the second element some css style.. a margin-top, or a padding-top,
depending on the situation.
An hypothetical colleague, however, suggests simply placing a <br> tag
between the two.
Actually, since the hypothetical requirements call for some added vertical
space right after that textbox, the colleague suggests:
<hr><br>[textbox]<br><br>

Yes, yes, <br> instead of <br />. It's hypothetical, don't worry about that
detail.

So, my question for the list is:
why should we use css rules in this scenario instead of <br> tags ?

Thank you in advance,
F.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

_________________________________________________________________
Catch suspicious messages before you open them—with Windows Live Hotmail. http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_protection_0507

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to