HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 26th, 2000, 02:34 AM
ihsan ihsan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 1 ihsan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi all, I'm beginner in HTML. So my question is very simple.
Would u pl let me know how can I draw verticle lines in HTML.

Reply With Quote
  #2  
Old June 26th, 2000, 03:11 AM
happycloud happycloud is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 2 happycloud User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi
Create a horizontal line with width of (thickness of line) and height of (lenghth of line) this will give u a vertical line of fixed length. ex: <hr width="2" size="400">

If u need it to be of a length that adjusts with your table/type etc.. then you need to create an image that is 1x1 pixel (assuming a 1 pixel wide line) and put this as the background of your cell (td) the line will stretch to accomodate the height of your cell. Make sure that the cell doesn't stretch width wise, else your line will repeat unless you use CSS. Put a transparent 1x1 gif as an image inside of the cell as well, to keep Netscape from shrinking the cell into nothing. This only works for 4+ browsers. Ex: <td background="LineImage1x1.gif" width="1" ><img src="transparent1x1" width="1" height="1" border="0" ></td>

Hope that made sense URL

Joshua

Reply With Quote
  #3  
Old October 23rd, 2000, 06:38 PM
Caper Caper is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Orleans, MA USA
Posts: 14 Caper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Caper
I've tried using a 1-pixel wide td cell with a bg color, but the width keeps stretching. How do you prevent this? How would you use Css to do this instead?

http://www.pleasantbay.net/


[This message has been edited by Caper (edited October 23, 2000).]

Reply With Quote
  #4  
Old October 23rd, 2000, 07:14 PM
Anarchos Anarchos is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 28 Anarchos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Instead of putting nbsp; inside of the cell put a 1x1 clear gif, or stretch the gif to the size you want the cell to be.

Reply With Quote
  #5  
Old October 23rd, 2000, 07:30 PM
Caper Caper is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Orleans, MA USA
Posts: 14 Caper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Caper
Yes, there's been a 1x1 transparent gif there.

Reply With Quote
  #6  
Old October 23rd, 2000, 07:42 PM
Caper Caper is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Orleans, MA USA
Posts: 14 Caper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Caper
Sorry, but you were right. I had the gif only in the first few rows, but not in the rest. The others withour the gif threw it all off.

Reply With Quote
  #7  
Old October 23rd, 2000, 07:50 PM
Caper Caper is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Orleans, MA USA
Posts: 14 Caper User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Caper
I've done it another way now that works, too:

I created 3 columns, or 3 tall td cells with one transparant gif in each of the three columns, and a bg color for the middle column.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > Vertical Line


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT