Table border disappears

liunx

Guest
In HTML, the following code produces a 1px border: <table border="1px">

I change the tag to <table> and move the border to CSS:


table {
border: 1px;
background-color: lime;
}

Now there's no border (the lime is just to verify that the page can see the CSS sheet).

Please advise.

Regards,
AlanIn css it's:
border: [width] [type] [color];
border: 1px solid black;
or
border:0; /* no border */

tutorial (<!-- m --><a class="postlink" href="http://www.w3schools.com/css/css_border.asp">http://www.w3schools.com/css/css_border.asp</a><!-- m -->)Thanks Fang. All OK.

The tutorials look great.

Regards,
Alan
 
Back
Top