Avatar of jonathanduane2010
jonathanduane2010
 asked on

adding image directly above navbar

Hi Guys,

I would like to add the attached  image directly above my navbar on the following website

http://thedancingsoul.ie

Can it be done??

thank you
banner.png
CSSHTMLWeb Development

Avatar of undefined
Last Comment
Kyle Hamilton

8/22/2022 - Mon
Kyle Hamilton

sort of, but this is not the right way to create a banner. You should have a separate logo, and the phone numbers should be html:

this will create a background image in your header:
#header-top-container{
background-image: url(http://filedb.experts-exchange.com/incoming/2014/01_w03/828394/banner.png);
background-position: center -20px;
background-repeat: no-repeat;
background-color: #fff;
}

Open in new window

jonathanduane2010

ASKER
Where can i put this???
jonathanduane2010

ASKER
thanks a million!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Kyle Hamilton

anywhere inside your stylesheet. make sure you change the reference to your image (the url property) from experts-exchange.
jonathanduane2010

ASKER
Ok, i have tried that, put then put a couple of lines into the header.php and its showing at the very top if you look at it, but would love to get it just sitting on top of the nav bar?
Kyle Hamilton

I'm not sure what you mean. it would be helpful if you attached a graphic of the desired result.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
jonathanduane2010

ASKER
Hi,

here is another site i run,

i would like to have it looking like it does here above the nav bar
desired.png
Kyle Hamilton

what do you want to do with the #logo element that is above the navbar? remove it? move it? hide it?
jonathanduane2010

ASKER
remove it....thanks
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Kyle Hamilton

you need to do a couple of things to clean this up.

1. remove all the html inside the div #header-top-container, and then give it a height:
#header-top-container {
background-image: url(http://tryansolicitors.com/ban3.png);
background-position: center 0;
background-repeat: no-repeat;
background-color: #fff;
height: 80px;
}

Open in new window


2. remove the 'top' property from:
#navigation-wide-dark {
position: relative;
/* top: 18px; */
background: url(images/navigation-wide-dark-shadow.png) top left repeat-x;
height: 54px;
}

Open in new window


3. this image has a white line which should be removed:
http://www.thedancingsoul.ie/wp-content/themes/Primero/images/navigation-wide-dark-shadow.png

4. remove the 'top' property from:
#navigation-wide-dark nav {
/* top: 3px; */
position: relative;
background-color: #7a7a7a;
height: 44px;
background-image: url(images/navigation-wide.png);
background-position: bottom left;
background-repeat: repeat-x;
}

Open in new window

start with those changes, and post what you get. we'll take it from there
jonathanduane2010

ASKER
ok, thats looking much better......thank you!

there is a white line appearing under the nav bar, any way to get rid of that?
ASKER CERTIFIED SOLUTION
Kyle Hamilton

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
jonathanduane2010

ASKER
thank you so much!!
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Kyle Hamilton

:)