Open space & article menu question

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
ff123
Posts: 172
Joined: Thu 9. Jun 2005, 20:03
Location: The Netherlands
Contact:

Open space & article menu question

Post by ff123 »

I made a website with phpcms and now I counter some problems:

- I have some space (about 10px) above the header and beneath the footer. How can I let the header and footer be shown without the open space?

- In my website I have a main menu which consists of images and I directly link them to the categories. That works fine. Now I want a submenu which shows the articles in the current category. Is this
possible? In the replacement tags I only found menu's which link to categories. So I have to link each article to a single category. There should be a better solution? Perhaps some hack?

Regards,
Frits
Pageman
Posts: 19
Joined: Sun 5. Jun 2005, 21:15

Post by Pageman »

In the default CSS (accessible under the "admin" heading) you might find a section that looks like this:


/**
* Sample CSS for DIV pagelayout
*/
#container {
width: 760px;
\width: 780px;
w\idth: 760px;
border: 1px solid gray;
margin: 10px;
margin-left: auto;
margin-right: auto;
padding: 10px;
}


Try changing the margin to "0". Maybe "0" for the border, too. I'm not sure about padding. Depending on what sort of layout you use, you might need to set the body margin style, too.

The default reads

body {
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 11px;
}

But in a pre-phpwcms version of a site I built with top-to-bottom-of-screen background features, I used:

<!--

html,body{
margin:0;
padding:0;
height:100%;
border:none;

etc.

I've read that "height" is a non-existent style spec, at least for tables, and maybe for "body" but I don't remember what all I encountered in cross-browser trials intended to make all of my page layouts fill the screen, so I've left it for now.

good luck! on the menu question, I can't help -- that is one I'm still concerned about. Freeware CMS's -- as flexible they might be and as generous as their authors might be -- are often built up from a particular use case and I've been told they don't always accomodate every possible use case, or even some common cases.
ff123
Posts: 172
Joined: Thu 9. Jun 2005, 20:03
Location: The Netherlands
Contact:

Post by ff123 »

Pageman wrote:In the default CSS (accessible under the "admin" heading) you might find a section that looks like this:


/**
* Sample CSS for DIV pagelayout
*/
#container {
width: 760px;
\width: 780px;
w\idth: 760px;
border: 1px solid gray;
margin: 10px;
margin-left: auto;
margin-right: auto;
padding: 10px;
}


Try changing the margin to "0". Maybe "0" for the border, too. I'm not sure about padding. Depending on what sort of layout you use, you might need to set the body margin style, too.

The default reads

body {
font-family: Verdana, Helvetica, Arial, sans-serif;
font-size: 11px;
}

But in a pre-phpwcms version of a site I built with top-to-bottom-of-screen background features, I used:

<!--

html,body{
margin:0;
padding:0;
height:100%;
border:none;

etc.

I've read that "height" is a non-existent style spec, at least for tables, and maybe for "body" but I don't remember what all I encountered in cross-browser trials intended to make all of my page layouts fill the screen, so I've left it for now.

good luck! on the menu question, I can't help -- that is one I'm still concerned about. Freeware CMS's -- as flexible they might be and as generous as their authors might be -- are often built up from a particular use case and I've been told they don't always accomodate every possible use case, or even some common cases.

About the open space. The answer was far more simple. Just disable margin in page layout. That does the trick.
Post Reply