Too much space with ''Navigation: Simple - Vertical''

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
realrock
Forum Members
Forum Members
Posts: 227
Joined: Tue Sep 04, 2007 8:14 pm

Too much space with ''Navigation: Simple - Vertical''

Post by realrock »

Hi There,

I have used the ''Navigation: Simple - Vertical'' in one of my web projects, it works fine, it's looks good. But for some reason I have too much space on the left between sideline and the menu:

Image

http://test.sluitmijaan.nu/

There are no strange paddings in the sheet...

Maybe its just somethin simple... ::)

Thanks,
Peter


Menu CSS:

Code: Select all

/********************
MENU
*********************/
#menu_vert {
   padding-left: 0;
width: 256px;
}


/* third level has some padding to have it stand out */
div#menu_vert ul ul ul {
   padding-bottom: 0.5em;
}

/* menu li block */
#menu_vert li {
   list-style: none;
   margin: 0;
   border-bottom: 1px solid #c0c0c0;
   display: block;
}

#menu_vert ul ul li {
   border: none;
}

/** fix stupid ie bug with display:block; **/
* html #menu_vert li a { height: 1%; } 
* html #menu_vert li hr { height: 1%; }
/** end fix **/

/* first level links */
div#menu_vert a {
   text-decoration:none; /* no underline for links */
   display: block; /* IE has problems with this, fixed above */
   padding: 0.8em 0.5em 0.8em 1.5em; /* some air for it */
   color: #b20000; /* this will be link color for all levels */
   background: url(images/cms/arrow-right.gif) no-repeat 0.5em center; 
   min-height:1em; /* Fixes IE7 whitespace bug */ 
}

/* next level links, more padding and smaller font */
div#menu_vert ul ul a {
   font-size: 90%;
   padding: 0.5em 0.5em 0.5em 2.8em;
   background-position: 1.5em center;
}

/* third level links, more padding */
div#menu_vert ul ul ul a {
   padding: 0.3em 0.5em 0.3em 4.3em;
   background: url(images/cms/dash.gif) no-repeat 2.8em center; 
}

/* hover state for all links */
div#menu_vert a:hover {
   background-color: #e8e8e8;
}
div#menu_vert a.activeparent:hover {
   background-color: #e8e8e8;
   color: #b20000;
}

/* 
active parent, that is the first-level parent 
of a child page that is the current page 
*/
div#menu_vert li a.activeparent {
   background: url(images/cms/arrow-down.gif) no-repeat 0.4em center; 
   background-color: #b20000;
   color: #fff;
}

div#menu_vert ul ul li a.activeparent {
   background-position: 1.5em center; 
   background-color: transparent;
   color: #b20000;
}


/* 
current pages in the default Menu Manager 
template are unclickable. This is for current page on first level 
*/
div#menu_vert ul h3 {
   background: url(images/cms/arrow-right-active.gif) no-repeat 0.4em center;
   background-color: #b20000;
   display: block; 
   padding: 0.8em 0.5em 0.8em 1.5em;  /* some air for it */
   color: #fff;                                 /* this will be link color for all levels */
   font-size: 1em;                           /* instead of the normal font size for <h3> */
   margin: 0;                                  /* as <h3> normally has some margin by default */
}

/* 
next level current pages, more padding, 
smaller font and no background color or bottom border 
*/
div#menu_vert ul ul h3 {
   font-size: 90%;
   padding: 0.3em 0.5em 0.3em 2.8em;
   background-position: 1.4em center;
   background-color: transparent;
   border-bottom: none;
   color: #000;     
}

/* current page on third level, more padding */
div#menu_vert ul ul ul h3 {
   padding: 0.3em 0.5em 0.3em 4.3em;
   background: url(images/cms/arrow-right-active.gif) no-repeat 2.7em center; 
}

/* section header */
div#menu_vert li.sectionheader {
   border-right: none;
   font-size: 130%;
   font-weight: bold;
   padding: 1.5em 0 0.8em 0;
   background-color: #fff;
   line-height: 1em;
   margin: 0;
   text-align:center;
}



/* separator */
div#menu_vert li.separator {
   height: 1px !important;
   margin-top: -1px;
   margin-bottom: 0;
   padding:2px 0 2px 0;
   background-color: #000;
   overflow:hidden !important;
   line-height:1px !important;
   font-size:1px; /* for ie */
}

div#menu_vert li.separator hr {
   display: none; /* this is for accessibility */
}
Last edited by realrock on Thu Apr 10, 2008 12:23 pm, edited 1 time in total.
User avatar
nakkiel
Forum Members
Forum Members
Posts: 70
Joined: Wed Apr 02, 2008 7:15 am

Re: Too much space with ''Navigation: Simple - Vertical''

Post by nakkiel »

You want your whole menu to the left? If so, try to change:

Code: Select all

<td class="menu" valign="top" align="center">
Into:

Code: Select all

<td class="menu" valign="top" align="left">
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Too much space with ''Navigation: Simple - Vertical''

Post by KO »

Difficult to say from image but try changing:

div#menu_vert ul ul a {
  font-size: 90%;
  padding: 0.5em 0.5em 0.5em 0.5em;
  background-position: 0em center;
}

or some other values there as you do have padding on right side of tag.
realrock
Forum Members
Forum Members
Posts: 227
Joined: Tue Sep 04, 2007 8:14 pm

Re: Too much space with ''Navigation: Simple - Vertical''

Post by realrock »

Thanks for all your help, I have tried the solutions above, but no result.

Here is the CCS sitecode:

Code: Select all

/* CSS Document */
html, body {
	margin: 0px;
	height: 100%;
}

td {
	font-family: "Trebuchet MS", Helvetica, Arial;
	font-size: 11px;
	line-height: 18px;
	color: #030303;
}

a {
	font-weight: bold;
	color: #b10000;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.container {
	background: url(../images/oetelaar/bg_sides.gif) repeat-x top;
	border-bottom: solid 12px #a9abae;
	width: 100%;
	height: 100%;
}

.wrapper {
	width: 100%;
	height: 100%;
}

.site {
	width: 935px;
	height: 100%;
	background: #FFFFFF;
}

.top {
	width: 935px;
	height: 108px;
}

.boven {
	width: 895px;
	height: 108px;
}

.logo {
	width: 256px;
	height: 108px;
}

.top_right {
	width: 639px;
	height: 108px;

}

.vacatures {
	width: 425px;
	height: 100%;
}

p.vacature {
	margin-left: 50px;
	font-family: "Trebuchet MS", Helvetica, Arial;
	font-size: 11px;
	color: #030303;
	line-height: 18px;
	margin-bottom: 0px;
	margin-top: 0px;
	
}

p {
	margin-top: 0px;
	margin-bottom: 17px;
}

.vacaturelink {
	color: #030303;
	text-decoration: none;
}

.vacaturelink:hover {
	color: #030303;
	text-decoration: underline;
}
span.code {
	font-weight: bold;
	margin-right: 10px;
}

span.arrow {
	font-weight: bold;
	color: #b10000;
	margin-right: 10px;
}

.menu_top	{
	width: 204px;
	text-align: right;
}

.topmenu {
	display: block;
	font-family: Tahoma, Arial, Verdana;
	font-size: 10px;
	font-weight: normal;
	color: #9a9c9f;
	line-height: 40px;
	padding-left: 10px;
	padding-right: 10px;
	background: url(../images/oetelaar/topmenu_bg.gif) no-repeat center top;
	text-decoration: none;
}

.header {
	background: url(../images/oetelaar/header_bg.jpg);
	width: 935px;
	height: 107px;
}

.middle {
	width: 935px;
	height: 100%;
	padding-left: 20px;
	border-left: 1px solid #c9c9c9;
	border-right: 1px solid #c9c9c9;	
}

.middel {
	width: 895px;
	height: 100%;
}

.spaceleft {
	width: 20px;
	height: 100%;
}

.left {
	background: url(../images/oetelaar/left_bg.gif) repeat-x bottom;
	width: 256px;
	height: 100%;
}

.right {
	width: 639px;
	height: 100%;
}

/* Menu */

.menu {
	width: 256px;
	padding-top: 32px;
	text-align: left;
	padding-bottom: 32px;
}


.nieuwsbrief {
	background: url(../images/oetelaar/nieuwsbrief_bg.jpg);
	width: 256px;
	height: 88px;
}

.adres {
	padding-top: 32px;
	width: 256px;
	color: #030303;
	font-family: Tahoma, Verdana, Arial;
	font-size: 10px;
	line-height: 17px;
}

.adreslink {
	color: #030303;
	text-decoration: none;
}

.content {
	width: 639px;
	height: 100%;
	font-family: "Trebuchet MS", Helvetica, Arial;
	font-size: 11px;
	color: #030303;
	line-height: 17px;
	padding-left: 50px;
	padding-top: 32px;	
}

h1 {
	font-family: Tahoma, Verdana, Arial;
	font-size: 20px;
	font-weight: bold;
	color: #b10000;
	line-height: 30px;
	margin-top: 0px;
	margin-bottom: 30px;
}

.footer {
	background: url(../images/oetelaar/footer_bg.jpg) right no-repeat;
	width: 639px;
	height: 100px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	line-height: 30px;
	color: #999999;
	padding-left: 50px;
}

.footerlink {
	color: #999999;
	text-decoration: none;
	font-weight: normal;
}

.footerlink:hover {
	text-decoration: none;
}

.select {
	margin-top: 0px;
	width: 165px;
	height: 17px;
	font-family: Tahoma;
	font-size: 11px;
	line-height: 17px;
	color: #727272;
	border: 1px solid #000000;
	margin-right: 30px;
}

.button {
	background: #FFFFFF;
	border: 1px solid #FFFFFF;
	height: 18px;
	padding-left: 5px;
	padding-right: 5px;
	line-height: 12px;
}

.form {
	background: #FFFFFF;
	border: 1px solid #b10000;
	font-family: Tahoma;
	font-size: 11px;
	
}

/* Lightbox */

.thumb a:visited img
{
   background-color:#eee;
border:0px solid;
}

.thumb a:active img
{
   background-color:#eee;
border:0px solid;
}

.thumb a:hover img
{
   background-color:#eee;
border:0px solid;
}

.thumb a:link img
{
   background-color:#eee;
border:0px solid;
}
Last edited by realrock on Fri Apr 11, 2008 7:21 am, edited 1 time in total.
KO
Power Poster
Power Poster
Posts: 562
Joined: Mon Nov 06, 2006 7:55 pm

Re: Too much space with ''Navigation: Simple - Vertical''

Post by KO »

Uupsss sorry. did not notice your link...

div#menu_vert ul {padding-left:0}

there is also 4th stylesheet full of something that does not belong over there.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Too much space with ''Navigation: Simple - Vertical''

Post by Dr.CSS »

If you add the blue part here then you can adjust the last padding for the a above to your liking...

div#menu_vert ul ul a {
  font-size: 90%;
  padding: 0.5em 0.5em 0.5em 2.8em;  This will be the one to change to get it more to the left...
  background-position: 1.5em center;
}
div#menu_vert ul ul  {
  padding-left: 0em;
This will remove any padding then you can adjust the other...
}
Post Reply

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