Beginer <TABLE BORDER="1"> Question..?

R

Robert Bralic

Dear Gentelmans,

How to make a borders for cels that are empty...
When I writte a <Table border="1"> tag, the borders
for cels that are empty is not showd..

Thanks in advance, Robert..;)
 
J

Jukka K. Korpela

2013-11-29 8:33, Robert Bralic kirjoitti:
How to make a borders for cels that are empty...
When I writte a <Table border="1"> tag, the borders
for cels that are empty is not showd..

Short answer: Put useful content in the cell. In most cases, this is easy.

Failing that, put useless content there: <td>&nbsp;</td>. If this makes
the cell too big, then (you have an odd table, and) put an <img> element
there, referring to a single-pixel transparent GIF.

Long answer: http://www.cs.tut.fi/~jkorpela/html/emptycells.html

But is this really a problem? I think IE 7 is (was) the last browser
that does not draw borders around empty cells. People who use IE 7 or
older (probably about 2% of your visitor) cannot expect visually good
browsing experience anyway, and some missing borders shouldn't be a big
issue.
 
S

se

Robert Bralic said:
Dear Gentelmans,

How to make a borders for cels that are empty...
When I writte a <Table border="1"> tag, the borders
for cels that are empty is not showd..

Thanks in advance, Robert..;)

Have you tried using a unit on the border-width "1" like so 1px
Try this: <table style="border: 1px black solid;">
Or if not black then another border-color.
 
R

Robert Bralic

se said:
Have you tried using a unit on the border-width "1" like so 1px
Try this: <table style="border: 1px black solid;">
Or if not black then another border-color.

Thank you very much, but this makes a frame around table,
not in cells...
If you know ..?..;)

Thanks Robert..;)
 
S

se

Robert Bralic said:
Thank you very much, but this makes a frame around table,
not in cells...
If you know ..?..;)

Thanks Robert..;)

Well,
Then set the borders on the cells
<table id="table1">
<tr>
<td style="border: 1px black solid; border-collapse:collapse;" >....</td>
<td style="border: 1px black solid; border-collapse:collapse">....</td>
</tr>
</table>

But instead of all this, place this in your documents head:

<style type="text/css">
#table1 td {border: 1px black solid; border-collapse:collapse;}
</style>

Now you don't need to have it in any of the table td 's.
Use www.w3schools.com learning webdesign.
 
J

Jukka K. Korpela

Then set the borders on the cells
<table id="table1">
<tr>
<td style="border: 1px black solid; border-collapse:collapse;" >....</td>
<td style="border: 1px black solid; border-collapse:collapse">....</td>
</tr>
</table>

The issue was that empty cells do not have borders (in some ancient
browsers, really), and the above does not help with that.
But instead of all this, place this in your documents head:

<style type="text/css">
#table1 td {border: 1px black solid; border-collapse:collapse;}
</style>

The border-collapse property does not affect a td element. Did you
actually test your advice before posting it=
Use www.w3schools.com learning webdesign.

That's probably the worst site to learn web design; see
http://www.w3fools.com

Note that correct answers to the problem have already been posted.
 
S

se

Robert Bralic said:
Thank you very much, but this makes a frame around table,
not in cells...
If you know ..?..;)

Thanks Robert..;)

border-collapse: collapse;
Does not work on cells. I just copied this string from a table into the
cells,
and was not attentive.
The collapse rule is used to collapse ajacent table-borders.
If you want border-collapsing on ajacent cells, cell-border-widths
must be ruled differently on them (one having value 0, the other
having a value). These rules can be written in different ways.

It is a safe-guard to append "border: 1" with a unit for the width.
And to write it in full as: border: 1px black solid;

I recommend anyone learning webdesign from www.w3schools.com

/se
 
S

se

Beauregard T. Shagnasty said:
You shouldn't. Unless ... to your competitors. <lorf!>


Se on jigsaw.validator what your -competitor / w3fools.com - kan do for you.
They have it in the mouth - a kind of "lorf".
Their domain-name "w3fools.com" matching their writings,
reminds me of the technique used by a handfull of participators
here on this forum, and on the comp.lang.javascript forum.
No suprise, if Jukka and Pointed Ears could be found on the
list at www.w3fools.com
http://jigsaw.w3.org/css-validator/...usermedium=all&warning=1&vextwarning=&lang=en
 
C

Christoph Michael Becker

se said:
It is a safe-guard to append "border: 1" with a unit for the width.

It is not a safe-guard, but required, if I'm not mistaken.
And to write it in full as: border: 1px black solid;

I recommend anyone learning webdesign from www.w3schools.com

E.g. <http://w3schools.com/css/css_border.asp>:

| The border-width property is used to set the width of the border.

| The width is set in pixels, or by using one of the three pre-defined
^^^^^^
| values: thin, medium, or thick.

Compare that to the "standard"[1], and you may see, why w3schools is not
the best place to learn webdesign.

[1] <http://www.w3.org/TR/CSS2/box.html#border-width-properties>
 
R

richard

Dear Gentelmans,

How to make a borders for cels that are empty...
When I writte a <Table border="1"> tag, the borders
for cels that are empty is not showd..

Thanks in advance, Robert..;)

Simple:
CSS:
td {padding:5px;}
If you want to see the table cells as one line:
table {border-collapse:collapse}
 
S

se

Denis McMahon said:
It does explain the quality of his answers though.


|On second thoughts, forget I asked that. It was an absolutely stupid
|thing to ask given how widely your lack of capability is recognised.

|--
|Denis McMahon, (e-mail address removed)

|I want to know who this Dennis person is? After all, I'm sure that whilst
|lecturing me on etiquette and courtesy, no-one would be so disrespectful
|as to repeatedly misspell my name, would they?

|--
|Denis McMahon, (e-mail address removed)


A few examples are given above of copies of your answers given
in elsewhere threads. The lack of quality displays itself. I read your
answers as comming from a self-conceited stuck-up fellow. No
different from the rest of a handfull of fellows making up the
thrashing-class found on this forum.

A validation on some of your websites probably would confirm
my observance. Just like the validation of www.w3fools.com did
confirm site-owners mainly have it in their mouths. People, who
haven't been given anything, but substandard criticism of others
work. Yet speaking of "etiquette and courtesy" - like you do!.

Undoubtedly, you'll have to **** yourself, Denis. I don't think,
Dennis, or other women will do it with you.

/se
 
R

richard

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Robert You're Welcome -->
<html>
<head>
<title>Re: Beginer &lt;TABLE BORDER="1"&gt; Question..?</title>
</head>
<body>
<!-- DO NOT USE bgcolor in TD -->
<table summary="Is empty" border="2" cellspacing="0" cellpadding="0"
style="color: #66ff66; border-color:#ff0033; border-color-dark:#ff0033; border-color-light:#ff6600;"
title=" ADD some Style"
width="600">
<tr>
<td height="300">
</td>
<td height="300" bgcolor="#0000ff">
</td>
</tr><tr>
<td height="300">
</td><td height="300" bgcolor="#ff0000">
</td>
</tr>
</body>
</html>

Please learn to use CSS for tables.
<td class="cell">
..cell {height:300px;}

table {border-collapse:collapse;}
 
S

se

Denis McMahon said:
Was that really the best you could manage?

It doesn't help you. Readers will read the other part and
realize, I'm talking to a Streetboy. You've been going on
here in this manner in such a long time, that I have someting
more waiten for you. Visit your local Pub holding same
attitute as here, and you'll se.
/se

talking to a Streetboy
 
D

dorayme

Denis McMahon said:
Was that really the best you could manage?

I hope this exchange is going to lead into a scene like the one in
Roxanne (1987 film based on based on the play Cyrano de Bergerac)
where Steve Martin is crudely insulted very publicly about his nose -
"Hey, where you going Big Nose!" - by some oaf. Martin, a fire chief
with the super big nose, asks if that is the best the oaf can do?
Martin manages to pull off over twenty way better ones:

<
>
 
T

TK

I hope this exchange is going to lead into a scene like the one in
Roxanne (1987 film based on based on the play Cyrano de Bergerac)
where Steve Martin is crudely insulted very publicly about his nose -
"Hey, where you going Big Nose!" - by some oaf. Martin, a fire chief
with the super big nose, asks if that is the best the oaf can do?
Martin manages to pull off over twenty way better ones:

<
>

Lots of people post funny and/or insightful (crap) but yours is usually:

1) spot on
2) funny

Thanks for posting!
 
D

dorayme

TK said:
Lots of people post funny and/or insightful (crap) but yours is usually:

1) spot on
2) funny

Thanks for posting!

Thank you for *usually* appreciating... <g>
 
S

se

TK said:
Lots of people post funny and/or insightful (crap) but yours is usually:

1) spot on
2) funny

Thanks for posting!

The real abuse here started by Denis McMahon is
NOT a play. It's reallity. The guy needs a dressing
down. Not everything in reallity is funny. Everything
in life is not mere artistic monkey tricks. Acts,
expressed your way:

1) spot on
2) funny

If this doesn't make sense to your both, yet be aware,
if any insight left, that this forum has a threshing-group.

I've been looking to some of the sites owned by this
forums threshing-group members. No-one compares to
Richards. Who is the most disparaged person in this forum.
After done this survey on some of the threshing-group
members websites, It became quite clear to me that, those
members play the role here on this forum of being
professional web designers suited to the job. Validation
of their websites, renders miserable. I may conclude that;
this is why those members sticks to www.w3fools.com

I found the CV. of Dennis McMahon on the Internet,
thereby got a confirmation of my suppositions.:
He has been left to stuck on himself. That's one of the reasons
why people developes a character property, that lead them to
disparage people around them. Someone possibly born with
it, since womans rejects them.
/se
 

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

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top