Title: CSS problem with theme, &#8211; margin issue
Last modified: August 18, 2016

---

# CSS problem with theme, – margin issue

 *  [sasisena](https://wordpress.org/support/users/sasisena/)
 * (@sasisena)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/css-problem-with-theme-margin-issue/)
 * Hey guys.
 * I am trying to cook up a theme based on Blix, but I am having problems with the
   CSS. there are a couple of <hr class=”low”> in the index.php file. These are 
   set to display:none in the CSS. but because of this (i think) i am getting a 
   margin on the main content div. If i remove the display:none on the <hr>, the‘
   margin dissapears’ and the content div floats left as intended. havent got a 
   clue whats going on here. I havent changed the layout to much except some basic
   padding here and there.
 * Any pointers appreciated.
 * Thanks
    Kumar

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

 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/css-problem-with-theme-margin-issue/#post-370944)
 * a link would probably be appreciated, most people do better when visual cues 
   are provided.
 *  Thread Starter [sasisena](https://wordpress.org/support/users/sasisena/)
 * (@sasisena)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/css-problem-with-theme-margin-issue/#post-370967)
 * sorry, wasnt thinking 🙂
 * here it is: [http://home.no.net/kumar/es_test/wordpress/](http://home.no.net/kumar/es_test/wordpress/)
 * as you can see the grey content area is centered somehow, although i have flated
   it to the left. the <hr> are set to display:none;
 *  Thread Starter [sasisena](https://wordpress.org/support/users/sasisena/)
 * (@sasisena)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/css-problem-with-theme-margin-issue/#post-371008)
 * well, i have now removed the <hr>s in the template files. but problem still persists.
   the funny thing is if i remove the float:left it will stay at the left. but with
   that declaration enabled, it gives me a margin like the link above shows. it 
   does work as intended in IE7 but not firefox. seems to be a css problem, i can
   post the code if needed.
 *  Thread Starter [sasisena](https://wordpress.org/support/users/sasisena/)
 * (@sasisena)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/css-problem-with-theme-margin-issue/#post-371011)
 * sorted! looks like it had somethign to do with the line-height in the previous
   div (navigation at the top)…a reduction of the height of this div led to the 
   problem.
    not sure exactly what happened, but its working anyway.

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

The topic ‘CSS problem with theme, – margin issue’ is closed to new replies.

## Tags

 * [blix](https://wordpress.org/support/topic-tag/blix/)
 * [margin](https://wordpress.org/support/topic-tag/margin/)

 * 4 replies
 * 2 participants
 * Last reply from: [sasisena](https://wordpress.org/support/users/sasisena/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/css-problem-with-theme-margin-issue/#post-371011)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
