html - Fluid container, with fluid-fixed-fluid inner layout -
i've tried find solution issue mentioned in title no avail.
basically, have fluid <div> container 3 inner elements (a fixed-width <img> element, fluid width <textarea>, fixed-width <button>).
i've tried few things negative margins no luck. <textarea>'s length trigger button wrap below.
i've added couple of pictures better describe want: 
and

edit: sum up, i'd have elements 'cover' area , not wrap.
also, i'd avoiding javascript resize listeners. pure css.
you can using percentages: id's or classes used example.
<div id="fluidwrapper" style="width:100%;"> <div id="imagewrapper" style="float:left;width:100px;"> <img>noimg</img> </div> <div id="textandbuttonwrapper" style="width:40%;white-space:nowrap;"> <textarea style="width:80%;"></textarea> <button style="width:20%;">button</button> <!-- okay not fixed @ --> </div> </div> white-space:nowrap actually, searching for, guess. hope helps.
Comments
Post a Comment