Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to inline the align logo and navigation horizontally?

  • This topic is empty.
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #186070
    web_editor
    Participant

    How to inline the logo and navigation horizontally? But the responsive design of the logo and nav will not lose.

    Like this..

    Here the CSS of nav

    CSS of logo

     #masthead .site-branding{ 
        float: left; 
        padding: 15px 0;
        }
        #masthead .site-branding img{
        height: auto !important;
        width: auto !important;
        display: block;
        }
    #186085
    Paulie_D
    Member

    Perhaps you could show us your issue in a Codepen.io demo?

    #186100
    web_editor
    Participant

    @Paulie_D Here’s the codepen

    I want to inline the navigation next to logo. See the link above of the sample photo (my desired output)

    #186168
    web_editor
    Participant

    @Atelierbram absolutely yes, if I apply your suggestion? the responsive for smaller screens will not affect? But I edit the html of logo, right header and nav

    Like this

    <div class="ak-container">
      <div class="site-branding">existing code</div>
      <div class="right-header clearfix">existing code</div>
      <nav id="site-navigation" class="main-navigation menu-right">existing code</nav>
    </div>

    And then I apply your suggestion, now the nav is missing. Here’s the codeopen

    #186172
    web_editor
    Participant

    @Atelierbram what css line? Under of main-navigation? I edit, but nothings happen. Could you give the codeopen?

    #186173
    Atelierbram
    Participant

    @web_editor line 44

    #186174
    web_editor
    Participant

    @Atelierbram line 44?

    #masthead .right-header{
      float: right;
      padding: 10px 0;

    here?

    #186176
    web_editor
    Participant

    I see @Atelierbram I delete now the clone top-header. And the nav is now displaying. But the logo is now duplicate. How to remove the extra logo above?

    Codeopen

    #186257
    web_editor
    Participant

    @Atelierbram i removed now. But how can I freeze or sticky the logo and navigation?

    #186270
    Paulie_D
    Member
    #240885
    dizonfarrel
    Participant

    You can always set the value and assign the attributes you want for your logo in the CSS field, simple needs you time and effort aligning it until you get your desired value to use. In any case, someone here have the same problem and needs some expert help, they can just check this tips at http://eatmywords.com/tips/is-your-name-lame/ for references.

    #240887
    Shikkediel
    Participant

    someone here have the same problem

    No they don’t, stop spamming.

Viewing 12 posts - 1 through 12 (of 12 total)
  • The forum ‘CSS’ is closed to new topics and replies.