/    Sign up×
Community /Pin to ProfileBookmark

div width = rest, with another div in px (parent in %)

Hi. Check [URL=”http://izua.ath.cx/news_4″]this out[/URL].
As you can see, I’m trying to make newsheadertxt div fill completly its space. The image is given in pixels, 100px. Everything else (even fonts) are in % or em.

How can I make newsheadertxt fill its parent (which has a fixed width, in %, along with a padding constraint), but be on the same line with the picture?

to post a comment
CSS

2 Comments(s)

Copy linkTweet thisAlerts:
@kvirriauthorJun 29.2008 — Okay, i fixed it now, and it works on opera and mozilla.

but on IE it breaks. the div that's supposed to enlong itself to fill (parent is set to overflow: hidden, div has no width constraint, and no float) goes under the picture.

god strike microsoft from the sky and delete with it every running copy of IE, but I can't figure out what am I doing wrong.

Any ideas?

Thanks!
Copy linkTweet thisAlerts:
@WebJoelJun 29.2008 — ...How can I make newsheadertxt fill its parent (which has a fixed width, in %, along with a padding constraint)...[/QUOTE]

.newsheadertxt

{

background-color: #000000;

[B]min-width: 100%;[/B]

}
[/QUOTE]
IE doesn't understand "[U]min-width[/U]:[I]value[/I];". Try "width:100%;".
×

Success!

Help @kvirri 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 6.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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...