Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 11:41 PM
Fizgig
Guest
 
Posts: n/a
Default Table with only vertical borders

Hi,

Below is code for creating a table with only vertical borders. I now use a
table cell of 1px to create this effect. Is there a CSS alternative?

Bye,

Fizgig

####################

<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#000000" height="1px"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor="#000000" height="1px"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor="#000000" height="1px"></td>
</tr>
</table>


  #2  
Old July 20th, 2005, 11:41 PM
Harlan Messinger
Guest
 
Posts: n/a
Default Re: Table with only vertical borders


"Fizgig" <fizgig@NOequanimitySPAM.nl> wrote in message
news:40b23e21$0$48933$e4fe514c@news.xs4all.nl...[color=blue]
> Hi,
>
> Below is code for creating a table with only vertical borders.[/color]

No, it creates a table with horizontal borders.
[color=blue]
> I now use a
> table cell of 1px to create this effect. Is there a CSS alternative?
>
> Bye,
>
> Fizgig
>
> ####################
>
> <table width="100%" border="0" cellpadding="0" cellspacing="0">
> <tr>
> <td bgcolor="#000000" height="1px"></td>
> </tr>
> <tr>
> <td>&nbsp;</td>
> </tr>
> <tr>
> <td bgcolor="#000000" height="1px"></td>
> </tr>
> <tr>
> <td>&nbsp;</td>
> </tr>
> <tr>
> <td bgcolor="#000000" height="1px"></td>
> </tr>
> </table>[/color]

<style type="text/css">
.myTableStyle { border-collapse: collapse; }
.myTableStyle td { border-top: 1px solid black; border-bottom: 1px solid
black; }
</style>
....

<table class="myTableStyle" width="100%" border="0" cellpadding="0"
cellspacing="0">
<tr>
...
</tr>
<tr>
...
</tr>
<tr>
...
</tr>
</table>



  #3  
Old July 20th, 2005, 11:41 PM
Jukka K. Korpela
Guest
 
Posts: n/a
Default Re: Table with only vertical borders

"Harlan Messinger" <h.messinger@comcast.net> wrote:
[color=blue][color=green]
>> Below is code for creating a table with only vertical borders.[/color]
>
> No, it creates a table with horizontal borders.[/color]

So it seems, so presumably horizontal is what the OP wants. I have no
objection to the CSS solution, but I find it somewhat illogical to use
presentationa HTML markup...
[color=blue][color=green]
>> <table width="100%" border="0" cellpadding="0" cellspacing="0">[/color][/color]

.... which does _not_ correspond to the desired effect at all. So I would
suggest replacing border="0" by
border="1" rules="rows" frame="void"

--
Yucca, http://www.cs.tut.fi/~jkorpela/
  #4  
Old July 20th, 2005, 11:41 PM
Fizgig
Guest
 
Posts: n/a
Default Re: Table with only vertical borders

hum...horizontal ofcourse ;-)


"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message
news:Xns94F3DF423C062jkorpelacstutfi@193.229.0.31. ..[color=blue]
> "Harlan Messinger" <h.messinger@comcast.net> wrote:
>[color=green][color=darkred]
> >> Below is code for creating a table with only vertical borders.[/color]
> >
> > No, it creates a table with horizontal borders.[/color]
>
> So it seems, so presumably horizontal is what the OP wants. I have no
> objection to the CSS solution, but I find it somewhat illogical to use
> presentationa HTML markup...
>[color=green][color=darkred]
> >> <table width="100%" border="0" cellpadding="0" cellspacing="0">[/color][/color]
>
> ... which does _not_ correspond to the desired effect at all. So I would
> suggest replacing border="0" by
> border="1" rules="rows" frame="void"
>
> --
> Yucca, http://www.cs.tut.fi/~jkorpela/[/color]


  #5  
Old July 20th, 2005, 11:41 PM
Harlan Messinger
Guest
 
Posts: n/a
Default Re: Table with only vertical borders


"Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message
news:Xns94F3DF423C062jkorpelacstutfi@193.229.0.31. ..[color=blue]
> "Harlan Messinger" <h.messinger@comcast.net> wrote:
>[color=green][color=darkred]
> >> Below is code for creating a table with only vertical borders.[/color]
> >
> > No, it creates a table with horizontal borders.[/color]
>
> So it seems, so presumably horizontal is what the OP wants. I have no
> objection to the CSS solution, but I find it somewhat illogical to use
> presentationa HTML markup...
>[color=green][color=darkred]
> >> <table width="100%" border="0" cellpadding="0" cellspacing="0">[/color][/color][/color]

As do I. I neglected to continue whittling everything down. Sorry.
[color=blue]
>
> ... which does _not_ correspond to the desired effect at all. So I would
> suggest replacing border="0" by
> border="1" rules="rows" frame="void"
>
> --
> Yucca, http://www.cs.tut.fi/~jkorpela/[/color]

  #6  
Old July 20th, 2005, 11:41 PM
Fizgig
Guest
 
Posts: n/a
Default Re: Table with only vertical borders

Thanks for the solution Jukka & Harlan! It works great.

Bye,

Ward



"Harlan Messinger" <h.messinger@comcast.net> wrote in message
news:2hf3ttFcgierU1@uni-berlin.de...[color=blue]
>
> "Jukka K. Korpela" <jkorpela@cs.tut.fi> wrote in message
> news:Xns94F3DF423C062jkorpelacstutfi@193.229.0.31. ..[color=green]
> > "Harlan Messinger" <h.messinger@comcast.net> wrote:
> >[color=darkred]
> > >> Below is code for creating a table with only vertical borders.
> > >
> > > No, it creates a table with horizontal borders.[/color]
> >
> > So it seems, so presumably horizontal is what the OP wants. I have no
> > objection to the CSS solution, but I find it somewhat illogical to use
> > presentationa HTML markup...
> >[color=darkred]
> > >> <table width="100%" border="0" cellpadding="0" cellspacing="0">[/color][/color]
>
> As do I. I neglected to continue whittling everything down. Sorry.
>[color=green]
> >
> > ... which does _not_ correspond to the desired effect at all. So I would
> > suggest replacing border="0" by
> > border="1" rules="rows" frame="void"
> >
> > --
> > Yucca, http://www.cs.tut.fi/~jkorpela/[/color]
>[/color]


 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles