YAFLogo

lordmage
  • lordmage
  • 62.6% (Friendly)
  • YAF Camper Topic Starter
9 years ago
How do I center my page please help forums. I'm trying but I can not thank you in advance.
Waiting Selim's Place Forum members Everyone I'm glad you are.
http://seliminyeri.net/forum.aspx 
Sponsor

Zero2Cool
9 years ago
Originally Posted by: lordmage 

How do I center my page please help forums. I'm trying but I can not thank you in advance.



Put this in your CSS file and wrap the div around whatever content you want centered.

.ctr {
    margin-left: auto;
    margin-right: auto;

}


Edit, text-align will center ALL the text too. I removed it as you just need to center your DIV's.
lordmage
  • lordmage
  • 62.6% (Friendly)
  • YAF Camper Topic Starter
9 years ago
Sitem bozuldu.Lütfen kusura bakma bunu çeviremiyorum :(

codes did not work
Waiting Selim's Place Forum members Everyone I'm glad you are.
http://seliminyeri.net/forum.aspx 
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
9 years ago
add this to the forum.css or theme.css

body {margin:0 auto;width:750px}

you can use any width you want.
lordmage
  • lordmage
  • 62.6% (Friendly)
  • YAF Camper Topic Starter
9 years ago
thank you
Waiting Selim's Place Forum members Everyone I'm glad you are.
http://seliminyeri.net/forum.aspx 
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button