I want to show border 1.5px, I can't able to see. It's showing same as 1px. I don't want 2 px, bcz it's much broad for me
.newTitle {
border-bottom: 1.5px solid orange;
}
<p class="newTitle">stack Overflow</p>
I want to show border 1.5px, I can't able to see. It's showing same as 1px. I don't want 2 px, bcz it's much broad for me
.newTitle {
border-bottom: 1.5px solid orange;
}
<p class="newTitle">stack Overflow</p>
comment turned into answer:
you'll have to find a compromise since pixels cannot be broken in pieces , a shadow might give the illusion to thicken it a bit :
box-shadow: 0 1px 1px -1px orange
demo
.newTitle {
border-bottom: 1.5px solid orange;
}
.bis {
box-shadow: 0 1px 1px -1px orange
}
.ter {
border-bottom: 2px solid orange;
}
<p class="newTitle">stack Overflow (1px)</p>
<p class="newTitle bis">stack Overflow (1px + shadow)</p>
<p class="newTitle ter">stack Overflow (2px)</p>
Considering the definition of a pixel this doesnt surprise me. Maybe an added shadow feels better than the 2 px border to you.
You can try it in EM. Assuming that EM is 16px, 1.5px = 0.09375em Good luck!