...

View Full Version : bordersize with css



comicw
11-18-2002, 11:44 PM
Hi,

I want to make my border smaller than the size "1" of Frontpage... can this be done with style-sheets, using a colour other than black (standard)?

JustAsking
11-19-2002, 12:11 AM
You could use something like the following:



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<style>
<!--
td.small-border {border-style: solid; border-width: 1px;}
//-->
</style>
</head>
<body>
<table summary="">
<tr><td class="small-border">gfdgdfgdfg</td></tr>
</table>
</body>
</html>


Check out W3Schools (http://www.w3schools.com/css/css_border.asp) for heeps more info on this stuff.

Motif Webs
11-19-2002, 03:29 AM
To use Just-Asking's example:

small-border {border: 1px solid #00ff00;} will give you a solid border, 1px wide and it should be colored lime green :) in browsers newer than Netscape 4.x .

Neil



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum