Sent by Susan Tilley on 18 January 2005 21:09
Bob McClelland wrote:
> Hi All,
>
> I have a need to put an occasional image amongst a section of text,
> sometimes to the left, and sometimes to the right.
Hi Bob,
I have something like this on one of my sites here:
http://pineconelumber.com/testimonials/
css here: http://pineconelumber.com/assets/pc_style.css
relevant css (edited for brevity):
..cfloat {
float: right;
width: 172px;
}
..cfloatleft {
float: left;
width: 172px;
}
It is pretty straightforward. If your main content is in the
regular flow you can just float your images left or right.
You need to give the floats a width or else it won't work.
I think all you need is above. If you look at my css, the
other stuff (border, padding center etc.) is just to put
some design formatting on the float not for positioning per se.
HTH,
Susan
______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/