Click here to Skip to main content
14,036,604 members
Rate this:
Please Sign up or sign in to vote.
See more:
Trying to add a background image of a cross to my .nav bar behind the menu.
the site is

What I have tried:

I have tried several snipets od css adding them to simple css or the header.css file.

.x-navbar {
	background-image: url('IMAGE URL');
	background-size: cover;

.navbar {
   background-image: url("")
Updated 15-Nov-18 6:30am
Member 14065917 24-Nov-18 16:56pm

I haven't been able to find the element in the solution box and CSS is not working. Could you also check my navbar?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Against my better judgement I went to the site and found two critical errors that are issues:

1- You do not have an element with a class of "navbar" or "x-navbar"
<nav id="site-primary-nav">
	 <ul id="site-primary-menu" class="large-nav sf-menu mobile-menu clearfix sf-js-enabled sf-arrows" style="touch-action: pan-y;">
		  <li class="MenuJibberJabber">
		  <a class="sf-with-ul" href="/church/">Church</a><ul class="sub-menu" style="display: none;">
			   <li class="menu-item-277">
			   <a href="/ministries/">Ministries</a></li>
			   <li class="menu-item-278">
			   <a href="/sermons/">Sermon’s</a></li>
		  <li class="menu-item-21">
		  <a class="sf-with-ul" href="/academy/">Academy</a><ul class="sub-menu" style="display: none;">
			   <li class="page-item-89 menu-item-113">
			   <a href="/">Overview</a></li>
			   <li class="menu-item-115">
			   <a href="/who-we-are/">Who We Are</a></li>
			   <li class="menu-item-114">
			   <a href="/llc-vision/">LLCA Vision</a></li>
			   <li class="menu-item-112">
			   <a href="/llca-mission/">LLCA Mission</a></li>
			   <li class="menu-item-111">
			   <a href="/applicationfees-and-dress-code/">
			   Application,Fees and Dress Code</a></li>
			   <li class="menu-item-110">
			   <a href="/curriculum/">Curriculum</a></li>
		  <li class="menu-item-47">
		  <a class="sf-with-ul" href="/community-kids-learning-center/">
		  Community Kids Learning Center</a><ul class="sub-menu" style="display: none;">
			   <li class="menu-item-172">
			   <a href="/cklc-page/">CKLC About</a></li>
			   <li class="menu-item-171">
			   <a href="/cklc-hours-and-fees/">CKLC Hours</a></li>
		  <li class="menu-item-38">
		  <a href="/contact-us/">Contact Us</a></li>

I would try applying that CSS using one of these selectors
nav {background-image:...}

2- The URL for the background image does not resolve.
Member 14055926 15-Nov-18 14:26pm
What does "Not resolve" mean.
Member 14055926 15-Nov-18 14:27pm
Also i would put the css plus the selector in the custom css part?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190424.1 | Last Updated 15 Nov 2018
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100