Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Centering a header image and removing the white border below it

Centering a header image and removing the white border below it

Locked

Views: 1,301

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
26 Jun 2009, 2:46 PM
#1
marrzo avatar

marrzo

New Zenner

Join Date:
Jun 2009
Posts:
4
Plugin Contributions:
0

Centering a header image and removing the white border below it

Basically, I have set up a custom banner image on my site and it is only aligning to the left. The image is from the CSS file, but i can't align the image and there is also there is a white strip blow the image which I am unable to get to disappear.

Any help would be appreciated.

26 Jun 2009, 3:16 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Centering a header image and removing the white border below it

Where is your site??

26 Jun 2009, 7:38 PM
#3
marrzo avatar

marrzo

New Zenner

Join Date:
Jun 2009
Posts:
4
Plugin Contributions:
0

Re: Centering a header image and removing the white border below it

The site is testing just now @

http://test.queensparkspiders.co.uk/zen

I amaware of the configure issue, but my(soon to be former) web host can't sort it out bizarrely.

26 Jun 2009, 8:12 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Centering a header image and removing the white border below it

You have a couple of choices
You can recreate your header image gradient to be wider - best option.
Make your mainWrapper the same width as your current image

to do what you asked find and edit the following to resemble this

#headerWrapper {
        height: 202px;
	margin: 0em;
	padding: 0em;
	}

And

#logoWrapper {	
	background-image:url(/banner.gif);
	background-repeat: no-repeat;
	height:200px;
	background-position: center ;
        }
26 Jun 2009, 9:01 PM
#5
marrzo avatar

marrzo

New Zenner

Join Date:
Jun 2009
Posts:
4
Plugin Contributions:
0

Re: Centering a header image and removing the white border below it

Thanks, the issue seems to be sorted, but now the nav bar at the top(trhe one with home, log in on it) does not appear with a backgroud on it.

Any ideas with that one for me

26 Jun 2009, 9:08 PM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Centering a header image and removing the white border below it

Get rid of the warning first

26 Jun 2009, 9:18 PM
#7
marrzo avatar

marrzo

New Zenner

Join Date:
Jun 2009
Posts:
4
Plugin Contributions:
0

Re: Centering a header image and removing the white border below it

Thanks, I'll get the warning off (although it should already be off, it has 644 permissions on it) when i switch away from my rather rubbish web host. I have tried to change the permissions using my cpanel and 2 FTP programs to no avail.

Any idea how to make it so that the banner sections to either side(the white bits) can be black to match the banner? I tried adding a background colour but it went over the image there.

Thanks

26 Jun 2009, 9:24 PM
#8
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Centering a header image and removing the white border below it

Any idea how to make it so that the banner sections to either side(the white bits) can be black to match the banner?
As I first posted - - edit the gradient image and make it wider