HighDots Forums  

One pixel around borderless image in table

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss One pixel around borderless image in table in the Macromedia Dreamweaver forum.



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

Default One pixel around borderless image in table - 09-26-2008 , 11:51 PM






Hey,
I have an image in a table. I set the background color of the table to a
greyish blue, because the table is taller than the image and i want there to be
color below the image in the table. BUT ONLY in the table. The width of the
table is the same as the image. For some reason, there is one pixel of the
background color of the table around the jpg, and I cant get it to go away. I
tried cellpadding="0", but that didn't do anything. I also tried negative
numbers, but taht didnt do anything either. Am I SOL or can I put this image
in the table without having the background exceed the image?

Simple:

<table width="600" border="0" align="center">
<tr>
<td width="216" background="../../Images/tablebgcolor.jpg"><p><img
src="../../Images/Old Main.jpg" alt="" width="216" height="332"/></p>
</td>
<td width="374">&nbsp;</td>
</tr>
</table>

Note that I used the image of the background color instead of setting the
background color itself. In either case it's the same, and I can't get a
different result. Thanks for the help,
--G


Reply With Quote
  #2  
Old   
Nadia Perre *ACE*
 
Posts: n/a

Default Re: One pixel around borderless image in table - 09-27-2008 , 08:56 AM






What happens if you remove the <p> tag around the image?
<p> tags have a default padding, so unless you zero that out or move the
image of of the <p> you'll get some spacing around it.


--
Nadia
Adobe® Community Expert : Dreamweaver
----------------------------------------
CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
~ Customisation Service Available ~
http://www.csstemplates.com.au
----------------------------------------------------
Spry Widget Examples
http://www.dreamweaverresources.com/spry-widgets/
----------------------------------------------------
~ Forum Posting Guidelines ~
http://www.adobe.com/support/forums/guidelines.html
CSS Tutorials for Dreamweaver:
http://www.adobe.com/devnet/dreamweaver/css.html





"117236" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hey,
I have an image in a table. I set the background color of the table to a
greyish blue, because the table is taller than the image and i want there
to be
color below the image in the table. BUT ONLY in the table. The width of
the
table is the same as the image. For some reason, there is one pixel of
the
background color of the table around the jpg, and I cant get it to go
away. I
tried cellpadding="0", but that didn't do anything. I also tried negative
numbers, but taht didnt do anything either. Am I SOL or can I put this
image
in the table without having the background exceed the image?

Simple:

table width="600" border="0" align="center"
tr
td width="216" background="../../Images/tablebgcolor.jpg"><p><img
src="../../Images/Old Main.jpg" alt="" width="216" height="332"/></p
/td
td width="374">&nbsp;</td
/tr
/table

Note that I used the image of the background color instead of setting the
background color itself. In either case it's the same, and I can't get a
different result. Thanks for the help,
--G



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.