Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > <td> borders

Reply
Thread Tools

<td> borders

 
 
Shank
Guest
Posts: n/a
 
      11-28-2004
I have a confirmation email I send dynamically.
There's 1px border around the table and all cells.
Assuming there's content for all cells - no problem.
However, if the cell is empty, the border is gone for that cell.
How can I force the border to maintain regardless of content?

thanks


 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      11-28-2004
On Sun, 28 Nov 2004 20:58:23 GMT, "Shank" <>
wrote:

>I have a confirmation email I send dynamically.
>There's 1px border around the table and all cells.
>Assuming there's content for all cells - no problem.
>However, if the cell is empty, the border is gone for that cell.
>How can I force the border to maintain regardless of content?


In theory, by adding
empty-cells: show;
to you styles.

The above is getting better support in browsers but I have no idea how
well its supported by e-mail clients so the old fashioned method:
adding &nbsp; to each of the empty cells; may still be needed.

Steve

 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      11-28-2004
Shank wrote:

> I have a confirmation email I send dynamically.
> There's 1px border around the table and all cells.
> Assuming there's content for all cells - no problem.
> However, if the cell is empty, the border is gone for that cell.
> How can I force the border to maintain regardless of content?


You can suggest it ...

http://w3.org/TR/CSS2/tables.html#propdef-empty-cells

.... but there is no force when it comes to HTML/CSS.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
Courtney
Guest
Posts: n/a
 
      11-29-2004

"Shank" <> wrote in message
newsZqqd.95178$ ...
>I have a confirmation email I send dynamically.
> There's 1px border around the table and all cells.
> Assuming there's content for all cells - no problem.
> However, if the cell is empty, the border is gone for that cell.
> How can I force the border to maintain regardless of content?
>
> thanks
>


Easy. Insert a transparent 1 pixel graphic in the problem cell.

courtney sends....


 
Reply With Quote
 
Roy Schestowitz
Guest
Posts: n/a
 
      11-29-2004
Courtney wrote:

>
> "Shank" <> wrote in message
> newsZqqd.95178$ ...
>>I have a confirmation email I send dynamically.
>> There's 1px border around the table and all cells.
>> Assuming there's content for all cells - no problem.
>> However, if the cell is empty, the border is gone for that cell.
>> How can I force the border to maintain regardless of content?
>>
>> thanks
>>

>
> Easy. Insert a transparent 1 pixel graphic in the problem cell.
>
> courtney sends....


It would be less expensive to just insert &nbsp; into that cell.

If you generate the content dynamically, then always force a blank to become
a white space instead. Works in all browsers...

--
Roy Schestowitz
http://schestowitz.com
 
Reply With Quote
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      11-29-2004
Courtney wrote:

> Easy. Insert a transparent 1 pixel graphic in the problem cell.


No, don't do that. It will initiate another call to the server.
Placing a non-breaking space ( &nbsp; ) as Steve said is the best answer.

--
-bts
-This space intentionally left blank.
 
Reply With Quote
 
Jan Faerber
Guest
Posts: n/a
 
      11-29-2004
Roy Schestowitz wrote:

>> Easy. Insert a transparent 1 pixel graphic in the problem cell.


> It would be less expensive to just insert &nbsp; into that cell.


They use a pic here:

http://html.janfaerber/links/pages/e...net-error.html

I think they use it to use vspace and hspace but I still can't say how it
works.

e.g.:
<img border = 0 width = 1 height = 1 hspace = 35 src = "pix/white_1x1.gif">
<img border = 0 src = "pix/white_1x1.gif" width = 1 height = 1 vspace = 2>

Experiment with it!



--
Jan

e-mail: leave the animals away
url: html.janfaerber.com
 
Reply With Quote
 
Jan Faerber
Guest
Posts: n/a
 
      11-29-2004
Jan Faerber wrote:

> Roy Schestowitz wrote:
>
>>> Easy. Insert a transparent 1 pixel graphic in the problem cell.

>
>> It would be less expensive to just insert &nbsp; into that cell.

>
> They use a pic here:
>
>

http://html.janfaerber/links/pages/e...net-error.html
.... ^^^^^^^^ [dot] com

--
Jan

e-mail: leave the animals away
url: html.janfaerber.com
 
Reply With Quote
 
Neal
Guest
Posts: n/a
 
      11-29-2004
On Mon, 29 Nov 2004 11:23:55 GMT, Jan Faerber
<jancfaerber_spider@monkey_hotmail.com> wrote:

> Roy Schestowitz wrote:
>
>>> Easy. Insert a transparent 1 pixel graphic in the problem cell.

>
>> It would be less expensive to just insert &nbsp; into that cell.

>
> They use a pic here:


That's nice, but it still isn't the best solution.

If you include an image, an extra request must be made. That serves to
slow the page load. Whether it's significant depends on the user's
connection, which you of course have no control over.

It might not be significant in 99% of cases, but it's not best practice,
as this request should be done when there's something essential to be
requested. As &nbsp; is as good, do that.
 
Reply With Quote
 
Jan Faerber
Guest
Posts: n/a
 
      11-29-2004
Neal wrote:

> On Mon, 29 Nov 2004 11:23:55 GMT, Jan Faerber
> <jancfaerber_spider@monkey_hotmail.com> wrote:
>
>> Roy Schestowitz wrote:
>>
>>>> Easy. Insert a transparent 1 pixel graphic in the problem cell.

>>
>>> It would be less expensive to just insert &nbsp; into that cell.

>>
>> They use a pic here:

>
> That's nice, but it still isn't the best solution.
>
> If you include an image, an extra request must be made. That serves to
> slow the page load. Whether it's significant depends on the user's
> connection, which you of course have no control over.


But when you fetch your e-mails from your pop/imap server and afterwards you
disconnect from internet you can still view html files with e.g. background
gifs that are enclosed in the code of the e-mail. A 1x1 px transparent gif
will not make the e-mail much bigger (absolute) than the string '&nbsp;'.

I got an answer from the customer service of the underground in Vienna
when I supposed them to use glass in the underground stations with doors so
the underground has to stop fitting their doors with the glass doors in the
station like you can find it in London. A very strange answer.
The e-mail looked quite ****in' shitty with my Mail programm 'Ximian
Evolution' as you can see here:

http://html.janfaerber.com/files/mail_wr.linien.png

It is now bad luck that I cut the part away below of the code where you have
the part with the background gif ... just many lines with
'fjdsköTRET6546hgjk [...]' ... the source of the pic:

http://html.janfaerber.com/files/wr.linien.html

They use this:
background-attachment: scroll;
background-color: #ffffff;
background-image: url(wrl.gif);
background-repeat: no-repeat;
background-position: right top;

I dunno why my mail programm does not recognize 'no-repeat'.

Any way ... you can include pics with your e-mail and there will be no
server request in addition.




--
Jan

e-mail: leave the animals away
url: html.janfaerber.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tables with different color left and right borders, no top or bottom borders, etc. George HTML 9 10-25-2004 04:25 PM
Framesets - Why Can Some Controls Cross Borders? Guadala Harry ASP .Net 1 09-09-2004 11:53 AM
Remove the XP borders of a ComboBox? Lars Netzel ASP .Net 0 07-28-2004 02:06 PM
TableRow Borders =?Utf-8?B?QWxleCBNYWdoZW4=?= ASP .Net 3 04-27-2004 07:15 AM
Re: DataGrid formatting - only one column without borders Anatoly ASP .Net 1 07-15-2003 12:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57