Current location: Hot Scripts Forums » General Web Coding » CSS » <li> margin issue

<li> margin issue

Reply
  #1 (permalink)  
Old 07-02-09, 06:24 AM
jonnekke jonnekke is offline
Junior Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 640
Thanks: 0
Thanked 0 Times in 0 Posts
<li> margin issue

Hi..

I got a <ul> with several <li> in it.. I styled them with the following CSS:

Code:
#footer  { width: 873px; height: 87px; float: left; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 45px; text-align: left; background:url(../images/tandwiel_onder.png) 30px 7px no-repeat; }

#footer ul { list-style: none; margin:10px 0px 5px 50px; padding: 0px 0px 0px 0px; }
#footer ul li { display:inline; margin:0px 0px 0px 0px; padding: 0px 5px 0px 5px; background:url(../images/separator_footer.png) no-repeat 100% 50%; font-size: 10px; color: #636161; border:1px solid #ff00ff; }
#footer ul li.first { padding: 0px 5px 0px 0px; margin:0px 0px 0px 0px; }
#footer ul li.last { background:none; margin:0px 0px 0px 0px; padding: 0px 0px 0px 0px; }
But somehow there is a white space between the <li>. I thought I set them exact next to eachother.
Can someone help me out here?.

_j
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-07-09, 03:45 AM
jonnekke jonnekke is offline
Junior Code Guru
 
Join Date: Oct 2005
Location: holland!
Posts: 640
Thanks: 0
Thanked 0 Times in 0 Posts
after a lot of searching it figured it out...
the li should get a float:left property.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-23-09, 09:10 AM
rid rid is offline
Newbie Coder
 
Join Date: Oct 2005
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
dear jonnekke, you re-arrange your <li>

e.g.:
HTML Code:
  <ul>
    <li>list one</li><li
    >list two</li><li
    >list three</li>
   </ul>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CSS Newb - Overlap issue IE6, 2 links issue Shadowfax CSS 2 06-11-08 10:50 AM
Converting to ems spyke01 CSS 0 11-09-07 03:48 PM
css help (very simple i think) jcoxy4 CSS 2 06-11-07 03:32 PM
Dumb HTMl Problem [Could be CSS] _net HTML/XHTML/XML 7 05-25-07 05:51 AM
CSS Rollover Problem in IE tjs CSS 4 08-30-06 12:29 PM


All times are GMT -5. The time now is 07:48 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.