function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AUEagleAUEagle 

Drawing a line on a VF page

I am trying to draw a line on a VF page that I can adjust the thickness of.  I have tried the following:

 

<hr size="7" /> and <hr height="20">

 

But the line thickness seems to stay the same regardless of what values I use.   Any help would be appreciated.

Thank You.

Best Answer chosen by Admin (Salesforce Developers) 
Jim BoudreauxJim Boudreaux

Ahh, in that case, just forget the <hr/> and do this:

<div style="width:100%; height:10px; background:black;"></div>

All Answers

Jim BoudreauxJim Boudreaux

In the future, here is a handy tool for getting answers to these types of questions:

http://bit.ly/dO0w52

 

 

In the meantime, try this:

 

<hr size="10px" color="black"/>

 

 

AUEagleAUEagle

I forgot to mention in my original post, I'm trying to render the page as PDF.

Jim BoudreauxJim Boudreaux

Ahh, in that case, just forget the <hr/> and do this:

<div style="width:100%; height:10px; background:black;"></div>

This was selected as the best answer
AUEagleAUEagle

Thank you so much!

Jim BoudreauxJim Boudreaux

You are most welcome. After years of parasitic question posting only, it feels good to help.

faraz qaisranifaraz qaisrani
I have a drawing website. I have posted cool drawing, sad girl drawing, google low drawing, flag drawing, animal drawing, drawing for beginner, and many more. if you have interesting in drawing then visit our website. drawing website.
<a href="https://3dvkarts.com/category/drawing-for-beginners/">drawing website</a>