Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Centering a form within sidebox?

Centering a form within sidebox?

Views: 446

Results 1 to 8 of 8
16 Jun 2012, 4:41 PM
#1
grace83 avatar

grace83

New Zenner

Join Date:
Sep 2007
Posts:
47
Plugin Contributions:
0

Centering a form within sidebox?

I have a donate button on our storefront within one of the banner sideboxes. However, no matter what I try I can't get it to change the alignment within that sidebox! I'd like it to be centered, but it remains glued to the right edge. How do I fix it? I tried searching, but had trouble finding an answer.

https://www.mainelyratrescue.org

16 Jun 2012, 9:12 PM
#2
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Centering a form within sidebox?

looks centered in my browser

16 Jun 2012, 9:14 PM
#3
grace83 avatar

grace83

New Zenner

Join Date:
Sep 2007
Posts:
47
Plugin Contributions:
0

Re: Centering a form within sidebox?

Sorry, I should have put the direct store link. The one on the main page is fine, but the one in the storefront is aligned right. Last box on the right sidebar.

https://www.mainelyratrescue.org/store

16 Jun 2012, 9:24 PM
#4
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Centering a form within sidebox?

try this

div#bannerboxallContent form {
margin:0px 0px 0px -15px;
}
16 Jun 2012, 9:29 PM
#5
grace83 avatar

grace83

New Zenner

Join Date:
Sep 2007
Posts:
47
Plugin Contributions:
0

Re: Centering a form within sidebox?

Thank you! And sorry if this is a foolish question, but where would I add that code?

16 Jun 2012, 9:32 PM
#6
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Centering a form within sidebox?

in your

includes/templates/cherry_zen/css/stylesheet.css file

16 Jun 2012, 9:35 PM
#7
grace83 avatar

grace83

New Zenner

Join Date:
Sep 2007
Posts:
47
Plugin Contributions:
0

Re: Centering a form within sidebox?

Got it! It's sitting a bit to the left now instead of true centered, but it certainly looks better than far to the right like it was!

ETA - fixed it, just had to change that margin a bit. Thank you thank you!!

16 Jun 2012, 9:45 PM
#8
rbarbour avatar

rbarbour

Totally Zenned

Join Date:
Feb 2010
Posts:
2,159
Plugin Contributions:
10

Re: Centering a form within sidebox?

np - looks good!