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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:53:27+00:00 2026-05-15T22:53:27+00:00

i am experimenting with html and css and trying to figure out how to

  • 0

i am experimenting with html and css and trying to figure out how to make this work… I am just trying to make the #menu float to the right of the h1 but be on the same baseline so… but obviously float:right makes it float to top-right? any way to make it float to bottom-right or align with the bottom of the containing div?

here is the html:

<!doctype html>
<html>
    <head>
        <title>Website.com</title>
        <link rel="Stylesheet" href="style.css" type="text/css" />
    </head>
    <body>
        <div>
            <h1><a href="#" title="Website.com">Website.com</a></h1>
            <div id="menu">
                <ul>
                    <li><a href="#" title="Home">Home</a></li>
                    <li><a href="#" title="Link1 Description">Link1</a></li>
                    <li><a href="#" title="Link2 Description">Link2</a></li>
                    <li><a href="#" title="Link3 Description">Link3</a></li>
                    <li><a href="#" title="About Website.com">About</a></li>
                </ul>
            </div>
        </div>
        <hr />
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur mattis elit et augue pellentesque fermentum semper urna interdum. Nullam egestas augue ut risus molestie mollis ut sed dolor. Curabitur fermentum, lorem sed suscipit euismod, diam urna vulputate sapien, ac venenatis velit eros sed leo. Duis venenatis, metus at scelerisque fringilla, neque arcu dignissim arcu, quis sodales lorem mauris eget tellus. Phasellus fermentum est eget erat pretium mollis. Cras eu nunc dui, sed fermentum libero. Vivamus posuere pellentesque tellus in interdum. Vestibulum eleifend fringilla enim, in vehicula justo tristique a. Aenean congue vestibulum iaculis. Sed tristique interdum lectus, vel aliquam nisi fringilla ac. Mauris ligula nisl, gravida id consequat in, vestibulum at risus. Vivamus vitae massa lorem, vel molestie tellus. Nulla et magna orci. Nunc turpis ipsum, facilisis eget tristique sit amet, scelerisque quis ligula. Mauris in molestie purus. Cras eget magna vel enim imperdiet aliquam.</p>
        <p>Vestibulum vel eros lacus, vel viverra magna. Duis mollis nibh ut erat accumsan ut pulvinar ipsum dapibus. Aliquam vehicula tempus fermentum. Morbi ut turpis sem, pretium sodales libero. Vestibulum dapibus, ligula in molestie scelerisque, lacus est aliquam elit, ut vulputate sapien nisl vitae elit. Cras pulvinar mi nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin in est orci. Ut rutrum lobortis quam vitae commodo. Maecenas dapibus aliquam ante eget mattis. Proin justo eros, bibendum quis scelerisque eget, fermentum eu purus. Vivamus viverra ligula a dolor iaculis ullamcorper. Aliquam erat volutpat. Nunc libero nulla, sodales at dictum vel, tempus quis est.</p>
        <p>Nullam pharetra tincidunt lectus ac sollicitudin. Duis in venenatis eros. Phasellus malesuada quam vel sapien ultricies tincidunt. Duis condimentum posuere semper. Vivamus eleifend libero eget ligula egestas adipiscing. Proin dapibus leo non urna pellentesque convallis. Suspendisse massa leo, semper vitae tincidunt at, mattis et sapien. Maecenas consequat hendrerit odio et feugiat. Sed dignissim massa a leo sollicitudin imperdiet consequat purus vehicula. Mauris sit amet nulla a turpis porta accumsan. Morbi interdum pellentesque massa, vel accumsan massa aliquam quis. Sed sed ligula neque. In hac habitasse platea dictumst. Curabitur vehicula scelerisque ligula non tincidunt.</p>
        <hr />
        <p id="footer">Use of this site constitutes acceptance of our <a href="#">User Agreement</a> and <a href="#">Privacy Policy</a>. &copy; 2010 Website.com. All rights reserved.</p>
    </body>
</html>

and here is the css:

body
{
    font-family: verdana, sans-serif;
    min-width: 800px;
}

h1
{
    display: inline;
    font-variant: small-caps
}

h1 a
{
    color: #090;
    text-decoration: none;
}

h1 a:hover
{
    color: #0A0;
}

#menu
{
    float: right;
    display: inline;
    margin: 0;
    padding: 0;
    font-variant: small-caps;
}

#menu ul
{
    margin: 0;
    padding-left: 0;
    float: left;
    font-weight: bold;
}

#menu ul li
{
    float: left;
    display: inline;
}

#menu ul li a
{
    color: #090;
    background-color: #F3F3F3;
    padding: 2px 6px 4px 6px;
    text-decoration: none;
}

#menu ul li a:hover
{
    font-weight: bolder;
    color: #0A0;
    background-color: #F3F3F3;
    border-bottom: 4px solid #0A0;
    padding-bottom: 0;
}

#footer
{
    text-align: center;
    font-size: x-small;
}

here is what is looks like now: Website.com

thanks for help!

  • 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-15T22:53:27+00:00Added an answer on May 15, 2026 at 10:53 pm

    I haven’t looked into this much, but if you set the containing div’s position: relative, you can just make the ul position: absolute; bottom: 0; right: 0 and it should go where you want it.

    Example:

    div {position: relative}
    ul {position: absolute; bottom: 0; right: 0}
    li {float: left; list-style: none}
    

    —

    <div>
        <h1>Header</h1>
        <ul>
            <li>One</li>
            <li>Two</li>
            <li>Etc...</li>
        </ul>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a systems programmer, so i just know some basic css/html. I like
I'm experimenting on this code that I got from the net (I'm trying to
While experimenting with this question on collections in Spring.NET , I discovered that Spring
I'm experimenting with Linq and am having trouble figuring out grouping. I've gone through
If I have a HTML element <header> and apply some margins to this HTML5
Just asking if there is a way to style a cascade list like this:
I have the following HTML. <ul> <li> <a>asdas</a> </li> </ul> In my CSS stylesheet
how can i make this.... goto this link and see the text sliding after
I'm experiencing a strange CSS spacing issue in Chrome (but not in Firefox and/or
I have been experimenting with woopra.com A web analytics tool. Which requires a piece

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.