Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Borderless Table with Interior Padding Only
Old 08-10-2008, 05:43 PM Borderless Table with Interior Padding Only
Super Talker

Posts: 117
Trades: 0
I have a large table that currently has 15px spacing between all the cells. What I would like to do is maintain that spacing on the interior of the table but remove it from the outer edges so the table content is as wide as the rest of the fixed width site, which in my case is only defined by a couple of <hr>'s. I've been looking at W3's CSS values for tables but I haven't found what I'm looking for yet. I tried fiddling with the spacing values for the individual cells (which I think is where the solution is) but I haven't come up with anything that works yet.

http://mrbsdomain.com/vaio_wallpapers2.php

Relevant CSS at present:
Quote:
table.wallpaper {
font-family: Verdana, Arial, sans-serif;
font-size: 8pt;
width: 100%;
border: 0;
border-collapse: seperate;
border-spacing: 15px;
}

.wT {
width: 122px;
}

.wD {
width: 173px;
}

Last edited by Mr. B; 08-10-2008 at 08:24 PM..
Mr. B is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-14-2008, 05:31 PM Re: Borderless Table with Interior Padding Only
Super Talker

Posts: 117
Trades: 0
I came up with a partial solution that works in all browsers, but I still have some extra space on the right. I extended the height of the thumbnail <td> to get the vertical spacing and added padding to the left and right of the description <td> to get the left and right padding. I could create a separate <td> class for the far right cell with no padding-right to get that extra space but at present I don't think it's worth the trouble.
Quote:
table.wallpaper {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
width: 990px;
border: 0;
border-spacing: 0;
border-collapse: collapse;
}

.wT {
width: 122px;
height: 107px;
padding: 0;
margin: 0;
vertical-align: top;
}

.wD {
padding: 0 15px 0 15px;
vertical-align: top;
width: 178px;
}

Last edited by Mr. B; 08-14-2008 at 05:36 PM..
Mr. B is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Borderless Table with Interior Padding Only
 

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.14162 seconds with 12 queries