![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
I'd definitely agree that there's no really good tutorial for CSS layout - learning by example is the only way you get to see many techniques built up. However, the Floatutorial at Max Design (<http://css.maxdesign.com.au/floatutorial/>) gives a nicely structured introduction to floats, starting with images and moving onto their use for multi-column layouts - I think it's a good starting place. |
#12
| ||||
| ||||
|
|
Phil Evans <newsgroups (AT) philHADDOCKevans (DOT) removethefish.com> wrote: I'd definitely agree that there's no really good tutorial for CSS layout - learning by example is the only way you get to see many techniques built up. However, the Floatutorial at Max Design (<http://css.maxdesign.com.au/floatutorial/>) gives a nicely structured introduction to floats, starting with images and moving onto their use for multi-column layouts - I think it's a good starting place. Floating is the most widely abused method of creating a css layout, |
|
and lastly their use for layout purposes causes side effects that many people don't understand (e.g. floats being removed from the flow). |
|
only reason we sometimes have to resort to using them is because of that stinking pile of excrement called IE and it's non support for css tables. |
|
Avoid using floats for layout purposes if you can. |
#13
| ||||||
| ||||||
|
|
I prefere h1><span>header text</span><h1> + span {display: none;} h1 { background: ... } Instead of img alt="header text" src="header.gif" / |
|
h1->background-color | +-------------------------+ +-| h1->background-image | +-------------------------+ +-| img->background-color | +-------------------------+ +-| img->background-image | +-------------------------+ +-| img->src | |
|
h1->background-color | +-------------------------+ +-| +-------------------------+ |
|
+-------------------------+ +-| +-------------------------+ |
|
+-------------------------+ +-| +-------------------------+ |
|
+-------------------------+ +-| +-------------------------+ |
#14
| |||
| |||
|
|
h1>Foo</h1 h1 {content: url("foo.img")} could be justifyable (CSS*3, working in Opera*7 already), [...] |
![]() |
| Thread Tools | |
| Display Modes | |
| |