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

  • SEARCH
  • Home
  • 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 7672163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:13:22+00:00 2026-05-31T16:13:22+00:00

I am pretty new at CSS but have been learning, doing my moms small

  • 0

I am pretty new at CSS but have been learning, doing my moms small business website to save her money but I’m having a little CSS trouble with my nav bar.
Basically if you go here: http://area25dallas.com/s and look at the nav bar, I’m having trouble with the il listing to have the images line up vertically (instead of aligning with the top which is what they currently do) with the text, also for some reason the images are going on top of each other instead of sitting next to each other (I don’t want them in separate lists like the text links because the margins are too spread out).

I have been playing around with the CSS and also googled the hell out of this but still haven’t found a solution. Is there any quick fix to this?

Thanks!

EDIT:
Here is the HTML and CSS blips though if you are using chrome I feel just inspecting the elements are the easiest way to see what’s going on

<div id = "header">
  <div class = "container">
   <a href = "index.htm" id = "logo"></a>
<ul id = "main-menu">
<li class = "active"><a href = "">home</a></li>
<li><a href = "">about</a></li>
<li><a href = "">gallery</a></li>
<li><a href = "">press</a></li>
<li><a href = "">contact</a></li>
<li><a href = ""><img src="images/twitter_newbird_boxed_ white.png" /></a>
<a href = ""><img src="images/Pinterest_Favicon white.png" /></a></li> 

</ul>

   </div>
</div> 

and the CSS

#main-menu
{
float: right;
position:relative;
top:122px;
right:150px;
}
#main-menu li
{
float: left;
margin: 30px 12px 15px 12px;
padding:0;
height:23px;
list-style:none;
line-height:20px;
}

#main-menu li:hover, #main-menu li.active { background-position: 0 -23px;}
#main-menu li:hover a, #main-menu li.active a{
background-position: 100% -30px;
}
#main-menu li a
{
display:block;
padding:0px 15px 5px 10px;
font-size:17px;
color:#fff;
text-decoration:none;
}
  • 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-05-31T16:13:23+00:00Added an answer on May 31, 2026 at 4:13 pm

    The images are broken onto multiple lines because they reside inside an <a> tag which has been styled as a block level element. Change the style to something like:

    #main-menu {
        float: right;
        position: relative;
        right: 75px; /* Changed */
        top: 122px;
    }
    
    #main-menu li a {
        color: #fff;
        display: inline-block; /* Changed */
        font-size: 17px;
        padding: 0 15px 5px 10px;
        text-decoration: none;
    }
    
    /* New */
    #main-menu li a img {
        position: relative;
        top: -10px;
    }
    

    The new rule at the bottom moves the images up a little bit. You can play around with your css and get the same results in a lot of different ways – I went with a method that didn’t involve many changes to the existing work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am pretty new to php, but I am learning! I have a simple
I'm pretty new to CSS but I'm hoping this is just something obvious I'm
I'm pretty new to web design and have recently been working on an amatuer
I'm pretty new to wordpress (only a couple of days), but I have it
I'm pretty new to Jquery and i want to have a hidden div css:
I am pretty new to css + html and am coding my first website.
Im pretty new to Java Web Services, but I cant find a good explanation
I'm pretty new to regular expressions. I have a requirement to replace spaces in
i have been working on a new .net MVC site and have integrated some
I'm a novice, but not entirely new to CSS and coding. Over the last

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.