/    Sign up×
Community /Pin to ProfileBookmark

Having an issue with multiple divs…

I have one div that’s 800px and contains two more. For the time being I’m skipping all the code just to give you a quick idea. It’s not really necessary for my answer, anyhow:

<div 800px wide>

<div 250px wide display:inline></div>
<div —– wide? display:inline></div>

</div>

Here’s my problem. I want the second INTERIOR div to take up 100% of the available width (800-250 and whatever margin/padding). Problem: width:100% will cause it to mess up the whole format. I can’t manually give it a pixel width because I don’t know the EXACT number since margins/padding/etc changes, as well as the fact I don’t WANT to input an exact width each and every time.

Any help? Thx a bunch

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guySep 02.2005 — What happens if you just dont give it a width.
Copy linkTweet thisAlerts:
@RockhoundSep 05.2005 — or width: auto;
×

Success!

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