Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 24th, 2007, 07:19 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 347
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Adam H-W
Default <li></li> issue

I have a list set up[list]
<li>List 1 </li>
<li>List 2 </li>
</ul>

In each of my <li></li> I also have an image placed. However in Firefox the list becomes a jumbled mess because the <li></li> that is below the one above doesn't take into account the image and therefore places it to the right of the first <li></li>

Does anyone know of any css that I can use to counteract this - I can't use clear: because the site is made up of the columns and it will clear the other columns insted.

thanks

Adam

 
Old November 5th, 2007, 06:41 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Try using the following CSS attribute for the li
Code:
display: list-item;

- Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
Formating <li> as per xml using xslt 1.0 tims XSLT 9 May 12th, 2008 01:30 AM
How To PopUp Text Message within <li> tclotworthy Javascript How-To 1 February 18th, 2007 09:07 PM
create <ul> with alternating class on <li> element Brian Campbell XSLT 2 November 3rd, 2006 06:07 PM
Problem with text-decoration in cascaded <li> setesteve CSS Cascading Style Sheets 6 January 7th, 2005 10:53 AM
color attribute with <li> econophil HTML Code Clinic 2 August 31st, 2004 02:22 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.