HighDots Forums  

Images and "align = center" in Internet Explorer

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Images and "align = center" in Internet Explorer in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Clancy
 
Posts: n/a

Default Images and "align = center" in Internet Explorer - 07-02-2006 , 09:04 AM






The other day I reported that it appeared that Internet Explorer allocated
excess vertical padding to an image unless you specified "align = center".

Today, after a hell of a lot of experimenting, during which I got completely
contradictory results, I eventually discovered what was really going on.

If you specify a cell containing an image with the line below, it is rendered
correctly:

<td><img src="Images/One_90_120.jpg" width="90" height="120" border="0"></td>

If however the final </td> does not immediately follow the image source
specification, as in the line below, an additional 4 pixels padding is added to
the bottom of the image

<td><img src="Images/One_90_120.jpg" width="90" height="120" border="0"> </td>

As I have been caused a lot of trouble by accidentally copying or deleting the
</td> when it is at the end of a long line, I like to put the <td> and </td> on
their own lines, so you can imagine how much trouble I had working out what was
actually going on.

For a demonstration of this effect see :
http://www.corybas.com/Test9.htm and
http://www.corybas.com/Test10.htm




Clancy (AT) cybec (DOT) com.au

Reply With Quote
  #2  
Old   
jojo **Adobe Community Expert**
 
Posts: n/a

Default Re: Images and "align = center" in Internet Explorer - 07-02-2006 , 09:14 AM






Hi, Clancy.

As you discovered, the space inside the tags is real space, you need to
keep them butt up to the content.


--
Cheers jojo
Adobe Community Expert for Dreamweaver 8
----------------------------------------------------
http://www.webade.co.uk
http://www.ukcsstraining.co.uk/
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------

Reply With Quote
  #3  
Old   
Murray *ACE*
 
Posts: n/a

Default Re: Images and "align = center" in Internet Explorer - 07-02-2006 , 09:33 AM



And images do not have a valid align="center" attribute.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"jojo **Adobe Community Expert**" <jojo (AT) zoot3 (DOT) com> wrote

Quote:
Hi, Clancy.

As you discovered, the space inside the tags is real space, you need to
keep them butt up to the content.


--
Cheers jojo
Adobe Community Expert for Dreamweaver 8
----------------------------------------------------
http://www.webade.co.uk
http://www.ukcsstraining.co.uk/
----------------------------------------------------
Extending Knowledge, Daily.
http://www.communityMX.com/
Free 10 day trial
http://www.communitymx.com/joincmx.cfm
----------------------------------------------------



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.