467,907 Members | 1,373 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

Floating images simultaneously left and right

I have a layout where I'd like to float one small image to the top
left of a page, another small one to the top right and with a single
central column of text. I've set this up and it seems to work OK in
IE6 just by using:

<img class="floatl" src="img1.gif" etc
<img class="floatr"src="img2.gif" etc
<p>Some text in the middle</p>

Simple question: It works OK in IE6, but is it reasonable to assume
that this behaviour will be robust in other recent browsers that know
about CSS? Or maybe not?

TIA
John Dann
Jul 20 '05 #1
  • viewed: 2097
Share:
1 Reply
On Thu, 01 Apr 2004 14:02:48 +0100, John Dann <ne**@prodata.co.uk> wrote:
I have a layout where I'd like to float one small image to the top
left of a page, another small one to the top right and with a single
central column of text. I've set this up and it seems to work OK in
IE6 just by using:

<img class="floatl" src="img1.gif" etc
<img class="floatr"src="img2.gif" etc
<p>Some text in the middle</p>

Simple question: It works OK in IE6, but is it reasonable to assume
that this behaviour will be robust in other recent browsers that know
about CSS? Or maybe not?

TIA
John Dann

AFAIK the float property on img is observed by all recent browsers which
handle CSS at all, including various Geckos and Opera. The only browsers
which would not do this properly would simply handle it in normal sequence
without applying the float.

Without had evidence in front of me, I'm inclined to believe older
browsers like N4 would louse it up. But you asked about recent browsers...
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Andrew Fedoniouk | last post: by
3 posts views Thread by Grytpype-Thynne | last post: by
16 posts views Thread by Michael Bernstein | last post: by
3 posts views Thread by Mark Carroll | last post: by
1 post views Thread by Lee K. Seitz | last post: by
31 posts views Thread by Martin Clark | last post: by
5 posts views Thread by jemcgui | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.