Forums / Templates, Stylesheets, Page Layout / Centering the logo...tried everything I've read to try!

Centering the logo...tried everything I've read to try!

Views: 710

Results 1 to 6 of 6
5 Dec 2011, 4:46 AM
#1
phrynozoid avatar

phrynozoid

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Centering the logo...tried everything I've read to try!

I have read the FAQ and I'm pretty sure I did what it says right. When that didn't work, I searched online and searched here and tried what people said to try in the threads, but to no avail.

This is a new install.
I'm not entirely familiar enough with CSS or PHP to be able to tell what I'm doing wrong.

I tried to use text-align: center and from what I can see, my code looks just like what it's supposed to, but that logo is still stuck left.

When I view the site in FF, the logo just isn't centered. In Safari, in addition to not being centered, there is a weird broken image box with a link over top of the header.
I'm confused.
Any help is greatly appreciated.

The site is www. t i t u s p b .com/zencart

5 Dec 2011, 5:43 AM
#2
usernamenone avatar

usernamenone

Totally Zenned

Join Date:
Sep 2006
Posts:
541
Plugin Contributions:
0

Re: Centering the logo...tried everything I've read to try!

in your style sheet find

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

Take the #logo out and give it its own style
.centerBoxContents, .specialsListBoxContents, .categoryListBoxContents, .centerBoxContentsAlsoPurch, .attribImg {
float: left;
}
start a new style for logo
#logo{
text-align:center;
margin-top:0px;
margin-bottom:0px;
padding:0px;
}

Or
#logo{
display: block;
{


Play with it long enough and you will break it.
7 Dec 2011, 11:40 PM
#3
phrynozoid avatar

phrynozoid

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Re: Centering the logo...tried everything I've read to try!

Tried both of those, but the logo is still on the left. Any more ideas?
Thanks for your help.

7 Dec 2011, 11:42 PM
#4
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Centering the logo...tried everything I've read to try!

You could add a margin-left: and adjust it until the logo is centered.

The best way to learn is to try stuff. But, back it up first.

8 Dec 2011, 12:07 AM
#5
tony_sar avatar

tony_sar

Totally Zenned

Join Date:
Jul 2006
Location:
Montreal, Canada
Posts:
2,276
Plugin Contributions:
0

Re: Centering the logo...tried everything I've read to try!

some small modification should fix it .
modify width and add background-position to the logowrapper

#logoWrapper {
background-image: url("../images/header.jpg");
background-position: center center;
background-repeat: no-repeat;
height: 150px;
margin: 0 auto;
text-align: center;
width: 100%;
}

9 Dec 2011, 7:45 PM
#6
phrynozoid avatar

phrynozoid

New Zenner

Join Date:
Dec 2011
Posts:
4
Plugin Contributions:
0

Re: Centering the logo...tried everything I've read to try!

Thank you so much! Worked like a charm!! :clap: