Jump to content

LI issues


9three

Recommended Posts

If you take a look at the picture i included it shows two LIs. The position of the text is exactically where I want it. The problem is I dont want a gap in between the two. I've added padding to only ONE of them yet both show padding.

 

ul 
{
 list-style: none;
 margin: 0px;
 padding: 10px;
}

/* LI Format */

#section
{
 list-style-type: none;
 list-style-position: outside;
 padding: 0px;
 margin: 0px;
 width: 250px;
 border: solid 1px #81a753;
}

#title 
{
 list-style-type: none;
 list-style-position: outside;
 padding: 0px;
 padding-top: 10px;
 margin: 0px;
 height: 34px;
 width: 252px;
 text-align: right;
 background: url(../images/li_bg.jpg) repeat-x; 
}

 

And then the HTML side:

 

       <ul>
       <li id="title">title</li>
       <li id="section">Content</li>
       </ul>

 

Anyone know how to fix that?

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/144550-li-issues/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.