Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remove space before <ul> tag in html

Status
Not open for further replies.

redaccess

MIS
Aug 2, 2001
110
0
0
US
Is there a way to remove the space that always appears between a line of text and an unordered list?
 
Code:
<html>
<body>
text text this is a line of text...ya think?<br>
<ul>
	<li>list item</li>
</ul>
text text this is a line of text...ya think?<br>
<ul style=&quot;margin-top:0px;&quot;>
	<li>list item</li>
</ul>
text text this is a line of text...ya think?<br>
</body>
</html>

You could also do the same thing with the bottom margin (margin-bottom:0px;) or all the margins at once (margin:0px;)

-Tarwn ________________________________________________________________________________
Want to get great answers to your Tek-Tips questions? Have a look at faq333-2924
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top