/    Sign up×
Community /Pin to ProfileBookmark

Bullet positioned on baseline

Hi. With the code below, the bullet is aligned at the bottom of a wrapped list item, rather than at the top. This changes if i remove the width of the link, but i need that in.

[code=html]<html>
<head>
<style>
#favlinks li {margin-left:20px;}
#favlinks li a {width:200}
</style>
</head>
<body>
<ul id=”favlinks”>
<li><a title=”Fund Information – Offshore Funds” href=”#” target=”_top” >Fund Information – Offshore Funds</a></li>
</ul>
</body>
</html>[/code]

Can anyone help to align the bullet with the top line

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@tegraphixFeb 23.2006 — Try this:
[code=html]<html>
<head>
<style>
#favlinks li { margin-left: 20px; }
#favlinks { width: 220px; }
</style>
</head>

<body>
<ul id="favlinks">
<li><a title="Fund Information - Offshore Funds" href="#" target="_top" >Fund Information - Offshore Funds</a></li>
</ul>
</body>
</html>[/code]
Copy linkTweet thisAlerts:
@Typhoon101authorFeb 24.2006 — That removes the width of the link, which i mentioned i need left in.
Copy linkTweet thisAlerts:
@ray326Feb 24.2006 — May have been a typo. I think the point was you left off the dimensions.
Copy linkTweet thisAlerts:
@ShrineDesignsFeb 24.2006 — i have found that using a custom bullet is often a hassle to get it where you want it in IE and Mozilla, i thought of this as a work around<i>
</i>ul {
list-style: none;
}
ul li {
margin: 0;
padding-left: 1em;
background: url(bullet.png) .5em 50% no-repeat;
}
×

Success!

Help @Typhoon101 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 5.15,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...