This is a discussion on "<br> and css" within the Web Page Design section. This forum, and the thread "<br> and css are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
<br> and css
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
<br> and css
Hi. I am really new to the forums and just wanderinf if i can have a bit of help.
Well i'm doing an assignment for university and its basically based around CSS. In the specifications, it says not to use the <BR> tag, and that to rely on the CSS to do this. How exactly would i do this? Is their something I can search and replace all my <br> tags with? Many thanks |
|
|
|
#2
|
|||
|
|||
|
Re: <br> and css
Hi lockmac,
You can use margin-top or margin-bottom to adjust the space between elements, including paragraphs. (You can also use padding-top and padding-bottom.) The amount of space between paragraphs can be adjusted either a fixed amount (as in pixels) em value, or a percentage (%) of the element size.
1. Different Paragraph 2. CSS Margin 3. Paragraph Hope that help.
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Last edited by Monie; Sep 13th, 2007 at 05:57. Reason: add some sample code |
|
#3
|
|||
|
|||
|
Re: <br> and css
Yep ... Monie's hit it right on the nail.
MikeHopley wrote a great article for the newsletter Semantics and he talks about the <br> element in there so you might want to check it out |
![]() |
| Thread Tools | |
|
|