Link to home
Start Free TrialLog in
Avatar of Steven O'Neill
Steven O'NeillFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Having a little issue with EDGE/IE CSS display of after

Hi guys

Hopefully and easy one but can't seem to figure this out. I am attempting to add a horizontal line to break up some text on a page and also add an image/character in the middle of this (to break up the look of the line). All works great in Chrome but EDGE/IE aren't playing ball and I'm not sure what part is causing the issue.

Here is the CSS for the HR:

hr.splitter {
    border: 0;
    height: 4px;
    background-image: -webkit-linear-gradient(left, rgba(0,0,0,0), rgba(0,131,189,0.75), rgba(0,0,0,0)); 
    background-image:    -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,131,189,0.75), rgba(0,0,0,0)); 
    background-image:     -ms-linear-gradient(left, rgba(0,0,0,0), rgba(0,131,189,0.75), rgba(0,0,0,0)); 
    background-image:      -o-linear-gradient(left, rgba(0,0,0,0), rgba(0,131,189,0.75), rgba(0,0,0,0)); 
    text-align: center;
    margin: 1em 0;
	position: relative;
}
hr.splitter:after {
    font-family:'FontAwesome';
    display: inline-block;
    position: relative;
    top: -0.7em;
    font-size: 1.5em;
    padding: 0 0.25em;
    background: white;
    margin: 0.1em 0;
}

hr.gradcap:after {
	content: "\f19d"; /* graduation-cap */
	/*content: "\f0eb"; /* lightbulb-o */ }

Open in new window


and my HTML in EDGE looks like this:

<hr class="splitter gradcap">

Open in new window


Chrome shows the image/character without any issue but EDGE/IE is only showing the width of the HR (4px) and the image/character is being shown but only the portion within the height of the HR.

Any ideas what I'm missing?

Thanx as always
ASKER CERTIFIED SOLUTION
Avatar of David S.
David S.
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Steven O'Neill

ASKER

Thanx for this...pseudo-elements are still a bit of a mystery to me as a none CSS user lol. The overflow seems to have worked for me.