Do % in CSS flow into eachother?

hclloveh

New Member
I'm trying to turn my fixed site into a fluid site and I have a quick question on how %'s work.\[code\] <div class=wrap> <div class=box> <Div class=text> <div class=box> <div=class=wrap> .wrap{ width: 100%; } .box{ width: 50% } .text{ width: 25% }\[/code\]Now given this code what happens? the wrap fits the entire screen. The box will fill 50% of the screen, but the text only fills 25% of 50%. It doesn't fill 25% of the entire screen, it only fills the percentage of its containing div. Is that correct?
 
Back
Top