PDA

View Full Version : I got a table border question


Mgkeeper
08-17-2002, 12:46 AM
Is there any way I can make a tables border less than 1?? Because my top banner connects to my table shown here:

http://www.majvegeta.com/bb.html

But a border of 1 is too big

Nightfire
08-17-2002, 01:02 AM
add border:1px into the style you have for that table

style="position:absolute; left:8 px; top:200 px;border:1px"

Mgkeeper
08-17-2002, 01:46 AM
All right, it worked,

Thanks

brothercake
08-17-2002, 01:50 AM
FYI - you shouldn't use border styles with inline css, because it causes rendering problems for netscape 4. better to define a class, and call that in the table tag

Mgkeeper
08-17-2002, 03:26 AM
so uh, how do i do that??

boxer_1
08-17-2002, 03:55 AM
Here's a simple example using essentially the same code Nightfire posted. A class selector (http://www.w3.org/TR/REC-CSS2/selector.html#class-html) is used (note the bolded parts):

<html>
<head>
<title>Tiny table border</title>
<style type="text/css">
.bdr {
position: absolute;
left 8px;
top: 200px;
border: 1px solid #ff0000;
}
</style>
</head>
<body>
<table class="bdr" width="90%">
<tr>
<td>
Content of cell
</td>
</tr>
</table>
</body>
</html>