Singular layout problem (3 posts)

  1. matthisco
    Posted 3 years ago #

    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?



  2. mathis@Tambour
    Posted 3 years ago #

    Actually, that's not the real problem on this website !
    Colors aren't really nice for our eyes !

  3. matthisco
    Posted 3 years ago #

    Haha, dont worry, thats just so I can see what the div's are doing while I fix it! :-)

Topic Closed

This topic has been closed to new replies.

About this Topic