How to doublespace <LI> tags

W

Wayfarer

Hi,

I have a page that displays quotations that uses an unordered list. I
tried to do the following:

<ul>
<li>some text<br></li>
</ul>

but the W3C Validator told me it wasn't valid for 4.01 Transitional.
How can I double-space <li> tags and have it pass as valid? Is there
some way to do it with CSS? Any help would be appreciated.

TIA

Wayfarer
 
M

Mark Parnell

Wayfarer said:
How can I double-space <li> tags and have it pass as valid? Is there
some way to do it with CSS? Any help would be appreciated.

Yes.

li {margin-bottom: 2em; }

Season to taste.
 
M

Martin Magnusson

Wayfarer said:
I have a page that displays quotations that uses an unordered list. I
tried to do the following:

<ul>
<li>some text<br></li>
</ul>

but the W3C Validator told me it wasn't valid for 4.01 Transitional.

I believe changing the <br> to <br /> would make it valid, but the other
tips in this thread are better ways of making a list with large spaces.

/ martin
 
M

Mark Parnell

Martin said:
I believe changing the <br> to <br /> would make it valid, but the
other tips in this thread are better ways of making a list with large
spaces.

No, that would be XHTML, not HTML. It does validate - must be something
else on the page that is wrong.
 

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

No members online now.

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,207
Latest member
HelenaCani

Latest Threads

Top