/    Sign up×
Community /Pin to ProfileBookmark

DIVS/Background Images/Variable Height Issues …

I was wondering if there is a common way to create multi column divs all next to each other with background images that extend down to the same height when the text in each one is different. I want them all to be repeated to the bottom of the longest height div.

Here’s a picture … assume that my background image is a green line one pixel high and a red line 1 pixel high and I want it to be variable height. I find that the green div will never extend down to the bottom. I also want this to be able to work for any number of columns that I add.

Anyone have code for something like this that works in all IE, FF and Safari?

Thanks!

[upl-file uuid=46a1027d-4161-4dfc-bcd2-8c92b2108003 size=43kB]divs.jpg[/upl-file]

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@jtownauthorOct 23.2007 — Oh and I've tried using a main background image with the big container, but that doesn't seem to work when you don't specify a height and only have divs inside.
Copy linkTweet thisAlerts:
@CentauriOct 24.2007 — For that you need faux columns. If both the internal divs are floated, then you will also need to clear those floats to force the container to enclose them.
×

Success!

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