SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Thread: List line break

  1. #1
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    List line break

    Is there a way to remove the line break a list automatically creates?

    instead of having

    home

    link1
    link2

    I want

    home
    link1
    link2

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Can you post sample code that this is happening to?

  3. #3
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The list still is in an external stylesheet so I've put it inline here in the example. After the interactive link I want the list to follow on without a double break.

    <a href="interactive.asp"><strong>Interactive</strong></a>
    <ul style="list-style-type: none;">
    <li><a href="forum/default.asp">Discussion Forum</a></li>
    <li><a href="guest.asp">Guestbook</a></li>
    <li><a href="ipix.asp">iPIX Virtual Tour</a></li>
    </ul>

  4. #4
    SitePoint Enthusiast DFS's Avatar
    Join Date
    Sep 2002
    Location
    The Wilds of Northern Maine
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What about adding this to your stylesheet?

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

  5. #5
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    Well this little hack could work:

    <style type="text/css">
    <!--
    ul {
    padding : 0;
    border : 1px solid red;
    margin : 0;
    -->
    </style>

    Just got beaten to the post by DFS, LOL...
    Last edited by xhtmlcoder; Mar 18, 2003 at 09:47.

  6. #6
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks guys, I just had to add text-indent also


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •