Blasteh
Lord Farquaad
Hi,
I'm currently trying to figure something out. I want to know if there is an easier way of doing what I'm trying to accomplish.
So basically, it's a sidebar with a FA Icon, then the name of the page (menu).
For the first two, I did this:
As you can see, I added a style to them, spacing them out so it makes them aligned. If they're both set to 10px - then they will not be aligned with each other.
Which is fine, because there is only two of them so it's not much editing. But, it's going to get more difficult (annoying) if you add more. For the third one, I did this:
As you can see, it's not spaced out (which I know) but it's hard to tell if they're all aligned with each other. I was wondering if someone could show me an easier way to align them all within the CSS file itself.
Thanks.
I'm currently trying to figure something out. I want to know if there is an easier way of doing what I'm trying to accomplish.
So basically, it's a sidebar with a FA Icon, then the name of the page (menu).
You must be registered for see images attach
For the first two, I did this:
HTML:
<a href="/" class="sidebar__nav__item sidebar__nav__item--active">
<i class="fa fa-tachometer fa-lg" style="padding-right: 10px;"></i>
Dashboard
</a>
<a href="./statistics" class="sidebar__nav__item ">
<i class="fa fa-line-chart fa-lg" style="padding-right: 7px;"></i>
Statistics
</a>
Which is fine, because there is only two of them so it's not much editing. But, it's going to get more difficult (annoying) if you add more. For the third one, I did this:
HTML:
<a href="./general/" class="sidebar__nav__item ">
<i class="fa fa-folder fa-lg"></i>
General
</a>
Thanks.