Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table question

Status
Not open for further replies.

carlg

Programmer
Jun 23, 2004
88
US
I want my table to have a border, but I only want to see the vertical borders;

I want the horizontal borders to be invisible with the exception of the top and bottom.

Is this possible?

If so, how?

Thanks

carl
 
like this:

Code:
/* give your table a top and bottom border */
#myTable {
    border-top: 1px solid black;
    border-bottom: 1px solid black;
}

/* give your cells a left and right border */
#myTable td {
    border-left: 1px solid black;
    border-right: 1px solid black;
}


<!-- do not specify a border in your table tag //-->
<table id="myTable">...</table>



*cLFlaVA
----------------------------
[tt]mr. pibb + red vines = crazy delicious![/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Sorry, but I'm really not an advanced HTML user.

Where does this stuff go?

The extent of my knowledge is everything that goes between the TABLE tags.

 
I'm eventually going to be converting this file to pdf and other formats.

Will I still be able to do that with the external css file?

 
Was going to download one of those converter programs.

I'm going to need the document in about three different formats when complete.

HTML is the starting format.
 
it doesn't need to be external, if that really is the issue.

you can put the code i provided between these tags:

Code:
<style type="text/css">
...
</style>

why don't you try it out first to see if it works, before worrying about the PDF? this is the HTML / CSS forum, where CSS will work for what you need.



*cLFlaVA
----------------------------
[tt]mr. pibb + red vines = crazy delicious![/tt]

[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top