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 July 30th, 2005, 11:47 PM
Registered User
Join Date: Jul 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sfs00784 Send a message via MSN to sfs00784
Default Something about li and ul

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=big5" />
<style type="text/css">
#pm ul{list-style: circle;}
#pm li{display:inline}

<div id="pm">
    <li>From: sfs00784</li>
    <li>Topic: test[<a href="">Read</a>]</li>
    <li>From: sfs00784</li>
    <li>Topic: test[<a href="">Read</a>]</li>
I want to display:

    * #21 From: sfs00784 Topic: test [Read]
    * #22 From: sfs00784 Topic: test [Read]

Old July 31st, 2005, 02:03 AM
joefawcett's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

ul encloses an unordered list, li encloses each element so you need one ul element and on li element for each line to display:
  <li>#21 From: sfs00784 Topic: test [<a href="">Read</a>]</li>
  <li>#22 From: sfs00784 Topic: test [<a href="">Read</a>]</li>

Joe (Microsoft MVP - XML)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering an UL element within DIV keithc BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 2 April 4th, 2013 04:13 PM
<li></li> issue Adam H-W CSS Cascading Style Sheets 1 November 5th, 2007 06:41 AM
create <ul> with alternating class on <li> element Brian Campbell XSLT 2 November 3rd, 2006 06:07 PM
TREE USING UL/LI pallone Javascript How-To 11 February 16th, 2005 04:03 PM
Bullets formatting with UL tag apd8x HTML Code Clinic 1 July 30th, 2003 05:27 PM

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