Forums / Templates, Stylesheets, Page Layout / Stumped trying to center the logo

Stumped trying to center the logo

Locked

Started by chrome_orange on 4 Jun 2006, 2:41 PM · Views: 10,329

Results 1 to 20 of 23
This thread is locked. New replies are disabled.
4 Jun 2006, 2:41 PM
#1
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Stumped trying to center the logo

ok

I've had a look around and seen a few threads on this

I'm using 1.3.1

I have a small css file for my overrides and I know that it works

body {
	margin: 0;
	font-family: verdana, arial, helvetica, sans-serif;
	font-size: 62.5%;
	color: #000000;
	background-color: #FFFFFF;
	}

#mainWrapper {
	background-color: #ffffff;
	text-align: left;
	width: 800px;
	vertical-align: top;
	}

#logo{
/*	float: right;*/
	text-align: center; 
	margin: 0 auto;
	}

#logoWrapper {
	text-align: center;
	margin: 0 auto;
	margin: 0em;
	padding: 0em;
	height: 200px;
	background-color: #ED1F23;
	}

the logo will move to the far right if I use

float: right;

but I can not get it to center.

Where am I going wrong

url

http://chrome-orange.co.uk/uvex/

TIA

4 Jun 2006, 3:42 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,721
Plugin Contributions:
0

Re: Stumped trying to center the logo

Main Stylesheet:

#logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
	float: left;
	}

Comment out or remove #logo

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

4 Jun 2006, 4:03 PM
#3
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: Stumped trying to center the logo

Hi Kim

.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
	float: left;
	}

is now my line - still no joy.

even without removing #logo from the main stylesheet I can get the float: left to change by adding the #logo style to my style sheet, I just can't get it to center :(

7 Jun 2006, 7:44 PM
#4
chrome_orange avatar

chrome_orange

Totally Zenned

Join Date:
Jun 2004
Posts:
457
Plugin Contributions:
0

Re: Stumped trying to center the logo

#logo {
width: 100%;
text-align: center;
}

need that 100% to get it to centre!

7 Jun 2006, 10:23 PM
#5
ryk avatar

ryk

Totally Zenned

Join Date:
Oct 2004
Location:
Southport, UK
Posts:
3,644
Plugin Contributions:
6

Re: Stumped trying to center the logo

#logo {
float:none;
text-align:center;
}

works for me.

Development Manager @ JSWeb Ltd - suppliers of Applepay/Googlepay for Zencart
20 years with Zencart !

26 Oct 2006, 5:12 AM
#6
zas avatar

zas

Zen Follower

Join Date:
Oct 2006
Posts:
138
Plugin Contributions:
0

Re: Stumped trying to center the logo

hi,
I have tried all these options and it still won't centre

this is my file directoty, could this be the problem?
includes / templates / classic / css / stylesheet_new.css

or should I be changing this one?
includes / templates / template_default / css / stylesheet.css

We live in a rainbow of chaos ~ Paul Cezanne

26 Oct 2006, 5:42 AM
#7
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Stumped trying to center the logo

zas:

hi,
I have tried all these options and it still won't centre

this is my file directoty, could this be the problem?
includes / templates / classic / css / stylesheet_new.css

or should I be changing this one?
includes / templates / template_default / css / stylesheet.css

You should be using overrides.
includes/templates/YOUR_TEMPLATE_NAME/css/stylesheet.css

please review the tutorials for setting up your template overrides

If you don't use template overrides you run the risk of losing everything on the next update

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

26 Oct 2006, 11:02 AM
#8
zas avatar

zas

Zen Follower

Join Date:
Oct 2006
Posts:
138
Plugin Contributions:
0

Re: Stumped trying to center the logo

thanks for your response

two questions -
are upgrades essential?

and what should I do about the files I have already changed?
should I reinstall?
and I have changed files in the includes/languages/english folder, will these be affected by upgrades?

thanks

We live in a rainbow of chaos ~ Paul Cezanne

26 Oct 2006, 11:25 AM
#9
zas avatar

zas

Zen Follower

Join Date:
Oct 2006
Posts:
138
Plugin Contributions:
0

Re: Stumped trying to center the logo

now it has lost all shape and colours etc, is that right?

We live in a rainbow of chaos ~ Paul Cezanne

26 Oct 2006, 4:25 PM
#10
peanut77 avatar

peanut77

Zen Follower

Join Date:
Feb 2005
Posts:
266
Plugin Contributions:
0

Re: Stumped trying to center the logo

If you want to use the classic template with all the colours etc - what you should do is create new folder in the included/templates folder on your server where classic & template_default sit - for example say your site was called hulk - create a folder called hulk now copy the classic files from yout pc into the hulk folder on your server

Choose hulk as your template in the back office and then everytime you locally amend a file - i.e stylesheet etc ftp it up to your hulk folder

This lets you make changes and if everything goes wrong you can always switch back to the untouched classic template.

So now if you amend your stylesheet or header files you will still have the classic look and feel but you are using an override system.

Hope that helps - this was my one sticky bit when I got started - wasn't sure what an override or the YOUR_TEMPLATE everyone spoke about was.

26 Oct 2006, 11:51 PM
#11
zas avatar

zas

Zen Follower

Join Date:
Oct 2006
Posts:
138
Plugin Contributions:
0

Re: Stumped trying to center the logo

thanks heaps, glad it is back :D

We live in a rainbow of chaos ~ Paul Cezanne

26 Feb 2009, 12:22 AM
#12
hilarsh avatar

hilarsh

New Zenner

Join Date:
Nov 2008
Location:
Merseyside, England
Posts:
9
Plugin Contributions:
0

Re: Stumped trying to center the logo

Hi,

I had a lot of trouble to centre logo but

#logo {
width: 100%;
text-align: center;
}

worked for me...yippy!! Many thanks:clap:

3 Apr 2009, 1:53 AM
#13
techny avatar

techny

New Zenner

Join Date:
Mar 2009
Posts:
2
Plugin Contributions:
0

Re: Stumped trying to center the logo

Chrome Orange:

#logo {
width: 100%;
text-align: center;
}

need that 100% to get it to centre!

Worked for me!

18 May 2009, 5:39 AM
#14
meandk0610 avatar

meandk0610

New Zenner

Join Date:
May 2009
Posts:
20
Plugin Contributions:
0

Re: Stumped trying to center the logo

hilarsh:

Hi,

I had a lot of trouble to centre logo but

#logo {
width: 100%;
text-align: center;
}

worked for me...yippy!! Many thanks:clap:

what file was this is? i'm trying to do the same thing.

18 May 2009, 2:12 PM
#15
meandk0610 avatar

meandk0610

New Zenner

Join Date:
May 2009
Posts:
20
Plugin Contributions:
0

Re: Stumped trying to center the logo

meandk0610:

what file was this is? i'm trying to do the same thing.

OK. i saw, and changed, that spot in stylesheet, but it's still not working for me. :no:

c/p from stylesheet.php:
#logo {
width:100%;
text-align:center;}

any other ideas?

18 May 2009, 2:45 PM
#16
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,721
Plugin Contributions:
0

Re: Stumped trying to center the logo

Your URL?

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

18 May 2009, 3:12 PM
#17
meandk0610 avatar

meandk0610

New Zenner

Join Date:
May 2009
Posts:
20
Plugin Contributions:
0

Re: Stumped trying to center the logo

school-supplies-plus.com

thanks!

18 May 2009, 3:18 PM
#18
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Stumped trying to center the logo

The following section of the stylesheet is your problem:```
#logo, .centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {stylesheet.css (line 105)
float:left;
}


Remove #logo from there and give create a new line that reads:```
#logo {margin: 0 auto;}

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!

18 May 2009, 3:41 PM
#19
meandk0610 avatar

meandk0610

New Zenner

Join Date:
May 2009
Posts:
20
Plugin Contributions:
0

Re: Stumped trying to center the logo

just to make sure, are you talking about stylesheet.css? i had not realized i had to make any changes to that one and had only changed stylesheet.php. do i need to make the same changes to both for everything i change in stylesheet.php?

thanks!!

19 May 2009, 2:23 AM
#20
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,846
Plugin Contributions:
0

Re: Stumped trying to center the logo

Where are you seeing a stylesheet.php file?

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!