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
Old 12-27-2007, 08:19 PM CSS and Table
Banned

Posts: 2,898
Location: Canada
Trades: 0
CSS has:
td {
padding: 2px;
}

for all site templates but I would like to have in some of them padding: 0px

How can I do that without changing the rest of the tables?


fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-27-2007, 08:36 PM Re: CSS and Table
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Create a CSS class and add that to the tables or cells you want.

.nopadding {
padding: 0;
}

<td class="nopadding">

or you can surround the table in a div

#nopadding td {
padding: 0;
}

<div id="nopadding">
<table>
...
<td></td>
...
</table>
</div>
joder is offline
Reply With Quote
View Public Profile
 
Old 12-27-2007, 09:54 PM Re: CSS and Table
Banned

Posts: 2,898
Location: Canada
Trades: 0
Thank you James






fastreplies
fastreplies is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS and Table
 

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.18393 seconds with 12 queries