2021-01-23, 07:30 PM
(This post was last modified: 2021-01-23, 07:32 PM by Lasse. Edited 2 times in total.)
Hello so im trying to add the following to my naviagtion
html code:
<div class="navigation">
<a href="{$mybb->settings['bburl']}/index.php"><span id="home_bit"><i class="fa fa-home"></i></span></a><span>{$nav}{$activesep}{$activebit}</span>
<a href="https//csgoboost.dk" style="background-image:url(https//spinx4k.dk/csgoboost.png); float: left;">CSGOBoost.dk</a>
</div>
CSS Code:
.navigation {
background: #FEFEFE;
color: #000;
padding: 17px 0px;
border-bottom: 3px solid #2980b9;
font-family: Open Sans;
font-size: 15px;
border-radius: 2px;
}
i want to add an image + button
but when i add the image to
.naviagtion (css file) it covers the whole nav and not only align on the left side
my question is how do i make it work?
See image attach for perspektive show
html code:
<div class="navigation">
<a href="{$mybb->settings['bburl']}/index.php"><span id="home_bit"><i class="fa fa-home"></i></span></a><span>{$nav}{$activesep}{$activebit}</span>
<a href="https//csgoboost.dk" style="background-image:url(https//spinx4k.dk/csgoboost.png); float: left;">CSGOBoost.dk</a>
</div>
CSS Code:
.navigation {
background: #FEFEFE;
color: #000;
padding: 17px 0px;
border-bottom: 3px solid #2980b9;
font-family: Open Sans;
font-size: 15px;
border-radius: 2px;
}
i want to add an image + button
but when i add the image to
.naviagtion (css file) it covers the whole nav and not only align on the left side
my question is how do i make it work?
See image attach for perspektive show