Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bordered layout cell

Status
Not open for further replies.

Josh42

Programmer
Dec 22, 2000
7
US
Is there any way to create a border to a layout cell. I tried using CSS to do this but it repeated the border throughout the cell. Thanks!
 
How did you try it in css?

whatever.css
Code:
.layoutcell {
  border-top: 1;
  border-bottom: 1;
  border-right: 1;
  border-left: 1;
}
whatever.htm
Code:
<table>
<tr>
<td class="layoutcell">stuff</td>
</tr>
</table>

[cheers]
Cheers!
Laura
 
The CSS you gave me doesn't do anything visible. I tried doing this:

.mystyle {
  border-top: 1;
  border-bottom: 1;
  border-right: 1;
  border-left: 1;
border: 1px solid #000000;
}

However, the border is repeated throughout the cell like lined paper. No good. I just want it to appear around the border. How is this done?
 
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<style>
.cellborder {
border: 1px solid #000000;
}</style>
<body>
<table width="109" height="77" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td class="cellborder">here I am</td>
</tr>
</table>
</body>
</html>

border arround single cell....IS there.
All the best!

:--------------------------------------------------------------------------:
fugitive.gif

ok,ok...I did shoot the deputy but he told me he was the sheriff!
:--------------------------------------------------------------------------:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top