You're going to have to do alot of negative margins. It's not really worth the hastle - you may as well do it with tables, and save yourself the headache of making the css like a table.
What do you mean negative margins? that looks like a pretty basic 3 div design.
i was gunna say...thats really easy if we're just talkin about those 3 blocks.
just float them...
and you dont need c++ for dummies. if you know php you kno c++ and nearly any other programming language out there. php is soo closely resembled to c++ its not even funny. only difference is some syntax and built in functions.
yea that was the same for me, learned c++ then went to php.
hopefully i can finish up my site soon and see what you guys think of it. since two versions of my website ago i started using CSS and div's exclusively to format everything and never looked back. there are some really nifty tricks you can do once you really get into it.
you can do those with CSS?
Yes, multi-column floats are nice, until you have a page where there is very little content in each column, so when someone is looking at it on a big browser window, the columns end halfway down the page and it looks wierd.
Or you have one column that's shorter than the others, so it ends where it ends, and the rest just keep going. Sure, you can leave it like that and it will look fine... but it bugs me that anybody who knows CSS will look at it and go "aha, the old three-column float trick, I know how he did that".
Also, watch out for IE. There's a million features of CSS that it implements differently from all the standards compliant browsers. So you could make something that looks great in IE and then look at it in FF and "OMG, why are these blocks of text on top of each other". And vice versa.
There are lots of zealots out there who will pretend that CSS-only layouts can do everything, but pretending that they are will not make them that way. In fact, refusing to pretend that CSS is adequate for all layout needs is how we'll get the W3C people to get off their asses and do whatever it is that needs to be done to get all the browser developers on the same page.
Until then, the fact that CSS is unnecesserily cumbersome for layout is not my problem. I don't care if the 0.001% of the population who use screen readers has trouble with my site. So when something doesn't work with CSS, rather than spending sleepless nights figuring out CSS hacks (which defeat the whole purpose of CSS in the first place) I just shrug and go back to tables. Nobody will ever stop supporting tables, and even IE implements them correctly by now.
3 column hacks are only needed if you create your layout to that, not truly needed in my case.
Also, CSS3 stops the requirement for this as well by supporting a multi column property. That will prevent the usage of CSS hacks being required in order to achieve the same result. It's just a shame that IE doesn't support this yet.
If IE was a person, I'd want to hunt IE down and smack them with a lead-filled clue stick. I mean, I'd smack IE hard, not some kind of pussy love-tap. I'm talking about the kind of smacking that's accompanied by satisfying crunching and squishing sounds.