Jump to content

Custmozing table border


web2.0

Recommended Posts

That's what CSS is for. You're really not supposed to use HTML to decorate your pages.If you don't know CSS yet, go to the W3Schools CSS tutorial. The code for giving a border to the table is:

table {border: 1px solid black;}

Another thing: If you're using tables to layout your site I suggest you start learning about <div> elements, CSS float, clear, margin and padding properties to do it instead. It's the modern and more efficient way.

Link to comment
Share on other sites

you can also control the border for each side separately like this (in case you need to):

table {border-top: 1px solid #808080;border-right: thin dotted #808080;border-bottom: 1px solid #808080;border-left: 1px solid #808080;}

The link mentioned on the previous post is an excellent source for learning Css or even to use it as a quick reference.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...