/    Sign up×
Community /Pin to ProfileBookmark

Input to use available width

Below is my markup.
1 wrapper div which contains 2 left & right floating child divs.
First child div is floating left and it contains a label and an input.
The maximum width I can give to input is 50px.
Even if I can see some more space in that div.
How to utilise the empty space and extent input width to close to right floated div(in green)

[code=html]<div style=”height:20px;width:92px;background:red;margin:0px;padding:0px;font-size:11px;vertical-align:top “>
<div style=”width:68px;height:20px;float:left;vertical-align:top”>
<label>&#8364;&#8364;</label>
<input style=”width:50px;height:18px;font-size:11px;margin:0px;padding:0px;overflow:hidden;”/>
</div>
<div style=”width:12px;height:20px;float:right;background:green”>
</div>
</div>[/code]

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@iusephpauthorMar 16.2012 — got it. use

clear: both;

on input
×

Success!

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