Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8250889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:03:31+00:00 2026-06-08T00:03:31+00:00

http://mohrdevelopment.com As you can see, i have a problem with my navigation bar. The

  • 0

http://mohrdevelopment.com

As you can see, i have a problem with my navigation bar. The images are being cut off (stays on line with text), and i can’t figure out how to fix it.

            <ul class="navigation">
            <li class="navbar"><a href="index.html" class="navbarlink" ><em class="home"/><b>Home</b></a></li>
            <li class="navbar"><a href="second.html" class="navbarlink"><em class="photos"/><b>Photos</b></a></li>
            <li class="navbar"><a href="index.html" class="navbarlink"><em class="projects"/><b>Projects</b></a></li>
            <li class="navbar"><a href="index.html" class="navbarlink"><em class="about"/><b>About</b></a></li>
            <li class="navbar"><a href="index.html" class="navbarlink"><em class="contact"/><b>Contact</b></a></li>
        </ul>

CSS:

     .navigation {
        background:#1841c8 url(Navigation/Navigation/nav_background.png);
        height:40px;
        margin-bottom:0px;
        display:block;
    }

    .navbar {
        display:inline-block;
        line-height: 40px;
        margin-right:40px;
        }

    .navigation .navbar .navbarlink{
        color:#FFFFFF;
        padding: 11px 5px 11px;
    }

    .navigation .navbar .navbarlink b{
        padding-left:40px;
        padding-right:5px;
    }

    .navigation .navbar .navbarlink:hover{
        color:#00CCFF;
        background: url(Navigation/Navigation/nav_hover.png);
        text-decoration:none;
        padding: 11px 5px 11px;
    }



    /*Navigation bar icons*/
    .navigation .navbar .navbarlink em.home{
        background-image: url(Navigation/Icon_images/home.png);
        background-repeat: no-repeat;

    }

    .navigation .navbar .navbarlink em.photos{
        background-image: url(Navigation/Icon_images/Photo.png);
        background-repeat: no-repeat;
    }


    .navigation .navbar .navbarlink em.projects{
        background-image: url(Navigation/Icon_images/projects.png);
        background-repeat: no-repeat;
    }


    .navigation .navbar .navbarlink em.about{
        background-image: url(Navigation/Icon_images/about.png);
        background-repeat: no-repeat;
    }

    .navigation .navbar .navbarlink em.contact{
        background-image: url(Navigation/Icon_images/Contact.png);
        background-repeat: no-repeat;
    }

Would be happy if someone would help me troubleshoot it!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T00:03:33+00:00Added an answer on June 8, 2026 at 12:03 am

    You need to set the height of the tags that your images are in! Unfortunately, inline-elements don’t allow you to set their height, so you need to change the display property as well. For starters, you’ll want to add:

    .navigation .navbar .navbarlink em {
        height: 32px;
        display: inline-block;
    }
    

    You can actually remove all <b> tags from your code (you shouldn’t be using <b> anyway), and instead just add the padding into your em:

    .navigation .navbar .navbarlink em {
        font-weight: bold; /* emulate the <b> tag */
        height: 32px;
        padding: 0 5px 0 40px; /* padding: top right bottom left */
        display: inline-block;
    }
    

    There are a couple things that will make your life a little easier. You can vertically center the image in the navbar by adding vertical-align: middle:

    .navigation .navbar .navbarlink em {
        font-weight: bold;
        height: 32px;
        padding: 0 5px 0 40px;
        vertical-align: middle;
        display: inline-block;
    }
    

    And you can vertically-center the text by adding a background-position to the image. I also added some padding to the bottom to raise the text a little:

    .navigation .navbar .navbarlink em {
        background-position: 0 50%;
        font-weight: bold;
        height: 32px;
        padding: 0 5px 6px 40px;
        vertical-align: middle;
        display: inline-block;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

http://www.youtube.com/watch?v=gZNdfVwkttM - you can see all of the problem described on this video if
http://jqueryui.com/demos/accordion/ You can do $('#itename').accordion('activate', 0) to make an accordion closed but that'll change
http://jsperf.com/dfgdfg33355 I have table <table> <tr> <td> <div class=a></div> <div class=data></div> </td> </tr> </table>
http://jsperf.com/dfgdfg33355 I have table <table> <tr> <td> <div class=a></div> <div class=data></div> </td> </tr> </table>
http://jsperf.com/dfgdfg33355 I have table <table> <tr> <td> <div class=a></div> <div class=data></div> </td> </tr> </table>
http://jsperf.com/dfgdfg33355 I have table <table> <tr> <td> <div class=a></div> <div class=data></div> </td> </tr> </table>
http://msdn.microsoft.com/en-us/library/windows/apps/br205757.aspx shows the subset of Win32 / COM that can still be used in
@ http://tinyurl.com/6mjd2nj I have a site that was just moved to a new server
http://msdn.microsoft.com/en-us/library/system.resources.resxresourcewriter.aspx In this link and others like it, I see code to write in
http://docs.jquery.com/Plugins/autocomplete can autocomplete check words in the middle of the string. If i wite

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.