Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make sidebar always visible in the Semantic UI

How to make sidebar always visible in the Semantic UI? Simply adding the "active" css class works, but messes up page layout.

There is a working example on jsFiddle.

like image 294
emix Avatar asked Jan 22 '14 20:01

emix


2 Answers

This has been officially fixed.

<div class="ui vertical inverted left visible sidebar menu"> 
  <a class="item">
    <i class="home icon"></i>
    Home
  </a>
  <a class="item">
    <i class="block layout icon"></i>
    Topics
  </a>
</div>
<div class="pusher">This is some content.</div>
like image 72
Jan Avatar answered Nov 19 '22 14:11

Jan


This issue is officially fixed since 2015 so the definite answer can be found below.

Just for reference… in 2014 I had to do following things to make this work:

  1. add active css class to the sidebar
  2. add html code:

    <div class="segment">
        <div class="container" style="margin:1.5em 1.5em 1.5em 325px">
            <!-- content here -->
        </div>
    </div>
    
like image 3
emix Avatar answered Nov 19 '22 16:11

emix