Title: Singular layout problem
Last modified: August 20, 2016

---

# Singular layout problem

 *  [matthisco](https://wordpress.org/support/users/matthisco/)
 * (@matthisco)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/singular-layout-problem/)
 * Hi folks,
 * I’m trying to make the content the full width of the site if there is no submenu.
   If there are child links I’d like to indent the primary div and float the submenu
   on the left hand side of the page.
 * Here is my code to determine if theres a submenu:
 *     ```
       <?php if ($children) { ?>
       <div id="primary" >
        <?php } else{?>
       <div id="primary" class="singular">
        <?php  }?>
       ```
   
 * I’ve tried setting the width of primary, content and main to 100%, but there 
   is always a indent, can anyone please help me code this correctly?
 * [http://tinylink.net/96798](http://tinylink.net/96798)
 * Thankyou

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

 *  [mathis@Tambour](https://wordpress.org/support/users/mathistambour/)
 * (@mathistambour)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/singular-layout-problem/#post-3259052)
 * Actually, that’s not the real problem on this website !
    Colors aren’t really
   nice for our eyes !
 *  Thread Starter [matthisco](https://wordpress.org/support/users/matthisco/)
 * (@matthisco)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/singular-layout-problem/#post-3259053)
 * Haha, dont worry, thats just so I can see what the div’s are doing while I fix
   it! 🙂

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

The topic ‘Singular layout problem’ is closed to new replies.

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [matthisco](https://wordpress.org/support/users/matthisco/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/singular-layout-problem/#post-3259053)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
