Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to align Label to the right side of header in SemanticUI

I want to have a Menu header item, with counter in a label located on the right side of the header. Currently I have

| Projects [label]      | 

instead of

| Projects       [label]|

Here is my code:

<div className="header">
   Projects
   <div className="ui label floated left pointing" id="projectsMenuCounter"><div className="ui active mini inline loader inverted"></div></div>
</div>
like image 207
Kokesh Avatar asked Nov 22 '25 07:11

Kokesh


1 Answers

Try this

<div className="header">
   Projects
   <div  style="float:right;" className="ui label floated left pointing" id="projectsMenuCounter"><div className="ui active mini inline loader inverted">[label]</div></div>
</div>

Or

.floated {
  float:right;
}
like image 138
PHPExpert Avatar answered Nov 24 '25 23:11

PHPExpert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!