CSS issue with Chrome 61 -


i'm using custom horizontal rule css style on site. looks following:

styled hr in firefox

but since have updated chrome version 61 line height of symbol ignored , looks this:

hr in chrome 61

i'm using following code:

hr {     background: #ccc;     border: 0;     height: 1px;     line-height: 1 !important;     margin: 20px 0;     text-align: center;     clear: both; }  hr:after {     content: '\f0c4';     display: inline-block;     position: relative;     top: -10px;     padding: 0 10px;     background: #fff;     color: #ccc;     font-family: 'fontawesome';     font-size: 20px; } 

the overflow property seems have new default value on <hr> element.

it looks value changed visible hidden, icon hidden. can add overflow:visible <hr> element show icon again.

hr {    background: #ccc;    border: 0;    height: 1px;    line-height: 1 !important;    margin: 20px 0;    text-align: center;    clear: both;    overflow:visible;  }  hr:after {    content: '\f0c4';    display: inline-block;    position: relative;    top: -10px;    padding: 0 10px;    background: #fff;    color: #ccc;    font-family: 'fontawesome';    font-size: 20px;  }
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>  <hr/>

hint: recommend use normalize.css avoid such issue.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -