| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Getting Button Centered | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Getting Button Centered
I have got this button in a tpl file that I'm trying get centered horizontally in the box. I have added the following to skin1.css in the Vertical Menu section. I am very green with using CSS so all help is appeciated.
Code:
.tpl file: Code:
__________________
Adam X-Cart Gold 4.4.5 - Live X-Cart Gold 4.1.11 - Retired X-Payments 1.0.4 CDSEO Pro EWD Hosting |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Getting Button Centered
your class assignment has a lowercase M while the definition has an uppercase M.
They must match exactly.
__________________
xcart 5.1.2 |
|||||||||
#3
|
|||||||
|
|||||||
Re: Getting Button Centered
Yeah, I caught that right after I posted, but the button remains on the left. Checked it with Firebug and it seems to be pulling the correct font class for the button. Is the font class statement in the .tpl file in the correct place?
Thanks!
__________________
Adam X-Cart Gold 4.4.5 - Live X-Cart Gold 4.1.11 - Retired X-Payments 1.0.4 CDSEO Pro EWD Hosting |
|||||||
#4
|
|||||||
|
|||||||
Re: Getting Button Centered
If this is all in a table, then just put align center i the <td>
__________________
Joe Holley 4.2 |
|||||||
#5
|
|||||||
|
|||||||
Re: Getting Button Centered
No table. The pulldown boxes and the button are in a single form which is "in" div tags from the rounded corners mod. I would be OK with all elements of the form being centered in the box if that makes any of this easier.
Here is the part of the CSS file that Firebug is saying the form is in. Code:
__________________
Adam X-Cart Gold 4.4.5 - Live X-Cart Gold 4.1.11 - Retired X-Payments 1.0.4 CDSEO Pro EWD Hosting |
|||||||
#6
|
|||||||||
|
|||||||||
Re: Getting Button Centered
wrap the button in a div tag, set width to 100% AND ALIGN TO CENTER
__________________
xcart 5.1.2 |
|||||||||
#7
|
|||||||
|
|||||||
Re: Getting Button Centered
try removing the "center" attribute and setting margin to auto
margin: auto;
__________________
Joe Holley 4.2 |
|||||||
|
|||
X-Cart forums © 2001-2020
|