Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Multiquote (on) Multiquote (off)
Add Reply
Center Text
Topic Started: Nov 28 2011, 02:54 PM (756 Views)
HawkBlade124-ZNS
Member Avatar
This hawk is staring into your soul!
[ * ]
I am trying to create a new theme and I was wondering how to get the H2 to have its text center. Does anyone know how to do this?
Offline Profile Quote Post Goto Top
 
Pando-ZNS
Member Avatar
Member
[ *  *  *  * ]
text-align:center;

The text-align property controls the alignment of the text. The default value is left, but right, center, justify, and inherit are all valid values. Just add that to h2 { } in the CSS.
Offline Profile Quote Post Goto Top
 
HawkBlade124-ZNS
Member Avatar
This hawk is staring into your soul!
[ * ]
Thanks Pando, that helped me alot. I guess it helps to find the right place to put the code ;) I was editing the .category h2 one (near the top) and didn't even bother to look near the middle of the CSS. Thanks again for the fast reply!
Offline Profile Quote Post Goto Top
 
Pando-ZNS
Member Avatar
Member
[ *  *  *  * ]
CSS can be placed anywhere in the CSS file. The only rule is that CSS properties at the bottom override properties of the element on top of it in the page, unless the property has an !important before the semicolon.
Offline Profile Quote Post Goto Top
 
HawkBlade124-ZNS
Member Avatar
This hawk is staring into your soul!
[ * ]
Also, how do i make the forum tables centered?
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · ZetaBoards - Theme & Code Support · Next Topic »
Add Reply