Title: css problems: sidebar padding and placement
Last modified: August 18, 2016

---

# css problems: sidebar padding and placement

 *  Resolved [shmish](https://wordpress.org/support/users/shmish/)
 * (@shmish)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/css-problems-sidebar-padding-and-placement/)
 * I’m a couple of problems with a theme I’m working on.
 * Firstly, there is a gap between the header and the content. Secondly, I can’t
   seem to move/place the text that is inside the sidebar.
 * 
 * The style css has the following:
    `.secondary { position: relative; text-align:
   left; margin: 0px; padding: 0px; }
 * If I change the padding-top for this class to something like 10px, the sidebar
   content drops down and the image inside the primary class moves up against the
   header. I don’t understand why this happens and hope someone can offer guidance.
   I’m guessing I need some type of float or display:inline somewhere.
 * Secondly, changing the padding in .secondary does not move the text left or right.
   I would like to move the text to the right a bit, and I though padding-left would
   do this. Again, any ideas on this would be appreciated.
 * thanks

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

 *  [tsguitar](https://wordpress.org/support/users/tsguitar/)
 * (@tsguitar)
 * [19 years, 9 months ago](https://wordpress.org/support/topic/css-problems-sidebar-padding-and-placement/#post-438964)
 * I don’t know why you’re using `position:relative` instead of floating that image
   left. Here’s an idea:
    [http://css.maxdesign.com.au/floatutorial/tutorial0106.htm](http://css.maxdesign.com.au/floatutorial/tutorial0106.htm)
 * I suspect the padding you have on the H5 and `ul.menu`, along with the `margin-
   bottom: 10px` you have on `#header`, are problems.
 * Also, you really want to worry about using valid code:
    [http://validator.w3.org/check?uri=http%3A%2F%2Fwww.alpinevisions.dryfly.ca%2F](http://validator.w3.org/check?uri=http%3A%2F%2Fwww.alpinevisions.dryfly.ca%2F)
 * Fixing some of those errors certainly wouldn’t be a bad idea and might even fix
   a few things in the process.
 *  Thread Starter [shmish](https://wordpress.org/support/users/shmish/)
 * (@shmish)
 * [19 years, 8 months ago](https://wordpress.org/support/topic/css-problems-sidebar-padding-and-placement/#post-439169)
 * Thanks, I thought I had tried your suggestions but going over it again worked.
 * I’ll definitely work on the validation too.

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

The topic ‘css problems: sidebar padding and placement’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [shmish](https://wordpress.org/support/users/shmish/)
 * Last activity: [19 years, 8 months ago](https://wordpress.org/support/topic/css-problems-sidebar-padding-and-placement/#post-439169)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
