cellpadding in a single cell???
is it possible to assign different paddings to each cell?
i made a table as the layout of the page, and in one cell i put a menu, i want the menu to float left, but with a little padding. if i assign cellpadding to some number in <table....> tag it affects whole table. i tried to write the same in the <td.....> cell but it didn't work.
Last edited by Ferret; 07-30-2007 at 06:35 PM.
I think you must have done something wrong in your code.
See this example:
If you don't see where you went wrong, feel free to post your code and I can try to point you in the right direction.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<table style="border: 4px; border-style: dashed">
<td style="padding: 20px; background-color: #333333; color:#FFFFFF">
<td style="padding: 10px; background-color:#999999">
<td style="padding: 0px">
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)