I have used CSS3 code for circle navigation, its working fine for single level menu but i need sub menu navigation, Please check my jsfiddlel
<div id="Cmenu_wrap_left"><input type="checkbox" id="Cmenu_menu_left"><div id="Cmenu_circle"><i class="fa fa-clock-o"></i><i class="fa fa-plus-circle" ></i><i class="fa fa-pie-chart"></i><i class="fa fa-cog"></i><i class="fa fa-picture-o"></i><i class="fa fa-map-marker"></i><i class="fa fa-plus-circle" ></i></div>
Related
I have the following movie element:
And this is the corresponding HTML:
<div class="bottom d-flex">
<div class="video-controls time-segment p-2">
<button class="btn-control btn-"><span class="fa fa-undo"></span></button>
<button class="btn-control btn-step-backward"><span
class="fa fa-step-backward"></span></button>
<button *ngIf="!widget.moviePlaying" class="btn-control btn-play" (click)="playPauseMovie(widget)"><span class="fa fa-play"></span></button>
<button *ngIf="widget.moviePlaying" class="btn-control btn-pause" (click)="playPauseMovie(widget)"><span class="fa fa-pause"></span></button>
<button class="btn-control btn-step-forward"><span
class="fa fa-step-forward"></span></button>
<button class="btn-control btn-reset" hidden><span class="fa fa-undo"></span></button>
</div>
<div id="frames-indicator">
<span id="seekBarLabel">Frame {{ moviesFrames.current }}/{{ moviesFrames.total }}</span>
</div>
<div class="widget-controls ml-auto">
<button class="btn-control btn-play" (click)="setSize(widget, 1, $event, gridster1)"><span
class="fa fa-clone"></span></button>
<button *ngIf="!widget.linked" class="btn-control btn-" (click)="toggleLinked(widget)"><span
class="fa fa-chain-broken"></span></button>
<button *ngIf="widget.linked" class="btn-control btn-step-backward" (click)="toggleLinked(widget)"><span class="fa fa-link"></span></button>
<button class="btn-control btn-play" (click)="setSize(widget, -1, $event, gridster1)"><span
class="fa fa-minus"></span></button>
<button class="btn-control btn-play" (click)="setSize(widget, 1, $event, gridster1)"><span
class="fa fa-plus"></span></button>
</div>
</div>
As you can see:
div container has class="bottom d-flex"
div 1 has class class="video-controls time-segment p-2" and host buttons
div 2 just contain a span element
div 3 is right aligned and host buttons
I want div 1 and 3 to 'expand their width to display all buttons inline. I have tried width: max-content with no luck.
Any idea in how to achieve my goal?
SOLUTION
Thank you to everyone for trying to help. In the end I did not need to manipulate the CSS. The media breakpoint settings were wrong. I was generated the same number of movies per line in medium and large screens. On Medium screens the movies were too narrow causing the icons to stack vertically.
Posting my own solution in case might help someone.
Thank you to everyone for trying to help. In the end I did not need to manipulate the CSS. The media breakpoint settings were wrong. I was generated the same number of movies per line in medium and large screens. On Medium screens the movies were too narrow causing the icons to stack vertically.
At first, this question shouldn't be that hard, but I don't know how to solve it.
I'm experimenting with Font-Awesome and everything works fine, except that it won't display just one icon.
Inside the Hml-Editor (Atom):
<body>
<div class="list">
<i class="fa fa-fw fa-home"</i><span>test</span>
</div><!--list-->
</body>
Inside the Browser:
<body>
<div class="list">
<i class="fa fa-fw fa-home" <="" i=""><span>test</span></i><i class="fa fa-fw fa-home" <="" i="">
</i></div><!--list--><i class="fa fa-fw fa-home" <="" i="">
</i>
</body>
Why's there more code in the Browser?
the code is saved with the Atom-Editor and this appears also in a freshly opened Chrome-window (same with Firefox)
Is this even a Browser problem?
After all this seems awkward but thanks for your help.
Your HTML is invalid, the opening i element never gets closed.
Try this:
<body>
<div class="list">
<i class="fa fa-fw fa-home"></i><span>test</span>
</div><!--list-->
</body>
Consider installing htmlhint to get notified about invalid HTML.
in website http://fontawesome.io/icons/ there is bar-chart and bar-chart-o (alias) icons
but when when click to see description its go to same page url so what is difference.
<i class="fa fa-bar-chart" aria-hidden="true"></i> //same html
thanks
There is no difference, it is simply an alias! See the following example using both CSS classes:
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css" rel="stylesheet"/>
<i class="fa fa-bar-chart" aria-hidden="true"></i>
<i class="fa fa-bar-chart-o" aria-hidden="true"></i>
I am displaying font awesome icons in row. when I click an icon it takes an action. and also I was trying to seelct an icon then it should show the option,when I click the option it should take an action.
Here is my code.
<div class="iconsInfo">
<div>
<div ng-if="isReply()" ng-click="replyMessage()" class="iconRow" title="Reply">
<i class="fa fa-reply"></i>
</div>
<div ng-if="isReplyAll()"ng-click="replyAll()" class="iconRow" title="Reply All">
<i class="fa fa-reply-all"></i>
</div>
<div ng-if="isForward()" ng-click="forwardMessage()" class="iconRow" title="Forward">
<i class="fa fa-reply fa-flip-horizontal"></i>
</div>
<div ng-if="!isDeleted()" ng-click="deleteMessage()" class="iconRow" title="Delete Message">
<i class="fa fa-trash"></i>
</div>
<div ng-show="canMoveToFolder()" class="iconRow">
<i class="fa fa-folder-o"> </i>
</div>
Here when I click on reply icon it calls replyMessage .when I click on folder icon it should show the options like sentToFolder1,sentToFolder2,when I click senttoFolder1 it calls an action. how to achieve this using fontawesome icons.
Using a button over a div would be a solution:
<button ng-if="isReply()" ng-click="replyMessage()" class="iconRow" title="Reply">
<i class="fa fa-reply"></i>
</button>
You may need to change your iconRow class a bit, depending on what it is. Based on the name, I imagine perhaps the wrapper would be a good place for the iconRow styling.
I have this button:
<button type="button" style="margin-bottom: 5px;" class="btn btn-danger btn-default btn-gray btn-primary btn-primary2 btn-success2 btn-warning btn-black btn-success btn_bottom_padding" data-toggle="modal" data-target="#myModal" data-bind="css: {'btn-gray': IsGray(), 'btn-danger': IsRed(),'btn-success':IsGreen(), 'btn-primary': IsBlue(),'btn-success2':IsLimegreen(), 'btn-primary2': IsSkyblue(),'btn-warning':IsOrange(),'btn-black': IsBlack(),'btn-default':IsWhite()},click:$root.GetClick">
<span data-bind="text:ShortName()"></span>
<span data-bind="visible: IsRed()" class="fa fa-exclamation-triangle"></span>
#*<span data-bind="" class="fa fa-bolt"></span>*#
</button>
The thing is I wanted to add multiple icons to it like:
I only managed to add the exclamation triangle icon, but if I tried to add another one neither the first one would not appear. Is there any way that I can add all those four icons like in the attached button image?
Just add them in separate spans: Example
<span class="fa fa-exclamation-triangle"></span>
<span class="fa fa-bar-chart"></span>
<br>
<span class="fa fa-bolt"></span>
<span class="fa fa-ban"></span>