473,748 Members | 10,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="#00000 0" height="1px"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor="#00000 0" height="1px"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor="#00000 0" height="1px"></td>
</tr>
</table>
Jul 20 '05 #1
5 27520

"Fizgig" <fi****@NOequan imitySPAM.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="#00000 0" height="1px"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor="#00000 0" height="1px"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor="#00000 0" 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="myTableS tyle" width="100%" border="0" cellpadding="0"
cellspacing="0" >
<tr>
...
</tr>
<tr>
...
</tr>
<tr>
...
</tr>
</table>

Jul 20 '05 #2
"Harlan Messinger" <h.*********@co mcast.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...horizonta l ofcourse ;-)
"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
"Harlan Messinger" <h.*********@co mcast.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.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
"Harlan Messinger" <h.*********@co mcast.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.*********@co mcast.net> wrote in message
news:2h******** ****@uni-berlin.de...

"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
"Harlan Messinger" <h.*********@co mcast.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
4575
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 insert. Others than that, noway. Can i use the Lock table command? or others comand? p/s: we are using 9i client and 6i developer regards,
2
4401
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 45 rows of data. I am trying to join the tables in an outer join, so if 0 rows in child it is not affected. But I only want one row returned of the child. How do I do this in mySQL?
4
16301
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 the browser. On the other hand, I could set it to some large value like 780px but that would be more of a hack than a real solution (when I resize the browser window to large proportion I can
4
134389
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 horizontal scroll bar. If the height of the table is less than 200 px then no scroll bars should appear. Here is the html below. I tried to wrap the table around a <div> tag but its doesn't work out as the scroll bar appear close to the scroll bar...
2
1375
by: Agnes | last post by:
daSeaInvInfo.SelectCommand = New SqlCommand daSeaInvInfo.SelectCommand.Connection = conSea 'daSeaInvInfo.TableMappings.Add("Table", "InvoiceHeader") daSeaInvInfo.SelectCommand.CommandText = "select number,companyname,issudate from invoiceheader " daSeaInvInfo.Fill(dsSeaInvInfo, "invoiceheader") daSeaInvInfo.SelectCommand.CommandText = "select number,item,unitprice,noofunit frominvoicedetail" daSeaInvInfo.Fill(dsSeaInvInfo,...
1
2293
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 to align it horizontally center on the page, but I still can't find out how to do the "Vertically-center alignment"! 'cause I really want such form/table can be located center in the web page.
2
2313
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 other tables where data in the surrogate keys match, without returning the other data. It is an outer join, (for four tables, which one is the left and which one is the right?) and how do you define it in design mode in Msft Access Queries, as...
3
1158
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 access to the already exsitant information. My problem is this, and I am sure it very simple. I have a list box on a form. I want the user to be able to insert their email adress and have it stored in a table. I have this working so far, and I have...
2
2180
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; if (ee.target) etarg = ee.target; else if (ee.srcElement) etarg = ee.srcElement;
0
8989
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2213
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.