You need to make a container DIV for this whole bock of stuff and set 
text-align:center.


<div id="right" style="width:200px; height:400px; border:1px red solid; 
text-align:center">
   <img src="images/white_circ.gif" border="0" alt="Image Swap Sample" 
name="swap" id="im" style="padding: 12px; margin-bottom: 4px; 
padding-bottom: 0px; padding-top: 0px;">


     <div id="thumbnailtext" style="border:1px solid green"><p>Image 
Description</p>
  <div id="productphotos"><p><b>Product Photos</b> <span 
class="style6">(click to view)</div>

----- Original Message ----- 
From: "jana coyle" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, May 30, 2007 4:43 AM
Subject: [css-d] Positioning div without padding


>I would like to center the text under image1 and have a blue border 
>background around "Product Photos click to view"  I cannot seem to get the 
>positioning right without using right padding.  If I use right padding then 
>when I put the background color in it shows the padding also.  Here is a 
>link to my site http://www.precisemessenger.com/private/help4.html and here 
>is an image of what I am looking to do 
>http://www.precisemessenger.com/private/images/samplesite.gif
>
> Thanks in advance,
> Kevin
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> IE7 information -- http://css-discuss.incutio.com/?page=IE7
> List wiki/FAQ -- http://css-discuss.incutio.com/
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
> 


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to