half a line after <br />

A

Anders Floderus

I would like to get an extra half empty line after each
<br /> for readability. Is this possible?

I keep all my text within <div class=... containers, if
there were some style properties where I could
specify this, it would fit well together with the rest
of my site.

thanks in advance
 
T

Toby Inkster

Anders said:
I would like to get an extra half empty line after each
<br /> for readability. Is this possible?

You seem to be using line breaks (foo<br>bar) when you should be using
properly marked up paragraphs (<p>foo</p><p>bar</p>). If you used proper
paragraphs you could set:

P {
margin: 0 0 1.5em;
padding: 0;
}
 
B

Barbara de Zoete

I would like to get an extra half empty line after each
<br /> for readability. Is this possible?

Of course
I keep all my text within <div class=... containers, if
there were some style properties where I could
specify this, it would fit well together with the rest
of my site.

It is best to give a URL to an example of this. Now I have to assume a lot.

Like, I am assuming you use <br /> to separate paragraphs. If so: don't.
Mark up paragraphs to be that:

<body>
<div class="foo">
<p>this is a paragraph, if it is long enough</p>
<p>and so is this</p>
</div>
</body>

Then you can use css to style the space between paragraphs, like this:

div.foo p { margin-bottom:1.5em; }


--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
 
T

Tonnie

Anders said:
I would like to get an extra half empty line after each
<br /> for readability. Is this possible?

I keep all my text within <div class=... containers, if
there were some style properties where I could
specify this, it would fit well together with the rest
of my site.

How about the following in your style-sheet:

br { margin-bottom: 2.5em; }
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top