• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html

 
sunil menon
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I draw a vertical line in html. Is there any tag for drawing a vertical line in html ?
 
Angela Poynton
Ranch Hand
Posts: 3143
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the HTML and Javascript Forum!
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no tag for drawing a vertical line, but you can always use a scaled image.
Create a 1 pixel square gif file using any paint program, any color you like, call it (say) 1x1.gif and include the following html:
<img src='1x1.gif' width='1' height='100'>
to get a rectangle 1 pixel wide and 100 pixels high, ie. a vertical line!
 
bill bozeman
Ranch Hand
Posts: 1070
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can also use a table and have the first row 1 pixel wide and give it a background color of whatever you want. This way is will expand dynamically based on the content of the next column.
Bill
 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Are you trying to simulate frames? What do you want to do with your line?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic