I know there is a hr (horizontal rule) in html, but I don't believe there is a vr (vertical rule). Am I wrong and if not, why isn't there a vertical rule?
There isn't, where would it go?
Use CSS to put a border-right on an element if you want something like that.
HTML has little to no vertical positioning due to typographic nature of content layout. Vertical Rule just doesn't fit its semantics.
No, there is no vertical rule.
It does not make logical sense to have one. HTML is parsed sequentially, meaning you lay out your HTML code from top to bottom, left to right how you want it to appear from top to bottom, left to right (generally)
A vr tag does not follow that paradigm.
This is easy to do using CSS, however. Ex:
<div style="border-left:1px solid #000;height:500px"></div>
Note that you need to specify a height or fill the container with content.
you can do in 2 way :
1) create style as you already gave in div but change border-left ro border-right 2) take a image and make its width 1-2 px,
hope this will clear ur doubt...
thanks Romeo http://www.crazyfriendz.com
How about:
writing-mode:tb-rl
Where top->bottom, right->left?
We will need vertical rule for this.
You can make a vertical rule like this: <hr style="width: 1px; height: 20px; display: inline;">
Try it and you will know yourself:
<body>
rokon<br />
rkn <hr style="width: 1px; height: 10px; display: inline; margin-left: 2px; margin-right: 2px;" />rockon<br />
rocks
</body>
</html>