Jump to content

[Resolved] Centre Icons in Header Area


philippagreen

Recommended Posts

The Foundation template main.php has this structure relevant to the top_header when viewing Medium or Large viewports:

<div class="row marg-top" id="top_header">
   <div class="small-4 large-3 columns">Logo</div>
   <div class="small-8 large-9 columns nav-boxes">
      <div class="row" id="nav-actions">
         <div class="small-12 columns">Login</div>
      </div>
      <div class="row show-for-medium-up">
         <div class="small-12 columns">Search</div>
      </div>
   </div>
</div>

The top_header is split 3 vs. 9 for Logo vs. everything else (the nav_actions row and search bar row).

What you can try to do is re-divide the columns into 3-6-3 <div> blocks.

Or, make the nav_actions blocks float left instead of right:

  <div class="row" id="nav-actions">
     <div class="small-12 columns">
        <div class="{* was right *}left text-center">{include file='templates/box.basket.php'}</div>
        <div class="{* was right *}left text-center show-for-small"><a class="left-off-canvas-toggle button white tiny" href="#"><i class="fa fa-bars fa-2x"></i></a> <a class="button white tiny show-small-search" href="#"><i class="fa fa-search fa-2x"></i></a></div>
        {include file='templates/box.currency.php'}{* edited file to have class left *}
        {include file='templates/box.language.php'}{* edited file to have class left *}
        {include file='templates/box.session.php'}{* edited file to have class left *}
     </div>
  </div>

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...