YAFLogo

lordmage
  • lordmage
  • 62.6% (Friendly)
  • YAF Camper Topic Starter
10 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
  • Zero2Cool
  • 100% (Exalted)
  • YAF Leader YAF Version: YAF 3.1.16
10 years ago

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

Originally Posted by: lordmage 

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
10 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: 4.0.0 rc 2
10 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
10 years ago
thank you
Waiting Selim's Place Forum members Everyone I'm glad you are.

http://seliminyeri.net/forum.aspx