<td> borders

Discussion in 'HTML' started by Shank, Nov 28, 2004.

  1. Shank

    Shank Guest

    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
    Shank, Nov 28, 2004
    #1
    1. Advertising

  2. Shank

    Steve Pugh Guest

    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
    Steve Pugh, Nov 28, 2004
    #2
    1. Advertising

  3. 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
    David Dorward, Nov 28, 2004
    #3
  4. Shank

    Courtney Guest

    "Shank" <> wrote in message
    news:pZqqd.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....
    Courtney, Nov 29, 2004
    #4
  5. Courtney wrote:

    >
    > "Shank" <> wrote in message
    > news:pZqqd.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
    Roy Schestowitz, Nov 29, 2004
    #5
  6. 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.
    Beauregard T. Shagnasty, Nov 29, 2004
    #6
  7. Shank

    Jan Faerber Guest

    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/error_pages_individual/virgin.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
    Jan Faerber, Nov 29, 2004
    #7
  8. Shank

    Jan Faerber Guest

    Jan Faerber, Nov 29, 2004
    #8
  9. Shank

    Neal Guest

    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.
    Neal, Nov 29, 2004
    #9
  10. Shank

    Jan Faerber Guest

    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 fuckin' 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
    Jan Faerber, Nov 29, 2004
    #10
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anatoly
    Replies:
    1
    Views:
    551
    Hrvoje Vrbanc
    Jul 15, 2003
  2. =?Utf-8?B?QWxleCBNYWdoZW4=?=

    TableRow Borders

    =?Utf-8?B?QWxleCBNYWdoZW4=?=, Apr 25, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    9,528
    [MSFT]
    Apr 27, 2004
  3. Lars Netzel

    Remove the XP borders of a ComboBox?

    Lars Netzel, Jul 28, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    326
    Lars Netzel
    Jul 28, 2004
  4. Guadala Harry
    Replies:
    1
    Views:
    289
    Rutger Smit
    Sep 9, 2004
  5. George
    Replies:
    9
    Views:
    4,848
    George
    Oct 25, 2004
Loading...

Share This Page