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 6171077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:09:08+00:00 2026-05-23T23:09:08+00:00

I would like to align the text and input in the LI to be

  • 0

I would like to align the text and input in the LI to be horizontaly aligned with the menu on the left. Here how it looks.

enter image description here

I need the newsletter to be align with the menu on the left.

CSS

#footer .div1{
    float:left;
}
#footer ul{
    list-style:none;
}
#footer li{
    float:left;
    padding-left:20px;
    font-size:18px;
}
#footer li:first-child{
    padding-left:0px;
}

HTML

<div id="footer">
  <div class="div1">
    <ul>
      <li><b>WE &hearts; TO NETWORK</b></li>
      <li>FACEBOOK</li>
      <li>BLOG</li>
      <li>CONTACT</li>
      <li>NEWSLETTER : <input type="text" name="email" id="emailNl" style="font-family:arial; width:200px; margin:0px; padding:0px;"/> <span id="submitNl" style="cursor:pointer">OK</span></li>
    </ul>
  </div>
  <div style="clear:both"></div>
</div>

Thanks

IMAGE UPDATED!

With padding and margin 0px it’s almost there but you can notice a slight difference. :S

UPDATE 2

By changing the float:left of my LI to display:inline-block, now the text is align but the input seems to be like padding-top 2px too much … I think i’ll tweak this to make it fit and see through each browsers.

  • 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-23T23:09:09+00:00Added an answer on May 23, 2026 at 11:09 pm

    try reset the padding and margin of the element and try vertical-align property – http://www.w3schools.com/cssref/pr_pos_vertical-align.asp

    although, I tested, they align just perfectly as it is. below is the preview from firefox

    li elements align with input element and text in html

    You can try

    #footer ul {
        list-style: none outside none;
        margin: 0;
        overflow: auto;
        padding: 0;
    }
    
    input[type=text]{
    padding:0;
    margin:0;
    }
    

    see if it works.

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

Sidebar

Related Questions

I would like to align the label of my search widget with the input
I would like to automatically align lines of python variable assignments in vim. For
I'm trying to make a small username and password input box. I would like
The 'required' text is showing up to the left of the input box. Similar
I would like to live update a DIV in the page with the text
I have a definition list and I would like the text description to stay
I am new to CSS and would like to draw a border around this:
I'd like to submit some text into this form using JSoup. How would I
Dear community members, I would like to position the text inside test in the
Would like to get a list of advantages and disadvantages of using Stored Procedures.

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.