Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 12-02-2004, 02:06 PM   #1
Member (8 bit)
 
Join Date: Oct 2001
Location: ottawa, ontario
Posts: 183
Vertical line in HTML

Hi all,

How does someone put a vertical line in a website. I know how to put an horizontal one but not vertical. Or, in a table, can someone specific which side has a border ?

Thanks
daisiee69 is offline   Reply With Quote
Old 12-02-2004, 02:09 PM   #2
Member (1 million bit!)
 
mrmister1's Avatar
 
Join Date: Feb 2003
Location: NY
Posts: 1,160
I don't know of any tag that will do that, but you could always use an image. Also you could make a table that will include a vertical line in the middle.
__________________
Black X-Dreamer Case | Intel Pentium 4 2.66 GHz | Intel D845PESVL | 512 MB PC2700 DDR-SDRAM | WD 120 GB Special Edition | Pioneer 16x DVD-ROM | Mitsumi 3.5-inch 1.44 MB | ATi Radeon 9800 Pro | Creative Labs Sound Blaster Live! 5.1

mrmister1
mrmister1 is offline   Reply With Quote
Old 12-02-2004, 03:09 PM   #3
Premium Member
 
Statica's Avatar
 
Join Date: Jun 1999
Posts: 9,231
Yep it's pretty easy to do it with using inline styles. You can do it a number of ways actually for example:
with tables
Code:
«table border="0"»
«tr»
	«td style="border-left: 2px solid Black;"» Vertical line in HTML«br»
	Hi all,«br»
	How does someone put a vertical line in a website. I know how to put an horizontal one but not vertical. Or, in a table, can someone specific which side has a border ?

Thanks«/td»
«/tr»
«/table»
or how about with DIV
Code:
«DIV style="border-left: 2px solid Black;"»Vertical line in HTML«br»
	Hi all,«br»
	How does someone put a vertical line in a website. I know how to put an horizontal one but not vertical. Or, in a table, can someone specific which side has a border ?

Thanks«/DIV»
or with nothing more than P
Code:
«P style="border-left: 2px solid Black;"»Vertical line in HTML«br»
	Hi all,«br»
	How does someone put a vertical line in a website. I know how to put an horizontal one but not vertical. Or, in a table, can someone specific which side has a border ?

Thanks«/P»
.. you see the pattern .. you can move that border to whichever side you want, you can change the type of border, color, thickness .. styles are a very versatile addition to your coding repertoire.

Last edited by Statica; 12-02-2004 at 03:12 PM.
Statica is offline   Reply With Quote
Old 12-02-2004, 03:34 PM   #4
Staff
Premium Member
 
mairving's Avatar
 
Join Date: Jul 1999
Location: Arlington, TN
Posts: 5,538
You can also achieve the same effect with the old trick of using an image. Create a transparent gif 1px by 1px and call it clear.gif, then just put it in a column something like:
<td bgcolor="#000000" height="100" width="1"<>img src="images/clear.gif">

It can be a little harder to control the height using css.

You won't find anything similar to the <hr> tag though.
__________________

Want to Make $$$$ with your Computer? No Risk! Simply press shift-4 four times in a row
mairving is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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



All times are GMT -5. The time now is 04:06 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2