...

View Full Version : cellspacing/padding in css



mat
09-29-2002, 12:29 AM
i have this in my html page

<table cellpadding=0 cellspacing=0>

Can i control that cellspacing and padding in my style sheet?

syntax :confused:

Nightfire
09-29-2002, 12:51 AM
padding:10px;
Or
padding-left:5px;
padding-top: etc etc

Can't remember how to do cellspacing

adios
09-29-2002, 03:20 AM
<html>
<head>
<title>untitled</title>
<style type="text/css">

table {
border-collapse: collapse;
background: saddlebrown;
}

td, th {
width: 200px;
height: 50px;
margin: 0px;
padding: 0px;
border: 3px gold groove;
}

</style>
</head>
<body>
<br>
<table>
<tr>
<td></td><td></td>
</tr><tr>
<td></td><td></td>
</tr><tr>
<td></td><td></td>
</tr>
</table>
</body>
</html>

http://lists.evolt.org/index.cfm/a/harvest/b/detail/c/Week-of-20020527/d/4722?orderby=tip_date&orderdir=DESC



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum