Zen Cart Logo
Forums / Basic Configuration / Aligning Content in new sidebox

Aligning Content in new sidebox

Locked

Views: 2,028

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
15 May 2007, 4:59 PM
#1
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Aligning Content in new sidebox

Hi

I've created a new sidebox to display Google checkout as my payment provider.

I have added the google HTML to display the logo.

The problem i'm having is that in the side box the Google Checkout logo is aligned to the left of the sidebox whereas i would like it positioned centrally in the sidebox.

Any one know how to alter the position of the logo within the sidebox?

Thanks in advance!

15 May 2007, 5:48 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Aligning Content in new sidebox

Mr. Titan,
Please submit me a url to your site so I can view in firefox.

15 May 2007, 6:09 PM
#3
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: Aligning Content in new sidebox

16 May 2007, 2:47 AM
#4
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Aligning Content in new sidebox

Hmm... judging by the rendered page source info, it seems like that custom sidebox isn't classed with "centeredContent".

No worries, instead of recoding..

You could simply drop this into your current template's stylesheet:

#googlecheckoutContent {text-align: center}

That should center that image just fine.

16 May 2007, 2:52 AM
#5
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,179
Plugin Contributions:
0

Re: Aligning Content in new sidebox

Sketchy,
I used firefox today and added the following but was not working for me.
Does this happen sometimes in firefox when a correct tag is inserted in the stylesheet.css

16 May 2007, 3:56 AM
#6
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Aligning Content in new sidebox

^ Yes, it can very well occur sometimes.

It can be frustrating in the "virtual" world. :wacko:

16 May 2007, 5:37 AM
#7
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: Aligning Content in new sidebox

Thanks for the tip but i entereted that text into my CSS stylesheet and nothign happened!

It is still aligned to the left.

16 May 2007, 5:59 AM
#8
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Aligning Content in new sidebox

I wish I could have saw it first, before the major recoding. Now, it seems like you recoded the script to below the bottom banners.

16 May 2007, 12:57 PM
#9
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: Aligning Content in new sidebox

Hi Sketchy

Thanks for your input!

Yes i switched off the sidebox (but can eaisly switch it on again) becuase with it active i was getting the "some items not secure" warning message on my browser when going to checkout or secure pages.

The HTML i added from Google for the sidebox was i think from an unsecure source and i couldnt find a logo that would work within a scured page.

16 May 2007, 1:35 PM
#10
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Aligning Content in new sidebox

Hi. You're welcome.

That's so strange, because I got it to center virtually.. using the FF web dev. Meh, stranger things have happened. But, yeah, I suppose it's fruitless to have those warning going on in the first place instead of worrying about the logo placement. I always notice that people have problems especially with IE tripping security warnings. Agreed, doesn't look well in the customer's perspective.

Well, I hope you find a decent certified script/logo soon. :smile:

22 May 2007, 10:24 AM
#11
dvdtitan avatar

dvdtitan

New Zenner

Join Date:
Apr 2007
Posts:
87
Plugin Contributions:
0

Re: Aligning Content in new sidebox

Well, i'm having the same problem with another sidebox. I've (finally) installed livehelp now and i'm displaying it in a sidebox as a live help image. Details here:

www.dvdtitan.co.uk

I've still got the image alignment issue i originally posted about and i have tried amending the gogglecheckout alignment code provided above for livehelp but i'm still unable to centrally align that image in the sidebox.

Also the image is flush to the sidebox, i wanted to to leave a gap around the livehelp sidebox like i have on my other sideboxes.

Any help is greatly appreciated.

23 May 2007, 11:18 AM
#12
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Re: Aligning Content in new sidebox

There might be a pair of CSS Declarations that should mop it up. Try adding these into your stylesheet.css:

#livehelp { text-align: center }
#livehelp img { padding: 0.4em }