• Resolved miocene22

    (@miocene22)


    On my theme I am developing there is an annoying gap of white between my menu bar and the content div.

    I have set the margins of them to 0px but the gap remains. How can I remove it and have the content div touching the menu bar?

Viewing 10 replies - 1 through 10 (of 10 total)
  • you mean this?

    #navbar {
      height:34px;
    }

    Peter

    Thread Starter miocene22

    (@miocene22)

    perhaps, should I change this to less?

    edit: the height of the navbar is 32px, which I have specified in the stylesheet.

    There still seems to be some annoying margin somewhere but I don’t know where…

    also, the padding in ‘#navbar a’ adds up to the total.

    Peter

    Thread Starter miocene22

    (@miocene22)

    my #navbar a has a padding of 7px all arounb but removing this does not help.

    Can you suggest what may need to be done?

    when I removed the height in ‘#navbar’ and changed the padding to ‘0 7px’ in ‘#navbar a’, the navbar and content would get together. I lost the background of navbar however.

    Peter

    Thread Starter miocene22

    (@miocene22)

    That’s because #navbar li is floating so it collapses unless a height is specified.

    I’ll try that an put a clearer div in just beneath

    Thread Starter miocene22

    (@miocene22)

    almost there, now the navdiv is a bit too high

    edit: no it wasn’t, it was the border-top of the content div.

    Resolved – thanks for the input…

    define a height for #navdiv:

    #navdiv {
            height:32px;
    	margin: 0;
    	padding: 0;
    }

    and change the padding here:

    #navbar a {
    	display: block;
    	padding: 7px 0 5px 0;
    	padding-left: 9px;
    	text-decoration: none;
    	color: #A83B00;
    }

    only checked in firefox, there are other problems with the nav in IE7.
    probably at least need to add ‘margin-left:0px;’:

    #navdiv ul {
    	list-style-type: none;
    	width: 893px;
    	padding-left: 7px;
    margin-left:0px;
    	background-color: #adcbd3;
    }

    PS: sorry to jump in with a different idea, I was busy checking while Peter worked on it.

    Thread Starter miocene22

    (@miocene22)

    Hey all sorted now thanks for your help

    Not sure if this is allowed but I’m having one last issue which is outlined here

    I’m having trouble getting responses to it and was wondering if you could apply your skills to sorting it.

    cheers, harry

    PS: sorry to jump in with a different idea, I was busy checking while Peter worked on it.

    It’s good to have more than one person look at it πŸ˜‰

    Peter

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘simple css help’ is closed to new replies.