473,385 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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>
Jul 20 '05 #1
5 27493

"Fizgig" <fi****@NOequanimitySPAM.nl> wrote in message
news:40***********************@news.xs4all.nl...
Hi,

Below is code for creating a table with only vertical borders.
No, it creates a table with horizontal 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>


<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>

Jul 20 '05 #2
"Harlan Messinger" <h.*********@comcast.net> wrote:
Below is code for creating a table with only vertical borders.


No, it creates a table with horizontal borders.


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...
<table width="100%" border="0" cellpadding="0" cellspacing="0">


.... 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/
Jul 20 '05 #3
hum...horizontal ofcourse ;-)
"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in message
news:Xn*****************************@193.229.0.31. ..
"Harlan Messinger" <h.*********@comcast.net> wrote:
Below is code for creating a table with only vertical borders.


No, it creates a table with horizontal borders.


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...
<table width="100%" border="0" cellpadding="0" cellspacing="0">


... 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/

Jul 20 '05 #4

"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in message
news:Xn*****************************@193.229.0.31. ..
"Harlan Messinger" <h.*********@comcast.net> wrote:
Below is code for creating a table with only vertical borders.
No, it creates a table with horizontal borders.


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...
<table width="100%" border="0" cellpadding="0" cellspacing="0">


As do I. I neglected to continue whittling everything down. Sorry.

... 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/


Jul 20 '05 #5
Thanks for the solution Jukka & Harlan! It works great.

Bye,

Ward

"Harlan Messinger" <h.*********@comcast.net> wrote in message
news:2h************@uni-berlin.de...

"Jukka K. Korpela" <jk******@cs.tut.fi> wrote in message
news:Xn*****************************@193.229.0.31. ..
"Harlan Messinger" <h.*********@comcast.net> wrote:
> Below is code for creating a table with only vertical borders.

No, it creates a table with horizontal borders.


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...
> <table width="100%" border="0" cellpadding="0" cellspacing="0">


As do I. I neglected to continue whittling everything down. Sorry.

... 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/

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: leecho | last post by:
Hi, recently, i was assigned as a new dba for our system. I found that my statistic keep change from time to table. To look for the cause, i wanna to lock a table, means only allow user to...
2
by: Caroline | last post by:
I seem to always want to do this type of join, but I can never find how to do this. I am trying to join two tables. The parent table will always have one row of data and the child may have 0 to...
4
by: Neil Zanella | last post by:
Hello, Consider the height property in the code shown below... I am dissatisfied with the height propery. When I set it to 100% the table does not fill the entire vertical space available to...
4
by: justdummy | last post by:
Hi, I am struggling with a problem for sometimes. I need to display a table in a html and if the height of the table goes beyond 200 px then a vertical scrollbar should alone appear without any...
2
by: Agnes | last post by:
daSeaInvInfo.SelectCommand = New SqlCommand daSeaInvInfo.SelectCommand.Connection = conSea 'daSeaInvInfo.TableMappings.Add("Table", "InvoiceHeader") daSeaInvInfo.SelectCommand.CommandText =...
1
by: Rabbit | last post by:
Dear All I'm new to use ASP.Net for developement, can someone tell me how can I create a web form with size say 300px x 300px, align vertically center on the page Because so far I can use Div...
2
by: me | last post by:
I have written a query that joins four or five tables. One table has 30,000 rows. Another table has only 200. I want to only return the 200 or so rows in the smaller table and columns from the...
3
ChaseCox
by: ChaseCox | last post by:
Hi everyone, I am running into a new problem with my database. Since I have become a member of The Scripts, I have never had to update information in a table, rather I only had to allow people easy...
2
by: querry | last post by:
Hi all, I am trying to change the background color of individual Table Cells using the javascript as follows. function changecolor(e) { var etarg; if (!ee) var ee = window.event; ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.