/    Sign up×
Community /Pin to ProfileBookmark

Links bg alignment on Hover

Hi,
I’m just doing the following (demo) site:

[url]http://www.themiddlepath.intelli-tech.net/HairDo/index.html[/url]

My hover (or text) doesn’t seem to be aligned centrally.

Which part fo the CSS do I need to modify?

Thank you ?

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@huckepickMay 12.2011 — what do you want to center there?
Copy linkTweet thisAlerts:
@myself1authorMay 12.2011 — The background white on hover, please.

Thanks
Copy linkTweet thisAlerts:
@huckepickMay 12.2011 — ok:

you gave the objects paddings on left and right side

these paddings differ. therefore the text is not centered there.

if you use the same padding on both sides (20,20 instead of 30,10) it will look like the text is centered
×

Success!

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