Icons arent appearing [BootStrap]

Status
Not open for further replies.

Benden

maging ang maganda mamatay
Jun 4, 2010
2,286
1,482


<li><a href="contact.php"><i class="icon-envelope"></i>Contact</a></li>

That icon isn't loading up

My icons are still located as indicated in the css

background-image: url("../img/glyphicons-halflings.png");

Help!?!?!?
 

Markshall

Русский Стандарт
Contributor
Dec 18, 2010
2,638
2,393
Is your background black? If so, add 'icon-white' to <i> so you have

<i class="icon-envelope icon-white"></i>
 

Benden

maging ang maganda mamatay
Jun 4, 2010
2,286
1,482
<li><i class="icon-envelope"></i><a href="contact.php">Contact</a></li>

try that


Add class="btn" to your a href

Sometimes chrome aggressively caches assets.
That COULD be a problem (if you're running chrome)
Using Firefox
Is your background black? If so, add 'icon-white' to <i> so you have

<i class="icon-envelope icon-white"></i>
White navigation
 

Khalil

IDK
Dec 6, 2011
1,642
786
Replying to Green's Answer: Don't add "btn" or "btn-TYPE HERE" cause your trying to work on the navi not on a button or so.

Replying to 's Answer: Don't add <li> and </li> unless your still in the "<ul>" tag as if it's not inside it your gonna fuck the navigation (as showed on that picture).

Replying to 's Answer: He removed "-inverse" from the nav wich means he doesn't have a black nav, he means the icons don't appear at all.

Replying to Your Problem: You either have the incorrect link to the directory or something else, we can find that out by this solution:
add: <i class='icon-envelope'></i> and then go to your site and "Inspect Element" and view the style sheet part and see where it links to and see if theres any miss-linking within the css code, if the problem continues lemme know.
 

Ecko

23:37 [autobots] -!- eckostylez [[email protected]]
Nov 25, 2012
1,398
962
background-image: url("../img/glyphicons-halflings.png");

to

background-image: url("./img/glyphicons-halflings.png");

Hard to tell since we don't know your directory structure.
 
Status
Not open for further replies.

Users who are viewing this thread

Top