![]() |
Getting Button Centered
1 Attachment(s)
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:
{capture name=menu} |
Re: Getting Button Centered
your class assignment has a lowercase M while the definition has an uppercase M.
They must match exactly. |
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! |
Re: Getting Button Centered
If this is all in a table, then just put align center i the <td>
|
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:
div.xboxcontent div{ |
Re: Getting Button Centered
wrap the button in a div tag, set width to 100% AND ALIGN TO CENTER
|
Re: Getting Button Centered
try removing the "center" attribute and setting margin to auto
margin: auto; |
All times are GMT -8. The time now is 12:00 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.