Title: simple css help
Last modified: August 19, 2016

---

# simple css help

 *  Resolved [miocene22](https://wordpress.org/support/users/miocene22/)
 * (@miocene22)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/)
 * On [my theme](http://topuptents.x10hosting.com/wordpress/) 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)

 *  [Peter Boosten](https://wordpress.org/support/users/pboosten/)
 * (@pboosten)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/#post-1233698)
 * you mean this?
 *     ```
       #navbar {
         height:34px;
       }
       ```
   
 * Peter
 *  Thread Starter [miocene22](https://wordpress.org/support/users/miocene22/)
 * (@miocene22)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/#post-1233699)
 * 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…
 *  [Peter Boosten](https://wordpress.org/support/users/pboosten/)
 * (@pboosten)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/#post-1233700)
 * also, the padding in ‘#navbar a’ adds up to the total.
 * Peter
 *  Thread Starter [miocene22](https://wordpress.org/support/users/miocene22/)
 * (@miocene22)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/#post-1233705)
 * 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?
 *  [Peter Boosten](https://wordpress.org/support/users/pboosten/)
 * (@pboosten)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/#post-1233706)
 * 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](https://wordpress.org/support/users/miocene22/)
 * (@miocene22)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/#post-1233708)
 * 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](https://wordpress.org/support/users/miocene22/)
 * (@miocene22)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/#post-1233711)
 * 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…
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/#post-1233714)
 * 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](https://wordpress.org/support/users/miocene22/)
 * (@miocene22)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/#post-1233716)
 * 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](http://wordpress.org/support/topic/317384?replies=2)
 * I’m having trouble getting responses to it and was wondering if you could apply
   your skills to sorting it.
 * cheers, harry
 *  [Peter Boosten](https://wordpress.org/support/users/pboosten/)
 * (@pboosten)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/#post-1233718)
 * > 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.

 * 10 replies
 * 3 participants
 * Last reply from: [Peter Boosten](https://wordpress.org/support/users/pboosten/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/simple-css-help/#post-1233718)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
