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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:28:13+00:00 2026-05-29T22:28:13+00:00

I have multiple questions. If I want an inline list to be a certain

  • 0

I have multiple questions. If I want an inline list to be a certain height/width is it better to use display:inline; and set the height and width to the <ul> element ? Or should I use float:left; and apply overflow:hidden; to the <ul> element? Also, is it better to apply the margin/padding the the <li> element or the <a> inside the list? Do you even need to if you reset the values? Will each occupy as much space as they can or will the last-child be longer to accommodate for excess space?

  • 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-29T22:28:14+00:00Added an answer on May 29, 2026 at 10:28 pm

    Your question is pretty theoretical.

    You probably need to explain more what you’re trying to do because there are benefits and drawbacks to what you’re talking about.

    For example, pure “inline” elements height or width will be ignored. You need to use a block-level element to do that, which includes floated blocks or “inline-block”.

    http://jsfiddle.net/3YU3y/3/

    And if you float, it might position itself differently than what you’re expected.

    If you’re looking to do a horizontal list vs an “inline list”, then there’s plenty of design patterns out there for that. Check out Dan Cederholms website for some real common HTML/CSS patterns:

    http://pea.rs

    Check out “lists” and “navigation” in particular.

    Hope that helps!

    Cheers!

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

Sidebar

Related Questions

I have a view that is outputting a list of questions(yesno and multiple choice).
I have a SVNSERVE server set up to host multiple repositories. Short question here
I have a table-valued, inline UDF. I want to filter the results of that
Using Hashtable I want to have multiple objects mapped to the same key. E.g.
I have a textfile that I am I want to make into a list.
I have a UserControl that I want to include in a page multiple times
So I know there have been multiple questions regarding Money and converting to and
NSAutoreleasePool .. should there be only one? Why would you want to have more
I have multiple views defined in my main view. I want to add single
I have asked in two earlier questions to place multiple markers from a XML

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.