13
I would like to put two blocks inside a div of parallel size, one with fixed size, and the other that fits exactly in the remaining space.
For example :
div#container {
width: 50%; /* este tamanho se altera */
height: 100px;
}
#esquerdo {
width: 100%
height: 100px;
}
#direito {
width: 40px;
height: 100px;
}
I want the blocks #left and #right side by side filling the container. see here : http://jsfiddle.net/nmqhyuz3/
What should I do?
That "layout" killed me...
– Jorge B.
@Jorgeb Some people think it’s ugly (a lot of people), but I like it, and at least in pt_BR is correct. layout is also correct, of course, and "kills" a lot less people... : P
– mgibsonbr
I know it’s correct in pt_BR. But I think it’s a crime someone remembers to create the Portuguese word with the English sound. But it was worth doing with all of them so at least they could speak English :P
– Jorge B.
I was floating without understanding the word "layout" until the @Jorge B.. rsrsrsrsr comment
– Daniel Omine
@Jorgeb. What if I told you that some Brazilian politicians wanted us to change the spelling from "pizza" to "fife"? Sad, but true. I’m glad you didn’t pick up.
– bfavaretto
@bfavaretto that’s accent. Here if we change depending on the accent we were lost. Here we say "pidza"
– Jorge B.
Who learns layout before layout really has a certain difficulty. The same occurs with container and container, and many others (I’ve seen even "mause"). There is no right... but rather the appropriate. In my opinion any of these words is appropriate in the SOPT.
– Miguel Angelo
@Miguelangelo I don’t think it’s right to choose English. Any day you only say "Ai lâve Iu" in comes of "I love you"
– Jorge B.
Well, the display: flex; the #container does not allow me to add another block inside the container, which breaks, the blocks are always side by side, no matter what I do! is there any way ?? Thank you!!!
– Danillo Eder
@Danilloeder
flex-wrap: wrap;
in your container, and create newdiv
s at the points where you want a break to occur; thesediv
only need to haveflex-basis: 100%
, and nothing else. Example.– mgibsonbr
Man, you’re too much dough bro! Thank you so much! God bless you!!! vlw
– Danillo Eder