| 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: |
| Center Text | |
|---|---|
| Tweet Topic Started: Nov 28 2011, 02:54 PM (756 Views) | |
| HawkBlade124-ZNS | Nov 28 2011, 02:54 PM Post #1 |
|
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? |
![]() |
|
| Pando-ZNS | Nov 28 2011, 03:05 PM Post #2 |
|
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. |
![]() |
|
| HawkBlade124-ZNS | Nov 28 2011, 03:11 PM Post #3 |
|
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!
|
![]() |
|
| Pando-ZNS | Nov 28 2011, 04:03 PM Post #4 |
|
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. |
![]() |
|
| HawkBlade124-ZNS | Nov 28 2011, 04:26 PM Post #5 |
|
This hawk is staring into your soul!
![]() ![]() ![]()
|
Also, how do i make the forum tables centered? |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · ZetaBoards - Theme & Code Support · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)



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!
3:39 PM Jul 11