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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

list-style: sqaure doesn't show 1

Status
Not open for further replies.

briancostea

Programmer
Apr 21, 2005
82
0
0
US
Anyone know why this won't display correctly? It will only display the squares in the ul if i specify in the list-style: square inside; instead of list-style: square inside;

CSS:
#popAnalyze
{
background-image:url(../images/popAnalyze.gif);
background-repeat:no-repeat;
height:150px;
width:200;
text-align:left;
padding-top:10px;
padding-right:5px;
padding-left:10px;
}

ul
{
padding: 0 0 0 0;
margin: 0 0 0 0;
list-style: square;
}

HTML:
<div id=popAnalyze>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</div>
 
The proper reference is: list-style-type.

That may have something to do with your problem.

<.

 
monksnake - The list-style property is a shorthand property for setting all the properties for a list in one declaration.

Foamcow - that's all the css on the page. The popAnalyze
sets the width and margins. Does that have something to do with it?
 
Doh, my bad, here is your problem:

Code:
  margin: 0 0 0 0;

When you set the left margin to 0, there is no room for the square.

<.

 
Yeah, I learned something, honestly never knew about list-style

<.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top