Question on tables

E

Ed Richter

I've added a boarder to a table. However what I'd really like is some cells to have a boarder and some not to have one. Is there a way to control boarders for individual cells? I'd like to have a boarder on the the top of a cell, but not the bottom.

Currently for the entire table the code is:

<div align="center">
<table border="1" cellpadding="0" cellspacing="0" width="455">
<tr>
<td width="455" colspan="11" height="27">

furhter down for each cell (typically)

<tr>
<td width="30" align="center"><font face="Arial">M</font></td>
<td width="30" align="center"><font face="Arial">A</font></td>
<td width="30" align="center"><font face="Arial">E</font></td>

Can I add a boarder command to each cell, and to contol each line of each side of the cell seperately?
 
M

Murray

<td width="455" colspan="11" height="27" style="border-right:1px solid
black;">

Or without using inline CSS, try this -

td.special { border-right:1px solid black; }

and then -

<td class="special">

You can use border-top, border-right, border-bottom, and border-left if you
need....

--
Murray

I've added a boarder to a table. However what I'd really like is some cells
to have a boarder and some not to have one. Is there a way to control
boarders for individual cells? I'd like to have a boarder on the the top of
a cell, but not the bottom.

Currently for the entire table the code is:

<div align="center">
<table border="1" cellpadding="0" cellspacing="0" width="455">
<tr>
<td width="455" colspan="11" height="27">

furhter down for each cell (typically)

<tr>
<td width="30" align="center"><font face="Arial">M</font></td>
<td width="30" align="center"><font face="Arial">A</font></td>
<td width="30" align="center"><font face="Arial">E</font></td>

Can I add a boarder command to each cell, and to contol each line of each
side of the cell seperately?
 
M

Mark Fitzpatrick

Murray's suggestion is the only real way to do it on each cell, but just remember that not all browsers support this. By default HTML only asigns borders globally and then CSS can be used to tweak it. The problem is all browsers implement a different level of CSS compliance and some just do what they like best regardless.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

I've added a boarder to a table. However what I'd really like is some cells to have a boarder and some not to have one. Is there a way to control boarders for individual cells? I'd like to have a boarder on the the top of a cell, but not the bottom.

Currently for the entire table the code is:

<div align="center">
<table border="1" cellpadding="0" cellspacing="0" width="455">
<tr>
<td width="455" colspan="11" height="27">

furhter down for each cell (typically)

<tr>
<td width="30" align="center"><font face="Arial">M</font></td>
<td width="30" align="center"><font face="Arial">A</font></td>
<td width="30" align="center"><font face="Arial">E</font></td>

Can I add a boarder command to each cell, and to contol each line of each side of the cell seperately?
 
M

Murray

Which browsers are you thinking of that don't support this, Mark?

--
Murray

Murray's suggestion is the only real way to do it on each cell, but just
remember that not all browsers support this. By default HTML only asigns
borders globally and then CSS can be used to tweak it. The problem is all
browsers implement a different level of CSS compliance and some just do what
they like best regardless.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

I've added a boarder to a table. However what I'd really like is some cells
to have a boarder and some not to have one. Is there a way to control
boarders for individual cells? I'd like to have a boarder on the the top of
a cell, but not the bottom.

Currently for the entire table the code is:

<div align="center">
<table border="1" cellpadding="0" cellspacing="0" width="455">
<tr>
<td width="455" colspan="11" height="27">

furhter down for each cell (typically)

<tr>
<td width="30" align="center"><font face="Arial">M</font></td>
<td width="30" align="center"><font face="Arial">A</font></td>
<td width="30" align="center"><font face="Arial">E</font></td>

Can I add a boarder command to each cell, and to contol each line of each
side of the cell seperately?
 
A

Andrew Murray

easy way:
create a table, divide it into cells, then insert other tables *within* those cells, and apply the border to those you want and don't apply the border to those your don't.

I've added a boarder to a table. However what I'd really like is some cells to have a boarder and some not to have one. Is there a way to control boarders for individual cells? I'd like to have a boarder on the the top of a cell, but not the bottom.

Currently for the entire table the code is:

<div align="center">
<table border="1" cellpadding="0" cellspacing="0" width="455">
<tr>
<td width="455" colspan="11" height="27">

furhter down for each cell (typically)

<tr>
<td width="30" align="center"><font face="Arial">M</font></td>
<td width="30" align="center"><font face="Arial">A</font></td>
<td width="30" align="center"><font face="Arial">E</font></td>

Can I add a boarder command to each cell, and to contol each line of each side of the cell seperately?
 
M

Murray

Easy, but messy, no?

--
Murray
============

easy way:
create a table, divide it into cells, then insert other tables *within*
those cells, and apply the border to those you want and don't apply the
border to those your don't.

I've added a boarder to a table. However what I'd really like is some
cells to have a boarder and some not to have one. Is there a way to control
boarders for individual cells? I'd like to have a boarder on the the top of
a cell, but not the bottom.

Currently for the entire table the code is:

<div align="center">
<table border="1" cellpadding="0" cellspacing="0" width="455">
<tr>
<td width="455" colspan="11" height="27">

furhter down for each cell (typically)

<tr>
<td width="30" align="center"><font face="Arial">M</font></td>
<td width="30" align="center"><font face="Arial">A</font></td>
<td width="30" align="center"><font face="Arial">E</font></td>

Can I add a boarder command to each cell, and to contol each line of each
side of the cell seperately?
 
E

Ed Richter

Works great, thanks!

It is a rather large table and differnet cells need left, right, top, bottom
commands depending on position so is rather tedious.

But gives me what I need!
 
C

Cheryl D Wise

I was using my tablet and pen, hopefully you guys could figure out it should
have been:

The only browser I'm aware of that has problems with borders and/or CSS is
Netscape 4.x
 
M

Murray

Yep - that's the only one I know of too. So, who cares, then?

It's too good a technique to not use because of NN4x.
 
S

Steve Easton

I would imagine there are less people using NN4 than there are people using IE 4
Although I do get an occasional hit from someone using Windows 3.1


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

Cheryl D Wise

I agree, I haven't worried about NN 4.x for close to two years. I will make
sure the page works in NN 4.x (or IE 4 for Steve's visitors ;-)) but I could
care less if they don't get exactly the same look.

--
Cheryl D. Wise
MS FrontPage MVP
http://mvp.wiser ways.com
http://starttoweb.com
Online instructor led web design training - Next Session June 26th
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top