Hi Are all block elements that are side by side - next to each other or on same line - or columns- floated or is there another way to do this? I use the web developer toolbar Outline block elements and there are many block level elements on same line on many web sites. Thanks
The practicality depends upon what is happening with the entire page. Other options - yes. Better or equal choices - maybe. One possible option follows. Three columns, defined widths, position: absolute:, very fluid.....
A row of inline-block: would be another possible option, but you would have to keep an especially close eye on IE.
Are all block elements that are side by side - next to each other or on same line - or columns- floated or is there another way to do this?
There are probably half a dozen ways to get blocks next to one another:
- floats, although I often feel it's a bit over-used. - absolute positioning: you can put them *anywhere*, hence also next to one another - relative positioning: you can nudge elements to move to where you want them - inline-blocks: they are blocks but they are also inline elements - display: table-* : makes your elements act as if they are elements in a table. - CSS3 multiple columns - ... (did I miss any)?
Which is best will depend a lot on what's in them and around them.