css - Full height div: make faux column have a fixed width -


i have layout so:

<div class='foo'>     <div class='bar'>         <div class='baz'>             content stuff...<br/>             content stuff...<br/>             content stuff...<br/>             content stuff...<br/>         </div>     </div> </div> 

with css so:

.foo{     position:absolute;     left:20px;     top:20px; } .bar{     width:0px;     border-left:1px solid blue;     border-right:1px solid yellow; } .baz{     padding-left:35px;     padding-right:27px; } 

... pretty standard way full height columns. need bar fixed width (in case 0px). there way content div, baz, have old width (when bar had auto width), , still keep bar full height?

using css alone, don't think so; @ least none can't think of.

why not set width auto in css, using jquery can set width variable, , can set width 0px...

that way you've got variable can set .baz to.

am making sense?


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -