Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-20-2006, 07:43 PM   PM User | #1
Wynter_Z
New Coder

 
Join Date: Apr 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Wynter_Z is an unknown quantity at this point
Question simple list borking up the first <li> tag (firefox)

Okay, I'm not seeing why this isn't working. It looks fine in IE, but in Firefox, the first list item is treating every blank space between characters as a break. Every list item after it is displaying correctly.

Simple html list in a div
Code:
  
<div id="recent">
	  <ul>
	  <li><a href="/user/4">another item with a long title</a><br/>0 days, 2 hours ago</li>
	  <li><a href="/user/4">another item with a long title</a><br/>0 days, 4 hours ago</li>
	  <li><a href="/user/4">another item with a long title</a><br/>1 day, 2 hours ago</li>
	  </ul>
	  </div>
css
Code:
#recent{
    padding-bottom: 1em;
    font-family: ariel, helvetica, sans-serif;
    color: #ffffff;
    font-size: 11px;
    width:100%;
    top:1em;
    position:relative;
    }

#recent ul{
   margin-left:4.5em;
   text-align:left;
* margin-left:9em;
   }

#recent ul li{ 
   color:white;
   padding:5 20 10 0;
   }

#recent ul li a{ 
   color:#fff8aa;
   text-decoration:none;
	}
Wynter_Z is offline   Reply With Quote
Old 10-20-2006, 08:15 PM   PM User | #2
Wynter_Z
New Coder

 
Join Date: Apr 2005
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Wynter_Z is an unknown quantity at this point
I fixed it. I added white-space:nowrap; to the li css.
Wynter_Z is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:37 PM.


Advertisement
Log in to turn off these ads.