Forum Moderators: open

Message Too Old, No Replies

table borders

html table borders

         

ksugam

8:38 pm on Feb 28, 2008 (gmt 0)

10+ Year Member



Hello All,
I have a table displayed on the browser. Now i want to display border only around certain cells and not the entire table....
The cells can be in the center..or group of cells enclosed in a box....so on
How do i achieve this?

I hope you understand what i want...

tedster

9:37 pm on Feb 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Try CSS rules. You can even use them inline with a style attribute like this:

<td style="border:3px solid red;">

ksugam

9:52 pm on Feb 28, 2008 (gmt 0)

10+ Year Member



so how do we do it if we just want the border on right side or left side ..and not around entire cell?

ksugam

9:58 pm on Feb 28, 2008 (gmt 0)

10+ Year Member



sorry for not googleing it bfore asking....i got it

tedster

10:12 pm on Feb 28, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For basic coding instructions, try the W3Schools website [w3schools.com] - I think it's a spectacular resource whenever I'm wrestling with what I know should be basic code. So when you use a search engine to find information about html, css, or a host of other coding, you can just add site:w3schools.com to the search and find their information, which is always accurate in my experience.