Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - How can I show a blank row in a table?

 
Thread Tools Search this Thread
Old 04-07-2004, 08:26 PM   #1
Default How can I show a blank row in a table?


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




Dwight
  Reply With Quote
Old 04-07-2004, 08:27 PM   #2
Augustus
 
Posts: n/a
Default Re: How can I show a blank row in a table?


"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
Old 04-07-2004, 08:30 PM   #3
Kris
 
Posts: n/a
Default Re: How can I show a blank row in a table?

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
Old 04-07-2004, 08:40 PM   #4
Dwight
 
Posts: n/a
Default Re: How can I show a blank row in a table?

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
Old 04-07-2004, 08:51 PM   #5
Kris
 
Posts: n/a
Default Re: How can I show a blank row in a table?

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
Old 04-07-2004, 09:05 PM   #6
Dwight
 
Posts: n/a
Default Re: How can I show a blank row in a table?

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
Old 04-07-2004, 09:16 PM   #7
Kris
 
Posts: n/a
Default Re: How can I show a blank row in a table?

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
Old 04-07-2004, 11:54 PM   #8
Mark Parnell
 
Posts: n/a
Default Re: How can I show a blank row in a table?

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 Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump