/    Sign up×
Community /Pin to ProfileBookmark

Inline List Items – Preventing line breaks

Hi –

Is there a way to prevent an inline list from breaking within an individual list item?

This is what I want to prevent:

  • Item 1 – Item 2 – Item 3 – Item
    4 – Item 5
  • This is my current CSS coding:

    [code]
    <style type=”text/css”>
    #main{padding-top: 74px; margin-left: 170px; margin-right: auto; display: block;}
    #article {font-family: verdana, sans-serif; margin-right: 10%; margin-left: 1em;}
    #article ul.inline li{display: inline; margin-right: 1em; padding-right: 1em; border-right: 1px solid #cc0000; text-align: center;}
    </style>[/code]

    This is the list I’m working with:

    [code]
    <div id=”main”>
    <div id=”article”>
    <!– article content –>
    <ul class=”inline”>
    <li>Software Used: Front Page</li>
    <li>Format: Tables, CSS</li>
    <li>Design by: Unknown</li>
    <li>ADA/508 Accessible – No</li>
    <li><a href=”#” target=”_blank”>Quality of Coding</a></li>
    </ul>
    <!– more article content –>
    </div>
    </div>[/code]

    Thanks,
    KDLA

    to post a comment
    CSS

    6 Comments(s)

    Copy linkTweet thisAlerts:
    @ray326Jan 10.2006 — I don't see any whitespace reference in there.

    http://www.w3.org/TR/REC-CSS2/text.html#propdef-white-space
    Copy linkTweet thisAlerts:
    @KDLAauthorJan 10.2006 — Thanks! - That's it, exactly.

    I remembered the setting "nowrap" but couldn't remember the property. ?

    KDLA
    Copy linkTweet thisAlerts:
    @KDLAauthorJan 10.2006 — Whoops - wait a minute. This doesn't work in IE (but splendidly in FF). Do you know a go-around for this?

    KDLA
    Copy linkTweet thisAlerts:
    @ray326Jan 10.2006 — Control Panel/Add Remove Programs/Window Components uncheck Internet Explorer ...
    Copy linkTweet thisAlerts:
    @KDLAauthorJan 10.2006 — NICE RESPONSE.

    KDLA
    Copy linkTweet thisAlerts:
    @ray326Jan 11.2006 — I've found IE does some things with word wrap that there's just no way to fix. I'm sure you've got a good doctype in there to force it to be as standard as possible.
    ×

    Success!

    Help @KDLA spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.2,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,
    )...