Help needed with my first CMSMS webpage, strange CSS behaviour

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
Bumble
Forum Members
Forum Members
Posts: 32
Joined: Tue May 30, 2006 5:03 pm

Help needed with my first CMSMS webpage, strange CSS behaviour

Post by Bumble »

Hello, i'm new to CMS Made Simple and I started a couple of days ago with my own template.

Since yesterdag I'm totally stuck.

When I have only my own template with no stylesheets attached there's nothing wrong (see code below)

Code: Select all

<__html>
<HEAD>
<TITLE></TITLE>
</HEAD>
</__body bgcolor="#E6E6E6" topmargin="10">
<table width="780" height="174" cellspacing="0" cellpadding="0" align="center" valign="top">
<tr>
<td width="780" height="151" background="header.jpg" valign="top"><!-- header --></td></tr>
<tr>
<td width="780" height="23" bgcolor="#D2D2D2">menu space for EllNav Horiz</td></tr>

<table width="780" height="421" cellpadding="0" cellspacing="0" align="center" valign="top">
<tr>

<td width="245" height="421" background="013left.gif" valign="top">
<br><br>
Last news</td>
<td width="10" height="421" bgcolor="white" valign="top"><!-- spacer --></td>
<td width="525" height="421" bgcolor="white" valign="top">{content}</td>

</tr>
</table>
</table>


<__body>
</__html>
But when I attach the EllNav Horiz menu and my stylesheet

Code: Select all

<link rel="stylesheet" type="text/css" href="http://www.prmedia.nl/stylesheet.php?templateid=6" />
What is it's filename?
There is a space between menu and content (18 pixels), see here.
What goes wrong?

I'm a bit of a CSS n00b, excuse me  :-*

Thanks in advance!
Last edited by Bumble on Tue May 30, 2006 9:27 pm, edited 1 time in total.
Kaylen
Forum Members
Forum Members
Posts: 128
Joined: Mon May 01, 2006 5:24 pm

Re: stuck with my first CMSMS webpage

Post by Kaylen »

have you tried playing with the margins for div#content in the layout ellnav stylesheet you are using??
User avatar
Bumble
Forum Members
Forum Members
Posts: 32
Joined: Tue May 30, 2006 5:03 pm

Re: stuck with my first CMSMS webpage

Post by Bumble »

the margin is already 0 (zero) so that couldn't be the reason there is a space between my table's.. right? ???
Last edited by Bumble on Tue May 30, 2006 7:59 pm, edited 1 time in total.
User avatar
Bumble
Forum Members
Forum Members
Posts: 32
Joined: Tue May 30, 2006 5:03 pm

Re: stuck with my first CMSMS webpage

Post by Bumble »

I walked true all the attached stylesheets and changed things arround, nothing different..

I have no idea what it can be else, one of the pro's maybe?

(excuse for the bad english.. dutch guy here ;D)
User avatar
Bumble
Forum Members
Forum Members
Posts: 32
Joined: Tue May 30, 2006 5:03 pm

Re: Help needed with my first CMSMS webpage, strange CSS behaviour

Post by Bumble »

I followed the rules and validated my HTML, it was ok!

I'm using the standard CSS for EllNav H Only 1C and Nav-Horizontal, this

Code: Select all

/* A CSS Framework by Mike Stenhouse of Content with Style, adapted to CMSMS by Daniel Westergren */

/* NAV */

    * html div#menu_horiz {
        /* hide ie/mac \*/
        height: 23;
        /* end hide */
    }
    div#menu_horiz {
      background-color: #ECECEC;
      width: 100%;
      margin: 0;
      text-align: center;
    }
    div#menu_horiz ul {
        margin: 0;
        padding: 0;
        list-style: none;
        border-bottom: 1px solid #C0C0C0;
        border-left:  1px solid #C0C0C0;
    }
    div#menu_horiz li {
        float: left;
        display: inline;
        list-style: none;
        margin: 0 ;
        border-right: 1px solid #C0C0C0;
    }
    div#menu_horiz li a {
        border-right: none;
    }
    div#menu_horiz a,
    div#menu_horiz a:link,
    div#menu_horiz a:active,
    div#menu_horiz a:visited {
        display: block;
        padding: 5px 10px; 

        /* hide from ie/mac \*/
        display: block;
        /* end hide */

        text-decoration: none;
        margin: 0;
        color: #18507C;
        background: #ECECEC;
    }
div#menu_horiz li a:hover {
	background-color: #A1FA52;
}
    div#menu_horiz .activeparent {
        display: inline-block;

        /* hide from ie/mac \*/
        display: block;
        /* end hide */
        
	background-color: #abb0b6;
    }

    div#menu_horiz .current a,
    div#menu_horiz .current a:link,
    div#menu_horiz .current a:active,
    div#menu_horiz .current a:visited,
    div#menu_horiz .current a:hover,
    div#menu_horiz .activeparent a,
    div#menu_horiz .activeparent a:link,
    div#menu_horiz .activeparent a:active,
    div#menu_horiz .activeparent a:visited,
    div#menu_horiz .activeparent a:hover 
{
	background-color: #abb0b6;
    }
/* END NAV */

div#menu_horiz li.active01 h3 {
        display: inline-block;
        padding: 5px 10px; 

        /* hide from ie/mac \*/
        display: block;
        /* end hide */
        font-size: 1em;
        line-height: 1em;
        text-decoration: none;
        margin: 0;
        color: #18507C;
        background-color: #abb0b6;
    }

#menu_horiz li.active02 h3 {
  display: block;
  text-decoration: none;
  padding: 5px 5px 5px 10px;
  font-weight: normal;
  color: #18507C;
  margin: 0;
  font-size: 1em;
  background-color: #abb0b6;
  }

#menu_horiz li.active03 h3
{
  display: block;
  padding: 3px 5px 3px 25px;
  border-bottom: none;
  font-size: 90%;
  font-weight: bold;
  color: #18507C;
  margin: 0;
}
I have a space of 18 pixels that doesn't belong there. With only raw HTML it is not there, but when I'm including the needed stylesheets or just one the space appears.

The HTML with the CSS markup is this:

Code: Select all

<__html>
<HEAD>
<title>{title}</title>
{metadata}
{stylesheet}


</HEAD>
</__body bgcolor="#E6E6E6" topmargin="10">
<!--<div id="pagewrapper">
<div id="container">-->
<table width="780" height="174" cellspacing="0" cellpadding="0" align="center" valign="top">
<tr>
<td width="780" height="151" background="header.jpg" valign="top">Legeruimte</td></tr>
<tr>
<td width="780" height="23" bgcolor="#D2D2D2">
    <!-- Start Horizontal Menu -->
      <div id="menu_horiz">
         <h2 class="accessibility">Navigation</h2>
         <div id="wrapper">
                  {cms_module module='menumanager' template="ellnav-accessible.tpl" number_of_levels='1'}
         </div>
      </div>
      <!-- End Horizontal Menu -->
</td></tr>
<table width="780" height="421" cellpadding="0" cellspacing="0" align="center" valign="top">
<tr>
<td width="245" height="421" background="013left.gif" valign="top"><div id="content" class="clearfix">
<br><br><br>
Leeg</td></div>
<td width="10" height="421" bgcolor="white" valign="top"><!--leeg--></td>
<td width="525" height="421" bgcolor="white" valign="top">

<!-- Start Content (Navigation and Content columns) -->
 <div id="content" class="clearfix">

      <!-- Start Content Area -->
      <div id="main">
         <h2>{title}</h2>
         {content} <br />
       </div>
	  <!-- End Content Area -->
   </div>
   <!-- End Content -->
</td>
</tr>
</table>
</table>
<__body>
</__html>
I have absolutely no idea why the space is there or what I can do to remove it.
Margin's are all at 0 (zero).

Please can somebody help me out on this?

Thanks.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Help needed with my first CMSMS webpage, strange CSS behaviour

Post by Dr.CSS »

shame on you messing with a perfectly good system and using table layout... tsk tsk tsk..  :D
just kidding..
most default installs have a CSS that calls out a style for the table and td, tr, if you look at the CSS that you are attaching you should be able to find one that has them...
ok looked at your link and found it in Typography CSS...

/* TABLE */
table {
        font-size: 1em;
margin: 0 0 1.5em 0;  that's him, he did it, i saw him, it's all his fault... delete him, delete him, he did it i saw him do it,,  :D  just playing.. but seriously i took that out and every body snuggled real close and cozy
        padding: 0;
}
table caption {
font-weight: bold;
margin: 0 0 0 0;
padding: 0 0 1.5em 0;
}
th {
font-weight: bold;
text-align: left;
}
td {
font-size: 1em;
}
/* END TABLE */

hr {
display: none;
}

div.hr {
height: 1px;
margin: 1em 10px;
border-bottom: 1px dotted black;
}


/* END TYPOGRAPHY */ /* A CSS Framework by Mike Stenhouse of Content with Style, adapted to CMSMS by Daniel Westergren */
User avatar
Bumble
Forum Members
Forum Members
Posts: 32
Joined: Tue May 30, 2006 5:03 pm

Re: Help needed with my first CMSMS webpage, strange CSS behaviour

Post by Bumble »

This is exactly why I picked CMSMS, because of the great support and community!  :-*

I can't thank you enough, happy happy joy joy  :D ;D

Now I'm going to count some sheeps..
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Help needed with my first CMSMS webpage, strange CSS behaviour

Post by Dr.CSS »

sheep?
you in Austra. or something?
i go to sleep counting 's  just to make sure i don't have too many and not too few... just right said goldylocks....  :D
User avatar
Bumble
Forum Members
Forum Members
Posts: 32
Joined: Tue May 30, 2006 5:03 pm

Re: Help needed with my first CMSMS webpage, strange CSS behaviour

Post by Bumble »

Holland it is..  ;D we have sheeps to and even cows LOL

You're american?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Help needed with my first CMSMS webpage, strange CSS behaviour

Post by Dr.CSS »

yup outside detroit in michigan
i'm on the frapper map for CMSMS
Post Reply

Return to “Layout and Design (CSS & HTML)”