/    Sign up×
Community /Pin to ProfileBookmark

How to get this sidebar effect

I was wondering how to make the items in the Navigation sidebar have the box that far around them, and have it change color when you hover over it. I know its a ul, but not much besides that.

Also, how is it staying in place even when you scroll down?

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@skywalker2208Feb 09.2009 — You use css.
Copy linkTweet thisAlerts:
@trogger93authorFeb 09.2009 — Well I know that, I was wondering if anyone could tell me what kind of attributes I need to use?
Copy linkTweet thisAlerts:
@skywalker2208Feb 09.2009 — CSS
[code=php]
.button {border:2px outset;
width:150px;
font-size:20px;
background-color:#006699;
text-align:center;
font-weight:bold;
color:#FFFFFF;
text-decoration:none;
display:block;
margin:5px 0px 5px 0px;}


a.button:link {color:#FFFFFF;
background-color:#006699}

a.button:visited {color:#FFFFFF;
background-color:#006699}

a.button:hover {color:#FFFFFF;
background-color:#0066FF;}
[/code]


HTML
[code=php]
<a href="#l" class="button">HOME</a>
[/code]
Copy linkTweet thisAlerts:
@trogger93authorFeb 10.2009 — thanks
×

Success!

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