web2.0 Posted November 12, 2008 Share Posted November 12, 2008 HI,Can someone please tell me how can I control the table border.As when I m definig the table boder property cross-browser its giving problem.So if some one could help me in this that will be great!!Thanks Link to comment Share on other sites More sharing options...
Ingolme Posted November 12, 2008 Share Posted November 12, 2008 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 More sharing options...
javaholic5 Posted November 18, 2008 Share Posted November 18, 2008 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.