css - Change hr style in HTML page -


this question has answer here:

i tried changing <hr> tag css using:

hr { color:whitesmoke} 

but doesn't affect html @ all. there way change horizontal line's color different color default 1 using css? performance purposes, don't want use img (horizontal line in color want max-width: 100%) css rule.

the appearance of <hr> in browser based on border styles , not dictated color property. therefore, try using border-color instead:

hr {    border: none;    border-top: 1px solid whitesmoke;  }
<hr>


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -