/    Sign up×
Community /Pin to ProfileBookmark

setting a margin to my list text

Hi there,

My lists (ul) and (ol) look lovely except that the text flows under the bullets or numbers. I need the text to line up under the first word on the first line.

Here’s a link:[URL=”http://www.legacyprep.org/newsite/philosophical.html”]http://www.legacyprep.org/newsite/philosophical.html[/URL]

and here’s my css: (it’s suddenly not validating and I haven’t understood why yet)

p, ul, ol, li {font-family: ‘Palatino Linotype’, Verdana, Arial,Tahoma, Georgia, ‘Times New

Roman’;
letter-spacing: 1px;
line-height: 200%;
font-size: 80%;}

ul {list-style-position: inside;}
ol {list-style-position: inside;}

li {padding-left:120px;
padding-right:100px;
margin-left:5px;}

I’ve tried lots of combinations of padding and margins to no avail.

Help solving this would be so greatly appreciated!!!

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@CentauriJan 29.2008 — To prevent the text wrapping under the bullet, the list style needs to be outside, and padding on the <ul> or <ol> will bring the bullets back into view. The <li> padding can then be dispensed with :[CODE]ul, ol {
list-style-position: outside;
padding: 0 100px 0 130px;
}

li {
padding: 0;
margin: 0;
}[/CODE]
Copy linkTweet thisAlerts:
@motherandmoreauthorJan 29.2008 — PERFECT-O,

Thanks a bunch!!!
×

Success!

Help @motherandmore 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,
)...