stylesheet not converted right
Permalink
Hello everyone,
I just converted my small stylesheet and some pages to concrete5 - it worked somehow, but is missing parts of my stylesheet.css
I just wanted to have body-tag with margin:auto - but it doesn't work.
Here's my code:
...
<body>
<?php $a = new Area('header'); $a->display($c); ?>
<?php $a = new Area('Main Content'); $a->display($c); ?>
<?php $a = new Area('footer'); $a->display($c); ?>
</body>
and in the stylesheet:
...
body {
color:black;
background-color:#d3ccb3;/*customize_body*/
margin:auto;
margin-top:40px;
margin-bottom:20px;
border:2px solid;
border-radius:25px;
-moz-border-radius:25px; /* Firefox 3.6 and earlier */
width:90%;
min-height:95%;
padding: 1em 2em;
}
Please, can somebody tell what I am doing wrong?
Thanks for help!
I just converted my small stylesheet and some pages to concrete5 - it worked somehow, but is missing parts of my stylesheet.css
I just wanted to have body-tag with margin:auto - but it doesn't work.
Here's my code:
...
<body>
<?php $a = new Area('header'); $a->display($c); ?>
<?php $a = new Area('Main Content'); $a->display($c); ?>
<?php $a = new Area('footer'); $a->display($c); ?>
</body>
and in the stylesheet:
...
body {
color:black;
background-color:#d3ccb3;/*customize_body*/
margin:auto;
margin-top:40px;
margin-bottom:20px;
border:2px solid;
border-radius:25px;
-moz-border-radius:25px; /* Firefox 3.6 and earlier */
width:90%;
min-height:95%;
padding: 1em 2em;
}
Please, can somebody tell what I am doing wrong?
Thanks for help!
thanks a lot!
iwas just to much into work to see the simple things :) Now the tags for customizing are set properly.
The box you see is right - but when I open the site, the box appears always in the very left. I thought with body:{margin:auto;} I can set the box to the vertical center of the screen. Am I right with this?
Greetings,
Jenn
iwas just to much into work to see the simple things :) Now the tags for customizing are set properly.
The box you see is right - but when I open the site, the box appears always in the very left. I thought with body:{margin:auto;} I can set the box to the vertical center of the screen. Am I right with this?
Greetings,
Jenn
I believe you need to set a fixed width for the container such as 960px. I do not think it will work with percentages.
Really, thanks a lot tallacman! That was the last bit I needed! :)
Is that correct? You will need an opening /*customize_body*/ tag on your editable area.
steve