Jump to content

<hr> can't set thickness


Go to solution Solved by cyberRobot,

Recommended Posts

I've been trying for 2 hours to set the thickness on an hr tag and no matter what I try the best I can get is something that looks like a box. If I give it something like size: 25em; or height;20px; "whichever you like"

the best I can get is something that looks like a box, a vertical line on the right side that is apparently 25 em high with a horizontal line that appears to be maybe 2px high.

 

Is there a way to actually change the thickness of the line/

Link to comment
https://forums.phpfreaks.com/topic/297521-cant-set-thickness/
Share on other sites

I've already read that one ond all the others that show up on the first page of a Google search. they all give the results I described here. So apparently there is no way to actually set the thickness of the line.

 

I even tried just using a underscores in a h1 tag and then styling with margin font-weight, font-size etc. but couldn't actually get reliable cross browser results i.e. centering etc.

BTW this is for an Ebay listing which allows HTML in its editing page

Link to comment
https://forums.phpfreaks.com/topic/297521-cant-set-thickness/#findComment-1517564
Share on other sites

  • Solution

Are you able to use CSS? If so, you could try using border.

<hr style="border-bottom:10px solid #999;" />

Note that the <hr> tag might not be necessary. You could use it on other tags like the <p> tag.

Edited by cyberRobot
  • Like 1
Link to comment
https://forums.phpfreaks.com/topic/297521-cant-set-thickness/#findComment-1517567
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.