Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > How can I show a blank row in a table?

Reply
Thread Tools

How can I show a blank row in a table?

 
 
Dwight
Guest
Posts: n/a
 
      04-07-2004
Hi

I would like to show a blank row in table and have the following piece of
code

<TR><TD>Hello</TD></TR>
<TR><TD></TD></TR>
<TR><TD>World</TD></TR>

However as there is no data within the second <TD> the table removes the
line. Is there anyway that I can show it?

Hope that makes sense.

TIA


 
Reply With Quote
 
 
 
 
Augustus
Guest
Posts: n/a
 
      04-07-2004

"Dwight" <> wrote in message
news:c51kl5$6da$...
> Hi
>
> I would like to show a blank row in table and have the following piece of
> code
>
> <TR><TD>Hello</TD></TR>
> <TR><TD></TD></TR>
> <TR><TD>World</TD></TR>
>
> However as there is no data within the second <TD> the table removes the
> line. Is there anyway that I can show it?


put &nbsp; between the <td> and </td>


 
Reply With Quote
 
 
 
 
Kris
Guest
Posts: n/a
 
      04-07-2004
In article <c51kl5$6da$>,
"Dwight" <> wrote:

> I would like to show a blank row in table and have the following piece of
> code
>
> <TR><TD>Hello</TD></TR>
> <TR><TD></TD></TR>
> <TR><TD>World</TD></TR>
>
> However as there is no data within the second <TD> the table removes the
> line. Is there anyway that I can show it?


The CSS property empty-cells. However, where is the usefulness in an
empty row in a table?

--
Kris
<> (nl)
<http://www.cinnamon.nl/>
 
Reply With Quote
 
Dwight
Guest
Posts: n/a
 
      04-07-2004
Wow, thanks for prompt response.

I'm actually using XML/XSL to transform the data into an HTML document and
some of the data provided may have blank fields. When the fields are blank
then the net result is a row that has been removed. For example, I trying to
display an address.

Any further thoughts?

"Kris" <> wrote in message
news:kristiaan-...
> In article <c51kl5$6da$>,
> "Dwight" <> wrote:
>
> > I would like to show a blank row in table and have the following piece

of
> > code
> >
> > <TR><TD>Hello</TD></TR>
> > <TR><TD></TD></TR>
> > <TR><TD>World</TD></TR>
> >
> > However as there is no data within the second <TD> the table removes the
> > line. Is there anyway that I can show it?

>
> The CSS property empty-cells. However, where is the usefulness in an
> empty row in a table?
>
> --
> Kris
> <> (nl)
> <http://www.cinnamon.nl/>



 
Reply With Quote
 
Kris
Guest
Posts: n/a
 
      04-07-2004
In article <c51lfc$313$>,
"Dwight" <> wrote:

> > > I would like to show a blank row in table and have the following piece

> of
> > > code
> > >
> > > <TR><TD>Hello</TD></TR>
> > > <TR><TD></TD></TR>
> > > <TR><TD>World</TD></TR>
> > >
> > > However as there is no data within the second <TD> the table removes the
> > > line. Is there anyway that I can show it?

> >
> > The CSS property empty-cells. However, where is the usefulness in an
> > empty row in a table?
> >

> I'm actually using XML/XSL to transform the data into an HTML document and
> some of the data provided may have blank fields.


I can understand that.

> When the fields are blank
> then the net result is a row that has been removed. For example, I trying to
> display an address.


The CSS property I gave can help, so can the &nbsp; trick that was
explained in another reply. The CSS however does not require you to
trick anything content- or programming-wise.

I have my doubts about what seems to be a one column table. Are you sure
this is not just a list? If it is, use appropriate markup:

<ul>
<li>item</li>
<li>item</li>
...
</ul>

If any field is empty, don't make it result in <li></li>, just leave it
out altogether.

> Any further thoughts?


Yes, don't top-post, please.

--
Kris
<> (nl)
<http://www.cinnamon.nl/>
 
Reply With Quote
 
Dwight
Guest
Posts: n/a
 
      04-07-2004
Once again thanks for this. I'll look into this CSS property.

Not too sure what you mean by "Don't top-post", I'm new this Newsgroup stuff
so should I have sent this post to somewhere else?


"Kris" <> wrote in message
news:kristiaan-...
> In article <c51lfc$313$>,
> "Dwight" <> wrote:
>
> > > > I would like to show a blank row in table and have the following

piece
> > of
> > > > code
> > > >
> > > > <TR><TD>Hello</TD></TR>
> > > > <TR><TD></TD></TR>
> > > > <TR><TD>World</TD></TR>
> > > >
> > > > However as there is no data within the second <TD> the table removes

the
> > > > line. Is there anyway that I can show it?
> > >
> > > The CSS property empty-cells. However, where is the usefulness in an
> > > empty row in a table?
> > >

> > I'm actually using XML/XSL to transform the data into an HTML document

and
> > some of the data provided may have blank fields.

>
> I can understand that.
>
> > When the fields are blank
> > then the net result is a row that has been removed. For example, I

trying to
> > display an address.

>
> The CSS property I gave can help, so can the &nbsp; trick that was
> explained in another reply. The CSS however does not require you to
> trick anything content- or programming-wise.
>
> I have my doubts about what seems to be a one column table. Are you sure
> this is not just a list? If it is, use appropriate markup:
>
> <ul>
> <li>item</li>
> <li>item</li>
> ..
> </ul>
>
> If any field is empty, don't make it result in <li></li>, just leave it
> out altogether.
>
> > Any further thoughts?

>
> Yes, don't top-post, please.
>
> --
> Kris
> <> (nl)
> <http://www.cinnamon.nl/>



 
Reply With Quote
 
Kris
Guest
Posts: n/a
 
      04-07-2004
In article <c51muv$qqf$>,
"Dwight" <> wrote:

> Not too sure what you mean by "Don't top-post", I'm new this Newsgroup stuff
> so should I have sent this post to somewhere else?


It means that ones reply goes beneath the original message instead of
above it, like I do right now. Also make sure the original message you
quote is trimmed (cut out) well enough.

There might be someone any moment now giving you links to good resources
on learning how to use Usenet.

--
Kris
<> (nl)
<http://www.cinnamon.nl/>
 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      04-07-2004
On Wed, 07 Apr 2004 22:16:48 +0200, Kris <>
declared in alt.html:

> There might be someone any moment now giving you links to good resources
> on learning how to use Usenet.


Like this?
http://www.allmyfaqs.com/faq.pl?How_to_post

--
Mark Parnell
http://www.clarkecomputers.com.au
 
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
blank CD-R and blank DVD-R not recognized by Vista 64 Ultimate =?Utf-8?B?R3JlZyBLaXJrcGF0cmljaw==?= Windows 64bit 13 11-07-2007 12:23 PM
Gridview row databound event - can't get past the 1st row of gridview maurban@gmail.com ASP .Net 5 10-13-2006 09:37 PM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM
Can center row in three row table take up remaining space? Anon HTML 2 03-18-2005 08:35 AM



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