Re: Div rendering
- From: "abcd" <abcd@xxxxxxxx>
- Date: Wed, 9 May 2007 10:21:52 -0700
Thanks Randy.
How should I solve this issue. Any thoughts....
"Randy Webb" <HikksNotAtHome@xxxxxxx> wrote in message
news:YvednYgBIfTbi9zb4p2dnA@xxxxxxxxxxxxxxx
abcd said the following on 5/8/2007 5:43 PM:
I have below code
Start over.
===============================================================
<html>
<span style="width: 250; padding-left:0px; padding-right:5px;
padding-top:0px; padding-bottom:5px">
<div align=center><font face="Trebuchet MS""
size="2"><b>AAA</b></font><br><img src ="/Yellow.png" height=4 width=186
border=0><img src="A26.png" border="0"></div></a></span>
<span style="width: 250; padding-left:0px; padding-right:5px;
padding-top:0px; padding-bottom:5px">
<div align=center><font face="Trebuchet MS""
size="2"><b>BBB</b></font><br><img src ="/Red.png" height=4 width=186
border=0><img src="A27.png" border="0"></div></a></span>
<span style="width: 250; padding-left:0px; padding-right:5px;
padding-top:0px; padding-bottom:5px">
<div align=center><font face="Trebuchet MS""
size="2"><b>CCC</b></font><br><img src ="/Red.png" height=4 width=186
border=0><img src="A28.png" border="0"></div></a></span>
</html>
=======================================================
In IE it renders like 3 images in one row where as in Firefox it renders
3 images in 3 seperate lines....
Firefox gets it right, IE gets it wrong. DIV elements can not be child
elements of a SPAN as the DIV is a block level element while the SPAN is
an inline element.
What changes do I need to make it so that Firefox also shows me these 3
images in one row....
Producing valid HTML would be a start.
I will be having many such thumbnail images on my page and I want the
browser to adjusts the rows and columns automatically...IE does it for me
automatically but firefox not....Is the HTML syntax correct...
No. http://validator.w3.org/ and paste your HTML in the textarea. It will
generate roughly 40 errors.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/
.
- References:
- Div rendering
- From: abcd
- Re: Div rendering
- From: Randy Webb
- Div rendering
- Prev by Date: Re: Identifying width of a table
- Next by Date: Re: Div rendering
- Previous by thread: Re: Div rendering
- Next by thread: Re: Div rendering
- Index(es):
Relevant Pages
|
|