Adjusting "line break" size? <br /> (web designing HTML question)?

  • Thread starter Thread starter Oliver B
  • Start date Start date
O

Oliver B

Guest
Is there a way to adjust size of <br /> ?

Like I need to put a lot of <br /> in the code but it's too long so I wonder if there is a way to simply adjust the line break size?
like for example, IF IF IF there is a code such as <br size="12"> etc this will line break 12 spaces...etc but no code such as that exist so i was wondering if there is any

thanks in advance!
 
No, ther's no way to size a break. (By the way, you can't always use HTML codes in your questions. They don't show up in the text).

What you need is "line-height", which is a CSS tag.

Look on this page under "Dimension".

http://www.w3schools.com/css/css_reference.asp

If you only want to set the height for one line, you can place it within a "span" HTML tag, then apply the style to that tag.
 
No, ther's no way to size a break. (By the way, you can't always use HTML codes in your questions. They don't show up in the text).

What you need is "line-height", which is a CSS tag.

Look on this page under "Dimension".

http://www.w3schools.com/css/css_reference.asp

If you only want to set the height for one line, you can place it within a "span" HTML tag, then apply the style to that tag.
 
There are two approaches that might solve the problem.

The first is - don't use line breaks - use paragraphs and divisions instead. Then adjust the margin and padding on them with CSS.

The second is - keep using line breaks and change the line-height of the entire block with the CSS line-height property.

http://opera.com/wsc/ has a good guide to CSS.
 
Back
Top