/    Sign up×
Community /Pin to ProfileBookmark

Hover state help

I am trying to stylize a left nav that displays vertically. Because the nav is generated dynamically <..txp:linklist / ..> I do not have the individual categories in their own cells. So basically the nav is a a series of ords seperated by paragraph tags in a table cell.

I would like to stylize this nav by using a hoverstate where a bg color displays. I would like the bg color to be a 90% width of the whole cell and have a set height.

I tried doing this but nothing works. Any ideas. I tried the below code:

#left a:hover
{
border: 0px;
color: #fff;
background-color: #CC0000;
text-align: left;
vertical-align: middle;
width:125px;
height:30
padding:3px;
}

with display:block; -inline; etc. Nothing works well.

Block comes close but my text starts jumping arouns all over the place.

Any help would be great.

Thx.

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@FangJun 28.2005 — height:30[COLOR=Green]px;[/COLOR]
Copy linkTweet thisAlerts:
@s1deusauthorJun 28.2005 — right that's what I had but it still didnt work. I have this so far

#left a:hover

{

color: #fff;

background-color: #CC0000;

display:block;

}

it works but the vertical space between the words is pretty big. How can I change the vertical spacing?

Thx
×

Success!

Help @s1deus 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.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

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