3
I’m having a question, I’m creating a page html where I’ll have 3 columns, however the user will resize her any way she wants, however automatically as divs
will have to themselves auto adjust!
I’m using the property resizable
of jqueryui.
I wonder if you can help me
#container {
width:100%;
text-align:center;
}
#left {
float:left;
width:32%;
height: 20px;
background: #000;
}
#center {
display: inline-block;
margin:0 auto;
width:32%;
height: 20px;
background: #00ff00;
}
#right {
float:right;
width:32%;
height: 20px;
background: #7b8787;
}
<div id="container">
<div id="left"></div>
<div id="center"></div>
<div id="right"></div>
</div>
When I stretch any of the divs
They should fit anywhere automatically.
Put the code you already have there for us to see how you are doing, and better understand what is happening
– Jhonatan Simões
Would you have any problem doing this with table columns?
– Samir Braga
You want the internal columns to be resized in width and when the user is resizing the other columns should adjust as the layout or remain the same size creating a horizontal scroll?
– RBoschini
Example if the user wants to expand the center column more to the left or to the right he can set the 2Div’s have to adjust so there is no white space.
– Luciano Ramos
I made an example with 3 columns, see if it helps Example:jsfiddle.net/afcv0come/
– RBoschini
Valew ! That’s right only for both sides ..!
– Luciano Ramos