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!

0 margin issue on line of text 1

Status
Not open for further replies.

jwhite68

IS-IT--Management
Jun 14, 2007
77
BG
I have a piece of HTML as follows:

Code:
<div class="offer1">
<p class="marg15">
<strong>Summary</strong><br /><br />Decent car for sale<br /><br/>Model :<br /><br />Ford escort
<br /><br />		
<strong>Description</strong>
<br /><br />
<P>Good looking car. </P>
<P>This is a red car.</P>
<UL>
<LI>red
<LI>working order
<LI>1983 model</LI></UL>The car is in working order.<br />
</p>
</div>

Here is the stylesheet code in the css for the 2 classes:

Code:
div.offer1{
        overflow: auto;
	width: 874px;
	border: 1px solid #DDDDDD;
	margin-top: 10px;
	background: #F4F3EE !important;
	/* display: table !important; */
}
div.offer1 p{margin:15px ;}

The text displayed below Description should all be with a margin of 15px.

But when it displays, the sentence after the <LI> tags (for bullet points) displays at 0 margin, instead of at 15px. ie the sentence 'The car is in working order.'.

Can anyone see why?

I tried putting a margin:15px !important in the div class but it didnt resolve it.
 
Thanks Vragabond. Ive applied your solution, and it works. Many thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top