Lines between table cells

B

Björn Lange

Hallo NG,

On a flat-screen-monitor I see thin grey lines between table cells, but I do
not see them on tube-monitor?

Can the type of monitor be the reason, or are there other possible reasons?

When I code "<table border = 1 bordercolor = #888888>...</table>", only the
cells with are not empty are surrounden by lines.

May anybody please help me?


Björn Lange
 
S

Steve Pugh

Björn Lange said:
On a flat-screen-monitor I see thin grey lines between table cells, but I do
not see them on tube-monitor?

Are you using the same version of the same browser on the same
operating system with the two monitors?
Can the type of monitor be the reason, or are there other possible reasons?

If the grey is very close to the background colour it's possible that
you aren't able to make it out on one display. Are both monitors in
the same lighting conditions?
When I code "<table border = 1 bordercolor = #888888>...</table>",

bordercolor is not a valid attribute of table. It is not in the HTML
spec and only some browsers support it. It can not be relied on. Use
CSS instead.

Any attribute value that contains the character # must be quoted. See
http://www.w3.org/TR/html401/intro/sgmltut.html#idx-attribute-6 for
the rules on which attributes must be quoted, or take the simple way
out and quote all attribute values.
only the cells with are not empty are surrounden by lines.

This is normal and in HTML the only way around it is to put something
(e.g. &nbsp;) into the empty cells. In CSS you can use empty-cells:
show;

Steve
 
S

Sid Ismail

:
: When I code "<table border = 1 bordercolor = #888888>...</table>", only the
: cells with are not empty are surrounden by lines.


Try CSS equivalent, and see ?

In HEAD
<style type="text/css">
<!--
table {border:3px ridge #888;}
td {border:1px solid #888;}
-->
</style>

and in BODY:
just <table>

Please report back?

Sid
 
B

Björn Lange

Dear Steve,

Thank You for the answer.
I have already found out,
that I have to use empty-cells:show.

CU

Björn Lange
 
D

Dmitry Pljonkin

Hi!
On a flat-screen-monitor I see thin grey lines between table cells, but I do
not see them on tube-monitor?

Can the type of monitor be the reason, or are there other possible
reasons?
=)
I guess, it's browser compatibility problem :)
When I code "<table border = 1 bordercolor = #888888>...</table>", only the
cells with are not empty are surrounden by lines.

May anybody please help me?

You can put into your emtpy cells something like &nbsp; or <img
src="/img/spacer.gif" alt="" title="" width="1" height="1" />.
Another way - you can use CSS:

table {empty-cells: show}
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top