Go Back   Velocity Reviews > Newsgroups > ASP Net
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

ASP Net - VALIGN Problem in IE Only?

 
Thread Tools Search this Thread
Old 02-15-2008, 12:30 PM   #1
Default VALIGN Problem in IE Only?


Again, my oppologies if this is not *exactly* on topic. But please help if
you can: I am having trouble with the VALIGN property of a table cell (<TD>)
only in Internet Explorer. In FireFox, it works exactly as expected.

When I set <TD valign="bottom">, in FireFox, the image that I place inside
the TD is completely flush with the bottom of the cell. But in IE, there is a
gap.

Also, one more note: The MS Visual Studio 2008 HTML "Design" view *also*
shows it correctly (like in FireFox).

I have a very simple sample HTML file, as well as screen-shots from IE and
FireFox, but I guess I can't upload them here.

Any help would be MOST appreciated!

Alex



Alex Maghen
  Reply With Quote
Old 02-15-2008, 01:23 PM   #2
Anthony Jones
 
Posts: n/a
Default Re: VALIGN Problem in IE Only?
"Alex Maghen" <> wrote in message
news:1E9991BB-0CBD-433E-A105-...
> Again, my oppologies if this is not *exactly* on topic. But please help if
> you can: I am having trouble with the VALIGN property of a table cell

(<TD>)
> only in Internet Explorer. In FireFox, it works exactly as expected.
>
> When I set <TD valign="bottom">, in FireFox, the image that I place inside
> the TD is completely flush with the bottom of the cell. But in IE, there

is a
> gap.
>
> Also, one more note: The MS Visual Studio 2008 HTML "Design" view *also*
> shows it correctly (like in FireFox).
>
> I have a very simple sample HTML file, as well as screen-shots from IE and
> FireFox, but I guess I can't upload them here.
>
> Any help would be MOST appreciated!


IE has a bug where it treats white space following the img before the </td>
as significant in some way. If you make sure the output is like this:-

<td valign="bottom"><img ... /></td>

That little gap will disappear.

--
Anthony Jones - MVP ASP/ASP.NET




Anthony Jones
  Reply With Quote
Old 02-15-2008, 01:56 PM   #3
Alex Maghen
 
Posts: n/a
Default Re: VALIGN Problem in IE Only?
All I can say is, OH MY G-D! Are you kidding? How do they *do* these things?
Thanks so much!!!

Alex

"Anthony Jones" wrote:

> "Alex Maghen" <> wrote in message
> news:1E9991BB-0CBD-433E-A105-...
> > Again, my oppologies if this is not *exactly* on topic. But please help if
> > you can: I am having trouble with the VALIGN property of a table cell

> (<TD>)
> > only in Internet Explorer. In FireFox, it works exactly as expected.
> >
> > When I set <TD valign="bottom">, in FireFox, the image that I place inside
> > the TD is completely flush with the bottom of the cell. But in IE, there

> is a
> > gap.
> >
> > Also, one more note: The MS Visual Studio 2008 HTML "Design" view *also*
> > shows it correctly (like in FireFox).
> >
> > I have a very simple sample HTML file, as well as screen-shots from IE and
> > FireFox, but I guess I can't upload them here.
> >
> > Any help would be MOST appreciated!

>
> IE has a bug where it treats white space following the img before the </td>
> as significant in some way. If you make sure the output is like this:-
>
> <td valign="bottom"><img ... /></td>
>
> That little gap will disappear.
>
> --
> Anthony Jones - MVP ASP/ASP.NET
>
>
>



Alex Maghen
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dial Up Problem smackedass A+ Certification 3 02-02-2007 11:59 PM
Re: Virus Problem ** Help!** David BlandIII A+ Certification 1 03-02-2004 06:00 PM
Pioneer DVR3100S problem with Satellite receiver Samsung DCR 9500 Fredrik Bengtsson DVD Video 0 12-12-2003 02:32 PM
Re: Serious Computer Problem hootnholler A+ Certification 1 11-24-2003 12:18 PM
Re: Serious Computer Problem Bret A+ Certification 0 11-19-2003 12:51 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46