Why are some Font Awesome icons not showing up? - font-awesome-5

I'm using the newest version of Font Awesome. When viewing the responsive version of my website, I have a navigation panel. At the top right I need an X (Font Awesome css: f00d). This icon doesn't show up. Other icons, like a folder icon (f07b), do show up. Why is this and what am I doing wrong? An example: beta.degeintrappers.nl
In the head I use:
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
As css I have:
#navPanel .close:before {
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: "Font Awesome 5 Free";
font-style: normal;
font-weight: normal;
text-transform: none !important;
}
#navPanel .close:before {
content: "\f00d";
font-size: 1.25rem;
}

This problem is not well documented by Font Awesome, however, the way to resolve it is by appending the font-family and font-weight property.
#navPanel .close:before {
font-family: "Font Awesome 5 Free";
content: "\f00d";
font-size: 1.25rem;
font-weight: 900;
}

Related

What setting in Azure's App Service do I need to change to allow allow using base64 images in the App_Offline?

I currently have an App_Offline.htm file that works fine. When it's on the root of the site, all users are forces to the App_Offline.htm page and the application is prevented from loading.
We are adding some animations and images and the only proper way to do it in an App_Offline.htm is to use base64 images, inline.
The minute I add this (note I shortened the base64 for the post), it works if I go to the file in the browser directly but IIS/Azure/App Service, does not automatically force users to the page and prevent the app like it normally does.
.image2 {
width: 57px;
height: 54px;
background-image: url(data:image/png;base64,iVBOR.....rkJggg==);
}
I figure there some content security setting or something I need add. Even though the page loads properly, what's preventing IIS/App Service from forcing everyone to the page when it has a base64 image?
Unless there's a file limit size, it's current 2896 KB, but from research there doesn't seem to be one.
Normally, when you have the app_offline.htm file in the application root directory, your web application will be closed and all requests will be directed to the app_offline.html page.
So you have two ways,
You can write .image2 related code in app_offline.htm
Put the .css on other websites, or use other addresses to access the files.
Related Post
Add css style sheet to app_offline
PRIVIOUS
For more details, you can refer my sample code, you just need to replace base64 image code.
My test result.
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
#font-face {
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
src: local("Segoe UI"), local("Open Sans"), local("OpenSans"), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/K88pR3goAWT7BTt32Z01mz8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
}
body {
font-family: "Open Sans";
}
h1 {
font-size: 90px !important;
}
.error-page-container {
color: #333333;
margin: 50px auto 0;
text-align: center;
width: 600px;
}
.error-page-container h1 {
font-size: 120px;
font-weight: normal;
line-height: 120px;
margin: 10px 0;
font-family: "Open Sans";
}
.error-page-container h2 {
border-bottom: 1px solid #CCCCCC;
color: #666666;
font-size: 18px;
font-weight: normal; /*text-transform: uppercase;*/
font-family: "Open Sans";
}
.error-page-container a {
text-decoration: none;
color: #ffffff;
background-color: #009AD7;
padding: 11px 19px;
}
.error-page-container a:hover {
text-decoration: none;
}
.image2 {
width: 500px;
height: 300px;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgMAAACOCAYAAACsagt4AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAABmfSURBVHhe7Z09rtzI1Ya1hW9PXsEFJvcKvAjhBoZDJ4YWcK+TSQxBiWNJEzgwJlJkOPAY8sw48wL6Y/2fc+qHZLPZ6m4+D0BA/Dt1qtiq961i3+o3JwAAADg0mAEAAICDgxkAAAA4OJgBAACAg4MZAAAAODiYAQAAgIODGQAAADg4mAEAAICD0zUDP//8c/wXAAAAPDKYAQAAgIODGQAAADg4mAG4Gz6/fXN68+bp9PKveOCb8/n0fI18fnie6n1rdQeARwIzAFfi6+nluzen5x/i7hncoxkIOcftu5epFdbiynhzenpdfycAwFIwA3AltpuB22PGDLgR/dvPcSfUv+wvxM8KMCMAAPtyx2Ygdq5p1KU62SI8ZWQmOtR/vZye3jxPXXkYdbVGbWpEZzpjd86N1L6+PuVrloqcu8fdK+Pre0297GjS5y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PgRbotqEsYmoEswmmW4HpmIJ17+q5zPs569GOfQxDYIpJBwPV0uhDVOJpOgjwW0QubAf8dgpKLNwM5VpolOM8M2O8+LCN8llufJQA4FpiBLqGjrM2AI3aiabNfnJszAxNe0HOMdVPq3dcE5hXD8+uamQFTp7gpk1OdbxuJrrjsYgYcwRCkqXYtmPqc2+xMQDAE4hrzBcLzzEASd7lpcdfT/FM536+YGUhfTsybib2IZBh75g4AjgJmAC7KeFbhW1CLKhSG5g0ADgNmAC6Hnz1YN8uxP5iBJmmmByMAABOYAdhOfoVwi9PNmAEAgDkwAwAAAAfn5swAAAAAXBfMAAAAwMHBDAAAABycGzYD5e/e23/rDwAAAJfg5mcGwuI8LIoCAACwF7f/miCuWsfsAAAAwD5gBgAAAA4OZgAAAODg3L4ZSF8kvNZP4gIAAByMOzADAf+DKnyREAAA4OLczczAbf0SHgAAwOPAdwYAAAAODmYAAADg4GAGAAAADs7tmwH/W/l8cRAAAGAvbtgMlN8m4MuDAAAA+3H7MwMAAACwK10zAAAAAMcAMwAAAHBwMAMAAAAHBzMAAABwcDADAAAABwczAAAAcHAwAwAAAAcHMwAAAHBwMAMAAAAHBzMAAABwcDADAAAABwczAAAAcHAwAwAAAAcHMwAAAHBwMAMAAACH5nT6f+plarTjY48AAAAAAElFTkSuQmCC');
}
</style>
<title>
Under Maintenance
</title>
</head>
<body>
<div class="error-page-container">
<h1>Maintenance</h1>
<div class="image2" src="" alt="test">
</div>
<h2>
<p>Website is under maintenance right now. It will be back in few minutes.</p>
</h2>
<br />
Try again
</div>
</body>
</html>

A specific effect in css and bootstrap

I am new to bootstrap and made some stuff.
but there is a specific effect of highlight a text i can't reach. i made it wrong many times - like the BG was offset or the line had no spacing and many more problems.
Can you please explain me how to do this ?
Tenter image description herehank !
edit:
Thae image is photoshop, how the final result should look
Or you could work with a border and padding like in the following demo and this fiddle.
For the unhovered link I've added a transparent border to avoid jumping on hover. You could probably also do this with margin/padding.
.styled-link {
color: #5F6065;
font-size: 2em;
padding: 15px;
border-left: 2px solid transparent;
margin: 5px;
text-decoration: underline;
}
.styled-link:hover {
color: gray;
background-color: #D1E7FE;
font-size: 2em;
border-left: 2px solid gray;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/>
Highlighted link
Does this answer your question?
With the use of pseudo elements we can make a ::before element appear on hover
https://jsfiddle.net/jfe1uf50/
.cool-link {
color:red;
position:relative;
padding:0 15px;
&:hover {
color:blue;
&::before {
position:absolute;
left:-5px;
content:"";
height:100%;
width:3px;
background-color:blue;
}
}
}
Hello World!

Slippry slider svg arrows not showing

For some reason the svg arrows in my slippery slider do not show online. Works fine on my desktop, then when I upload to ftp, it does not. The svg file was provided, and I have even re-saved and replaced it, to no avail. Any ideas?
http://threeriversahec.org
html script:
<!-- SLIPPRY SLIDESHOW SCRIPT -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="slippry/dist/slippry.min.js"></script>
<link rel="stylesheet" href="slippry/dist/slippry.css">
<link rel="stylesheet" href="style.css">
slippry/dist/ > css script:
slippry/dist/assets/ > svg file
.sy-controls li a:after {
content: "";
background-image: url(assets/arrows.svg);
background-repeat: no-repeat;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
text-align: center;
text-indent: 0;
line-height: 2.8em;
color: #111;
font-weight: 800;
position: absolute;
background-color: #fff;
width: 2.8em;
height: 2.8em;
left: 50%;
top: 50%;
margin-top: -1.4em;
margin-left: -1.4em;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
-ms-border-radius: 50%;
-o-border-radius: 50%;
border-radius: 50%;
}
Your arrows.svg file is being served with the wrong Content-Type/MIME type. If you look at the "Net" tab of you browser dev tools, you will see that it is being served as "text/html". It should be "image/svg+xml". You need to configure your web server so that it serves SVG files with the correct type. How you do that depends on which web server you are using.
Another workaround is to save the arrows.svg file as a PNG file with transparency (I used Illustrator), and replace all occurrences of 'arrows.svg' with 'arrows.png' in the Slippry CSS file.

Override the google custom search css

In my site have google custom search. I have an issue with the font of the search result. I need Arial,sans-serif .
Here is my google search code.
<div id="cse-search-results"></div>
<script type="text/javascript">
var googleSearchIframeName = "cse-search-results";
var googleSearchFormName = "cse-search-box";
var googleSearchFrameWidth = 600;
var googleSearchDomain = "www.google.com";
var googleSearchPath = "/cse";
</script>
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
Here is my css comes from google.
.gsc-control-cse .gsc-table-result {
font-family: font;
}
.gsc-control-cse, .gsc-control-cse .gsc-table-result {
font-family: Arial,sans-serif;
font-size: 13px;
}
.gsc-control-cse .gsc-table-result this class was override the font-family of below class.
Help me to solve this issue.
thanks lemondrop worked perfectly
I changed
.gs-result .gs-title,
.gs-result .gs-title * {
color: black;
text-decoration: none;
font-family: 'PT Sans Caption', Tahoma, sans-serif;
}
to
.gs-result .gs-title,
.gs-result .gs-title * {
color: black !important;
text-decoration: none !important;
font-family: 'PT Sans Caption', Tahoma, sans-serif !important;
}
I haven't looked into CSS, but I think you are following a very old example. Google now have a customizable search engine creator, in which you can specify which color and font you wanted for each element
See
Also, you can define this in code by using a context XML file, the detail of which is available in the Look and Feel section
If I understand you correctly cant you just use !important for the one you want to override like so:
font-family: Arial,sans-serif !important;

IE6 png bug; links don't work?

After many hours I figured out why the links within my pngs in IE6 do not work.
It's because Im using filter:progid:dximagetransform.microsoft.alphaimageloader within my CSS. Yet after many more hours I have not found a solution to fixing these links.
Here is my code...
HTML
<div id="fullwidth-header-wrapper">
<div id="header"> <strong class="logo"> Google </strong>
<div id="nav">
<ul>
<span>
<span style="color: white;">Prefer</span>
Google? Click
here!
</span>
</ul>
</div>
</div>
</div>
CSS
#fullwidth-header-wrapper {
height: 120px;
}
#header {
background:url(../images/header-bg.png) no-repeat 50% 0;
height: 138px;
width: 980px;
margin: 0 auto;
position: relative;
top:0;
}
.logo{
background:url(../images/logo.png) no-repeat;
display:block;
width:500px;
height:125px;
position:absolute;
top:40px;
left:85px;
}
.logo a{
display:block;
width:323px;
height:85px;
text-indent:-9999px;
overflow:hidden;
}
#nav {
background:url(none.gif);
filter:progid:dximagetransform.microsoft.alphaimageloader(src='images/nav.png', sizingmethod='crop');
display: inline;
position: absolute;
top: -8px;
right: 30px;
width: 350px;
height: 75px;
z-index: 150;
}
#nav ul {
position: relative;
top: 18px;
left: 0px;
color: rgb(87, 175, 237);
font-size: 96.8%;
z-index:200;
}
#nav span {
color: #fff;
position: absolute;
top: 18px;
left: 0px;
font-size: 96.8%;
}
#nav a {color: rgb(255, 255, 255);}
How do you fix this issue or avoid this and suggestions re: a possible solution for the above?
Thanks!
Try this: http://www.hrunting.org/csstests/iealpha.html
In short:
What matters is that the element with the filter has no position set and the link within the filtered element has a position set. If that's the case, links within the filtered element will work.
Since your #nav element has position: absolute, you'll need to add a wrapper div around that and absolutely position that instead.
This is often a problem with using a png fix on something that contains links, the Alpha version of the twinhelix png fix has apparently solved this issue. I have used it, its a little buggy still or at least it was a few months ago, but used right on small sites it is production ready http://www.twinhelix.com/css/iepngfix/.
I normally use the twinhelix 1.0 script for all our sites, I include an ie6.css stylesheet with a conditional comment aimed at IE6:
<!--[if lt IE 7]>
<link rel="stylesheet" href="/css/ie6.css" type="text/css" charset="utf-8">
<![endif]-->
Inside there you then in the CSS you just call it using the 'behavior' rule. IE 7 and 8 do transparent png's just fine. You do need to make sure you have a blank.gif 1px by 1px transparent gif somewhere and update the htc file (which really is just JS) to link to the path of that image.
#nav {
behavior: url(/css/iepngfix.htc);
}
I hope this helps
I had a similar problem, I was using a transparent background so I had to apply the png fix. I had a div and a link around it, like this:
<div id="bla"></div>
The links were not working at all in IE6. When I applied position: relative to that bla div, it worked! position: relative seems to work wonders on IE6, as well as float: left sometimes...

Resources