Center Forum
4 posters
Page 1 of 1
Center Forum
At first I wanted my forum to have a fixed width. I added the "width: 80%" css code into my css. However the change worked, my site had my intended fixed width, but the forum shifted to one side.
Site: http://anime-worldhq.forumotion.com/index.htm
Thank You Very Much
Site: http://anime-worldhq.forumotion.com/index.htm
Thank You Very Much
Last edited by silvergirl59 on January 17th 2010, 2:51 pm; edited 1 time in total
silvergirl59- Forumember
- Posts : 58
Reputation : 0
Language : english
Re: Center Forum
Hi,
Ouch, phpBB3 hein ?
So let's try to fixed with this code to paste at the end of css stylesheet :
Ouch, phpBB3 hein ?
So let's try to fixed with this code to paste at the end of css stylesheet :
#wrap {margin-left: auto; margin-right: auto;}
Re: Center Forum
Yup phhb3
I found #wrap so I assume you put "#wrap {margin-left: auto; margin-right: auto;}" there. But when I added it my forum becomes green (not wanted). I tried putting your code at the end of the css but nothing happened.
Is there a specific place #wrap {margin-left: auto; margin-right: auto;} goes under?
Thanks
I found #wrap so I assume you put "#wrap {margin-left: auto; margin-right: auto;}" there. But when I added it my forum becomes green (not wanted). I tried putting your code at the end of the css but nothing happened.
Is there a specific place #wrap {margin-left: auto; margin-right: auto;} goes under?
Thanks
silvergirl59- Forumember
- Posts : 58
Reputation : 0
Language : english
Re: Center Forum
Hello...
I saw this in your CSS :
You have to correct it like this :
I saw this in your CSS :
body {
background-color: #4c4c4c;
background-image: url('https://2img.net/h/i191.photobucket.com/albums/z301/lastfmbadges/a1/Untitled-4.png');
background-repeat: repeat;
margin-top:150px;
background-attachment: fixed;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 62.5%; /* This sets the default font size to be equivalent to 10px */
margin: 0px 0px 0px 0px;
padding: 0px;
border-color: #862121;
border-width: 0px 0px 0px 0px;
border-style: solid;
width: 80%
}
You have to correct it like this :
(and with this, I think you don't need the other code)body {
background-color: #4c4c4c;
background-image: url('https://2img.net/h/i191.photobucket.com/albums/z301/lastfmbadges/a1/Untitled-4.png');
background-repeat: repeat;
margin-top:150px;
background-attachment: fixed;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 62.5%; /* This sets the default font size to be equivalent to 10px */
margin: 0px 0px 0px 0px;
padding: 0px;
border-color: #862121;
border-width: 0px 0px 0px 0px;
border-style: solid;
width: 100%;
}
Re: Center Forum
But I need to change it to 80 for a fixed width.
silvergirl59- Forumember
- Posts : 58
Reputation : 0
Language : english
Re: Center Forum
Are you sure you want to change page's width ? Or just Body line's width ?silvergirl59 wrote:But I need to change it to 80 for a fixed width.
Because that part of CSS is the width if for the page, you shouldn't change it.
If you are sure that you want to modify page's width, put this in your CSS :
body {margin-left: auto; margin-right: auto;}
Re: Center Forum
ze_chaofan wrote:Are you sure you want to change page's width ? Or just Body line's width ?silvergirl59 wrote:But I need to change it to 80 for a fixed width.
Because that part of CSS is the width if for the page, you shouldn't change it.
If you are sure that you want to modify page's width, put this in your CSS :body {margin-left: auto; margin-right: auto;}
Thanks!! body {margin-left: auto; margin-right: auto;} worked, it's exactly how I want my forum to look like.
Thanks alot!
silvergirl59- Forumember
- Posts : 58
Reputation : 0
Language : english
Similar topics
» How can I center my forum, can anyone please help? Thanks.
» Center a forum?
» How to center the forum entirely
» Center forum
» help || my forum is not in the center
» Center a forum?
» How to center the forum entirely
» Center forum
» help || my forum is not in the center
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum