Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Align sideboxes to the left

Align sideboxes to the left

Locked

Views: 1,077

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
8 Apr 2010, 11:28 PM
#1
monkeytastic avatar

monkeytastic

Zen Follower

Join Date:
Dec 2006
Posts:
141
Plugin Contributions:
0

Align sideboxes to the left

I'm happy with everything in the sideboxes being centered apart from the bestsellers - can this be aligned left? http://www.skateboardstickers.co.uk/

8 Apr 2010, 11:41 PM
#2
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Align sideboxes to the left

Admin > Tools > Layout Boxes Controller

look for Box Name: best_sellers.php click edit, then Location: (Single Column ignores this setting) set to Left

You may need to adjust your sort order

8 Apr 2010, 11:43 PM
#3
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Align sideboxes to the left

monkeytastic means to align the text left in the sidebox, not the location of the sidebox, text is currently centered

8 Apr 2010, 11:50 PM
#4
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Align sideboxes to the left

Twaddle:

monkeytastic means to align the text left in the sidebox, not the location of the sidebox, text is currently centered

Only shows that I'm still half asleep :wacko: ---- sorry.

In the stylesheet.css look for bestsellersContent (around line 1137) and code to align left

failing that look at line 1286

#bestsellers li {
margin: 0.3em 0;
padding: 0;
align: left;
}

8 Apr 2010, 11:52 PM
#5
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Align sideboxes to the left

frank18:

Only shows that I'm still half asleep :wacko: ---- sorry.

In the stylesheet.css look for bestsellersContent (around line 1137) and code to align left
You've redeemed yourself :yes:

9 Apr 2010, 12:14 AM
#6
monkeytastic avatar

monkeytastic

Zen Follower

Join Date:
Dec 2006
Posts:
141
Plugin Contributions:
0

Re: Align sideboxes to the left

No he hasn't - it doesn't work!

:P

any other ideas?

9 Apr 2010, 12:21 AM
#7
twaddle avatar

twaddle

Banned

Join Date:
Jul 2009
Location:
Prague, Czech Republic
Posts:
478
Plugin Contributions:
0

Re: Align sideboxes to the left

ROFLMAO :D

Come on Frank, step up again :P

9 Apr 2010, 1:15 AM
#8
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Align sideboxes to the left

Your template is highly customized, and has eliminated all standard identifiers from the main structure. It is entirely composed of anonymous tables until you get to the lower content level, and the div that holds the sideboxes has an inline attribute of align="center". This is a very poorly constructed template, and a lot of work went into mucking it up.

Add to your stylesheet (doesn't really matter which one, though for clarity I would stick it in the betterCategories one):

.betterBestsellers {text-align: left;}
9 Apr 2010, 9:25 AM
#9
monkeytastic avatar

monkeytastic

Zen Follower

Join Date:
Dec 2006
Posts:
141
Plugin Contributions:
0

Re: Align sideboxes to the left

gjh42 - thanks, that's working great now.

I recently paid a company $199 for a custom design and wish I didn't - There has been a lot of emailing back and forth with problems needing to be fixed. I'd have been better off sticking to learning how to do it myself. I've had to change alot of it myself since it was "redesigned".

I'm now trying to align the shopping cart sidebox to the left. Could you please help me with that. An couple of items would have to be added to the shopping cart for you to be able to see the sidebox.

9 Apr 2010, 9:37 AM
#10
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Align sideboxes to the left

You were close. The last statement in stylesheet.css should be:

#shoppingcartContent {text-align: left;}

That's an id, not a class, so it's # rather than .

Also, CSS is case-sensitive.

9 Apr 2010, 10:00 AM
#11
monkeytastic avatar

monkeytastic

Zen Follower

Join Date:
Dec 2006
Posts:
141
Plugin Contributions:
0

Re: Align sideboxes to the left

Perfect, thank you :smile: