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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:55:30+00:00 2026-05-31T08:55:30+00:00

I haven’t developed much in HTML/CSS in some time and was looking at some

  • 0

I haven’t developed much in HTML/CSS in some time and was looking at some old code and came across the following:
CSS:

#menu{
float: right;
height: 80%;
vertical-align: bottom;
}

.filler{
float: right;
height: 50%;
}

p.clear{clear: both; height: 0; margin: 0; padding: 0;}

HTML:

<div class="filler">
    <p class="clear"></p>
</div>
<div id="menu">
    <p class="clear"></p>
</div>

These div classes are nested inside a banner div and lie in the top right corner of the screen. Without the <div class="filler"> the menu div no longer lies within the banner div, nor at the top right of the screen. What is going on? I want to design a webpage with as little nested divs as possible. Is there a way to accomplish this same functionality without having a div that contains nothing but height?

  • 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-31T08:55:31+00:00Added an answer on May 31, 2026 at 8:55 am

    I think the old trick here is on the p.clear having 0 height. I kinda see whats going on tho you’re excluding alot of variables. Anyway. If you want a prematop right menu you could try something like :

    #menu{
        position: fixed;
        top: 1em;
        right: 1em;
    }​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Haven't done ASP.NET development since VS 2003, so I'd like to save some time
Haven't been programming in JS for a while. Now, I have following thing: <html>
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I haven't done a lot of work with multi-level, pure CSS drop-down menus before,
I haven't worked with SQL Reporting much, however I have been trying to get
Haven't found what i'm looking for so far. I want to redirect all my
I have this code to decode numeric html entities to the UTF8 equivalent character.
Haven't done as much of Javascript as I should have done. I am trying
haven't used regex replaces much and am not sure if how I have done
I haven't been able to find what these Xcode icons mean. Some you can

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.