Tables and format border around single, or group, of cells

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a table set up on a web page. I'd like to insert a border around
certain cells, but not the entire table. Can I do this. I know in Word
Perfect you can pick borders on right, left, top, bottom of individual cells?
 
Yes, but you will have to venture into the world of CSS to do so.

If you would put this into the head of your page, by changing this -

</head>

to this -

<style type="text/css">
<!--
..special { border:1px solid red; }
-->
</style>
</head>

you will have just embedded a stylesheet that defines a custom class rule
(called ".special"), specifying a 1px red border on all 4 sides of any page
element. You can then 'apply' that rule to anything on the page, e.g.,

<body class="special">

will give an interesting effect, while -

<td class="special">

will give you exactly the effect you want.
 
Right click in your table and select Table properties.
Click Style, in the next dialog click format, in the dropdown select
Border.

Apply the borders you want and click Ok or Apply all the way out.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer

Scott said:
I have a table set up on a web page. I'd like to insert a border around
certain cells, but not the entire table. Can I do this. I know in Word
Perfect you can pick borders on right, left, top, bottom of individual
cells?
 
Correct.

If you right click in a cell you select Cell Properties.

I should have said select "Cell properties."

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 
But that gives you the dreaded invalid (hence only supported in IE) HTML -

<td bordercolor="#00FF00">&nbsp;</td>

Using CSS (as I described) is really the only way to get valid code *and*
cross-browser support.
 
Back
Top