HOME | DD
Published: 2007-01-18 01:58:27 +0000 UTC; Views: 955; Favourites: 3; Downloads: 12
Redirect to original
Description
Another one of my Nature series.Related content
Comments: 11
One3Creations [2007-01-18 02:17:40 +0000 UTC]
I love the simplicity of this design
Although on the working version you need to center the site.
Instead of:
margin: 50px;
in your CSS, change that to:
margin: 50px auto 50px auto;
That will center the site in all browsers
👍: 0 ⏩: 2
golebara In reply to One3Creations [2007-01-18 03:55:58 +0000 UTC]
Hey, I did change "margin: 50px;" to "margin: 50px auto 50px auto;" but it didn't centre in Firefox. Any idea why?
👍: 0 ⏩: 1
One3Creations In reply to golebara [2007-01-18 06:04:50 +0000 UTC]
Turn:
body { CSS stuff }
into:
html, body { CSS stuff }
👍: 0 ⏩: 1
golebara In reply to One3Creations [2007-01-18 10:46:11 +0000 UTC]
That didn't work either. But "margin: 50px 20% 50px 20%;" worked fine. Thanks for your help.
👍: 0 ⏩: 1
One3Creations In reply to golebara [2007-01-18 17:21:45 +0000 UTC]
Hmm, that didn't center it on my resolution: 1400x1050.
So your css should look like this:
html, body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
background: #EEE;
color: #000;
margin: 50px auto 50px auto;
padding: 0px;
text-align: center;
}
#content {
width: 540px;
color: #333;
font-size: 11px;
background: #FFF;
line-height: 16px;
text-align: left;
padding: 10px;
border-right: 1px solid #CCC;
border-bottom: 1px solid #CCC;
}
👍: 0 ⏩: 1
golebara In reply to One3Creations [2007-01-19 03:37:29 +0000 UTC]
Nope, you got me there. I tried your css and it still refuses to centre itself in Firefox. I'm running Firefox 1.5.0.8.
👍: 0 ⏩: 2
One3Creations In reply to golebara [2007-01-19 05:55:15 +0000 UTC]
So in all you should have:
html, body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
background: #EEE;
color: #000;
margin: 50px auto 50px auto;
padding: 0px;
text-align: center;
}
#content {
width: 540px;
color: #333;
font-size: 11px;
background: #FFF;
line-height: 16px;
text-align: left;
margin: auto;
padding: 10px;
border-right: 1px solid #CCC;
border-bottom: 1px solid #CCC;
}
👍: 0 ⏩: 0
One3Creations In reply to golebara [2007-01-19 05:54:20 +0000 UTC]
Firefox version isn't the problem...
According to the CSS you have up on the site you didn't change that.
Also, try adding:
margin: auto;
to your #content { }.
If you do the html, body { } and #content { } fixes I gave you it should work
👍: 0 ⏩: 1
golebara In reply to One3Creations [2007-01-19 07:38:53 +0000 UTC]
The "margin: auto;" in #content{} seemed to have fixed the problem. Don't know why though.
Thank you so much for your help. Really appreciate it.
PS. No, I didn't upload it since it didn't work locally. But now it should be.
👍: 0 ⏩: 1
One3Creations In reply to golebara [2007-01-19 13:36:26 +0000 UTC]
No problem, I'm glad to have helped
👍: 0 ⏩: 0
golebara In reply to One3Creations [2007-01-18 03:49:17 +0000 UTC]
Oh thank you for that! I did test it in other browsers and was wondering why it didn't centre itself. I guess I have to go back to my CSS class.
👍: 0 ⏩: 0

























