/    Sign up×
Community /Pin to ProfileBookmark

Sidebar… thing.

I’ve looked at countless articles regarding fixed/stretching sidebars, but none that answers my question, and I’ve tried even more ways that I can think of, but none give me exactly what I’m looking for.

I want a left sidebar (fixed-width, %s, ems, units don’t matter here) that stretches out the whole way to the bottom of the page (where, incidentally, there’s going to be a footer).
Ideally, part of the sidebar (namely, the links) would have a position:fixed, but if it’s not possible, then without it.

Basically: sscccccc.

What I get into problems doing is getting the content, when under, say, 400px, to go below the sidebar. I’ve tried everything: images, background images, paddings, negative margins, and nothing seems to make it work just right.

Something tells me this is possible with CSS, so please tell me if I should give up…
[img]http://img16.imageshack.us/img16/2929/models.png[/img]
(Black is just to distinguish from the two situations)

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@byeeeauthorNov 19.2010 — I would edit but not sure how...

Actually, that is a lot. No, it all would boil down to:

I have an element with fixed width. When viewport is wider than it, I want everything else to be right of the element. When not, below it. But the more I try, the less I can find anything.
×

Success!

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

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

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