cripi

[w3css] Link in navbar brings linebreak

3 posts in this topic

Hello,

 

I have the problems that when i use a link in a w3css Navbar, the link is at the top of the bar.

What i have when i write everything in a single entry:

post-209350-0-77752600-1487615644_thumb.png

Code:

<div class="w3-bottom" style="margin-right: 20%">
        <ul class="w3-navbar w3-red">
            <li>
                Powered by
                <a href="https://www.w3schools.com/w3css/" title="w3css">
                    w3css
                </a>
                and
                <a href="http://fontawesome.io" title="fontawesome">
                    fontawesome
                </a>
            </li>
        </ul>
    </div>

What i have when i write it in single entrys:

post-209350-0-90725500-1487615550_thumb.png

Code:

<div class="w3-bottom" style="margin-right: 20%">
        <ul class="w3-navbar w3-red">
            <li>
                Powered by
                <a href="https://www.w3schools.com/w3css/" title="w3css">
                    w3css
                </a>
                and
                <a href="http://fontawesome.io" title="fontawesome">
                    fontawesome
                </a>
            </li>
        </ul>
    </div>

What i will have:

post-209350-0-72773100-1487615846_thumb.png

 

I hop you can help me :)

//Cripi

post-209350-0-90725500-1487615550_thumb.png

post-209350-0-77752600-1487615644_thumb.png

Share this post


Link to post
Share on other sites

You can add some CSS to display links inside the menu as inline. W3.CSS has it set to block by default since most people just want a list of links.

Share this post


Link to post
Share on other sites

Hey,

 

Thanks for your fast answer but i have a singe "problem". With my English i cannot undersandt what you wrote :|

Do you might have a code example?

Thanks :)

 

//Cripi

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now