javascript - semantic popup list width is too small -
i working semantic ui , got stuck notification menu implementation in menu bar.
i able setup popup list getting small list item squeezed vertically , need them horizontally relaxed .
below html working .
<div class="ui fixed stackable menu"> <a class="item" href="index.php"> <img src="logo.png" class="image"></a> <a class="item">my project</a> <div class="right menu"> <div class="item"> <i class="bell outline icon"></i> <div class="ui teal circular mini label">4</div> <div class="ui wide notification popup bottom transition "> <div class="ui link celled selection list"> <div class='item'> <div class='content'> <a class='header'>millan kumar</a> <span class='time'>2 hrs ago</span> <div class='description'>commented on <a><b>your post </b></a> <a><b>following content</b></a></div> <div class='extra'>thanks support</div> </div> </div> </div> </div> </div> <a class="item" href="profile.php">profile</a> <a class="item" href="logout.php">logout</a> </div> </div>
javascript:
$('.teal.label') .popup({ on: 'click' });
js fiddle : https://jsfiddle.net/jfk4wkb1/2/
i have tried putting things on js fiddle , in there popup not coming , on local environment popup ok vertically squeezed.
like this: fiddle link
you did not add jquery in fiddle external resource . add padding , width looks .
<div class="ui link celled selection list" style ="padding: 20px;width: 300px;">
html:
<div class="ui fixed stackable menu"> <a class="item" href="index.php"> <img src="logo.png" class="image"></a> <a class="item">my project</a> <div class="right menu"> <div class="item"> <i class="bell outline icon"></i> <div class="ui teal circular mini label">4</div> <div class="ui wide notification popup bottom right transition "> <div class="ui link celled selection list" style ="padding: 20px;width: 300px;"> <div class='item'> <div class='content'> <a class='header'>millan kumar</a> <span class='time'>2 hrs ago</span> <div class='description'>commented on <a><b>your post </b></a> <a><b>following content</b></a></div> <div class='extra'>thanks support</div> </div> </div> </div> </div> </div>
js:
$('.teal.label') .popup({ on: 'click' });
Comments
Post a Comment