Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Website menu alignment

  • Dennie12
  • Dennie12's Avatar Topic Author
  • Offline
  • New Member
More
10 years 1 month ago #139732 by Dennie12
Website menu alignment was created by Dennie12
Hello I'm using the Nuevvo magazine template for my website and I'm trying to get my menu bar to fit my web pages and centre my pages on a screen. I have too much space on the left and extra space on the right of the screen. How can I align/adjust my web pages layout to ensure the pages are centered on a screen and the menu bar fits the pages properly? Thanks for your help. Link to my site is: www.theafrowomansezine.com/

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 1 month ago #139733 by Krikor Boghossian
Replied by Krikor Boghossian on topic Website menu alignment
Hello Esther,

The menu bar was designed that way. I can assist you on bringing it over the top and having it stretch end-to-end if that is what you want.

This requires some coding which I am going to assist you with.
Open your index.php file and copy the following block right bellow the opening <body> tag.
  <div id="menuOuterWrapper">
    <div id="menuWrapper">
    <div id="menuToggler"><?php echo JText::_('MENU'); ?></div>
      <div id="menu">
        <?php if($this->countModules('nuMagazine_menu')): ?>
        <jdoc:include type="modules" name="nuMagazine_menu" style="nu" />
        <div class="clr"></div>
        <?php endif; ?>
      </div>
    </div>
  </div>

The rest is css. In your custom.css file paste this block.
#menuOuterWrapper { left: 0; min-width: 100%; height: auto; }
#menuWrapper { margin: 0 auto; max-width: 1500px;  }
#menu ul li a { width: auto; padding: 10px 20px 8px; }
#menu ul li a:hover { width: auto; }
@media only screen and (max-width: 569px),
  only screen and (-webkit-min-device-pixel-ratio: 1.5) and (max-width : 569px),
  only screen and (-o-min-device-pixel-ratio: 3/2) and (max-width : 569px),
  only screen and (min-device-pixel-ratio: 1.5) and (max-width : 569px) {
#menuToggler { text-align: left; }
}

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum