![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
In article <bggeiq$mj3$1 (AT) forums (DOT) macromedia.com> , "Gary White" reply (AT) newsgroup (DOT) please> wrote: See http://www.alistapart.com/stories/practicalcss/ My attempt to duplicate this: http://www.jshook.com/DW_Tests/wrap_pic.html Where did I go wrong? I'm sure there is something perfectly obvious that I'm not seeing, but I've checked my code against that at alistapart and can't find any differences.... |
#12
| |||
| |||
|
|
You didn't give your floated elements a width, as the CSS specification practically requires. Setting a temporary border for 'div.float' reveals what's happening pretty clearly. Giving them a width should fix the problem. |
#13
| |||
| |||
|
#14
| |||
| |||
|
|
I think I got it: http://www.jshook.com/DW_Tests/wrap_pic.html There must be a way to use inheritence to simplify the CSS--it seems wasteful to have to specify both a left and right float class, when all that differs between them is their float and margins. |
![]() |
| Thread Tools | |
| Display Modes | |
| |