/    Sign up×
Community /Pin to ProfileBookmark

A simple div box with left column?

Hi

I was trying making a.. just as what the title says.
The left column is floated to the left and has a background color that should go all the way down. But since the div box may vary in height I cannot use a fix height for using 100% height on the column.

Is a background image the only solution with css?

With tables ofcourse it would be easy, but prefer to skip it

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWFeb 22.2006 — can you put the background on the body tag?
Copy linkTweet thisAlerts:
@ray326Feb 22.2006 — Sounds like a faux columns application but maybe the Holy Grail article at A List Apart would have some useful tips on that.
Copy linkTweet thisAlerts:
@SiddanauthorFeb 22.2006 — can you put the background on the body tag?[/QUOTE]
I do not want to change the layout, the layout on the body is fine as it is. I do want however to make some div boxes on the page to put information in, there will be like more than 10 at least stacking under eachother with a margin space in between

Sounds like a faux columns application but maybe the Holy Grail article at A List Apart would have some useful tips on that.[/QUOTE]
That article involves the whole layout, doesn´t it?
Copy linkTweet thisAlerts:
@the_treeFeb 22.2006 — I reckon faux collums are your best bet. Have a vertically repeating background image on your body (or container) and it'll look to the affect of the div that goes over that, goes all the way down.
Copy linkTweet thisAlerts:
@SiddanauthorFeb 22.2006 — Yes, I have done that before I posted this, but I just had to ask if there were any other solutions just using a background color.

So I guess css is pretty poor in this matter.... there should be a stretch attribute to the height so it will stretch the div all the way down according from the parent div.. for an example
×

Success!

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