0

How to make the line thicker?

I tried to use heigth, but didn't work.

6th May 2017, 6:41 PM
martonieg
martonieg - avatar
13 Réponses
+ 7
Which line? could you be a little more specific?
6th May 2017, 6:51 PM
CHMD
CHMD - avatar
+ 7
1> <hr> thickness is tuned with 'border-width' css property 2> <hr> don't take an ending slash ( not valid syntax in html5, even if supported ) 3> use of '!important' css keyword is to avoid and reserve to very few circumstances, as it breaks the css priorities of 'cascading' 4> use of '!important' in inlined css rules ( inside 'style' attribute of an html element ) is non-sense, and only useful in case of abuse of '!important' in linked css rules, as its first/mainly purpose is to override the inlined higgest prioritized css rules in linked css rules. 5> Anyway, but related, inlined css rules are also to avoid, and reserve them to development/debug time and JS ( dynamic changes ) use...
7th May 2017, 12:44 AM
visph
visph - avatar
+ 3
in your css file put​ this hr { height: 5px !important; width: 600px !important; }
6th May 2017, 7:00 PM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar
+ 3
No need for the important here. I've just tried it in the code playground and it works fine without. So using an attribute it'd give something like: <hr style="height:20px; background:#000">
6th May 2017, 7:29 PM
CHMD
CHMD - avatar
+ 2
<hr style="height:50px; width:200px;" > change height and width​ as you desire.
6th May 2017, 7:31 PM
MR Programmer
MR Programmer - avatar
+ 2
welcome ..
6th May 2017, 7:41 PM
MR Programmer
MR Programmer - avatar
+ 1
use this <hr style=" height: 5px !important; width: 600px !important; "> EDIT I put this in the playground search "HTLM hr thickness"
6th May 2017, 7:37 PM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar
0
KINGDX The <hr />, they show in the example how to make it larger, but not how to make it thicker.
6th May 2017, 7:07 PM
martonieg
martonieg - avatar
0
Claudio Vidal I want to know how to do it as an html atribute.
6th May 2017, 7:10 PM
martonieg
martonieg - avatar
0
MR Programmer Thank you so much, SoloLearn said nothing about the style atribute.
6th May 2017, 7:40 PM
martonieg
martonieg - avatar
6th May 2017, 7:45 PM
⏩▶Clau◀⏪
⏩▶Clau◀⏪ - avatar
0
Thank you guys for the help.
6th May 2017, 7:52 PM
martonieg
martonieg - avatar
- 1
hey what are you doing
25th Sep 2017, 6:24 PM
Jasmine Romero Pelayo
Jasmine Romero Pelayo - avatar