Win a flower (🌹) or copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java (📚) this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
master stewards:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
garden masters:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
gardeners:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

html

 
Posts: 2
  • 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 ?
 
pioneer
Posts: 3143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the HTML and Javascript Forum!
 
master steward
Posts: 6920
  • 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!
 
pioneer
Posts: 1070
  • 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
 
pioneer
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you trying to simulate frames? What do you want to do with your line?
 
Don't destroy the earth! That's where I keep all my stuff! Including this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!