Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Picture and text in IE/FF 1

Status
Not open for further replies.

Busken

Technical User
Dec 14, 2004
19
SE
I have a <td> with one picture and some text. I want the picture to the left, and the text to the right.
In IE i works perfect, but not i Firefox.

Why is the text under the image in Firefox, and how do i fix it?

This is the code i use:
Code:
<img src="artister/anders.jpg" align="left">
<div class="artisttext" align="justify"> &nbsp;
</div>

I have saved a printscreen of how it looks in the different browsers.
IE 7
1.jpg

Mozilla Firefox
2.jpg




Thanks for the help!
 
[tt]align[/tt] is deprecated and could be ignored in modern browsers. Try to use CSS for that. If you do:
Code:
<img src="artister/anders.jpg" alt="Anders" [b][blue]style="float: left;"[/blue][/b] />
<div class="artisttext" style="text-align: justify;"> Text
</div>
you should be ok. Of course, at the end, all styling should go in a separate stylesheet.
 
If you're using tables anyway, why not simply put another table in the cell, with a left column and a right column?

In for a penny, in for a pound, as they say.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top