CSS3 Box Model behaviour
crypt.codemancers.com
CSS3 Box Model behaviour
1–10 of 15 posts
Re: CSS3 Box Model behaviour
#2Re: CSS3 Box Model behaviour
#3Short ver: float two 50% widths beside each other. Change padding as you like later and not have stuff break.
I have been doing this for a year now, it's godlike especially for in-browser design.
Re: CSS3 Box Model behaviour
#4Modded up, but I really hope most frontend folk on HN already know about border-box. Short ver: float two 50% widths beside each other. Change padding as you like later and not have stuff break. I have been doing this for a year now, it's godlike especially for in-browser design.
Re: CSS3 Box Model behaviour
#5Re: CSS3 Box Model behaviour
#6Re: CSS3 Box Model behaviour
#7Modded up, but I really hope most frontend folk on HN already know about border-box. Short ver: float two 50% widths beside each other. Change padding as you like later and not have stuff break. I have been doing this for a year now, it's godlike especially for in-browser design.
Re: CSS3 Box Model behaviour
#8Most of the time, you know the border-box width (and probably the padding and border) want the browser to figure out the content-width, which is why the standard box model always seemed like a pain, because it makes you do that instead (assuming you're using units where that's even possible).
I'm trying to think of a situation where that'd be useful -- where it'd be helpful from a layout perspective to start with content-width -- so I could figure out what the w3 folks were thinking, but I've always had trouble with that. Has anybody figured this out?
Re: CSS3 Box Model behaviour
#9Re: CSS3 Box Model behaviour
#10What I've been trying to figure out for years is when/why content-box would be a desirable state of affairs. Most of the time, you know the border-box width (and probably the padding and border) want the browser to figure out the content-width, which is why the standard box model always seemed like a pain, because it makes you do that instead (assuming you're using units where that's even possible). I'm trying to thi…