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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:02:47+00:00 2026-05-27T23:02:47+00:00

I am not a professional web-developer but I am designing one to help out

  • 0

I am not a professional web-developer but I am designing one to help out a no-profit organization.
I spent a couple of days searching the web for instructions and explanations on css, float, position, etc. Finally I managed to design the layout I wanted with the behaviour I wanted but there is still something that is not working/I do not understand.
Please, see the page at: “http://www.missione-berna.ch/index2.php” and its source; I put all the code in it to make it accessible (at the end stiles, scripts, menu and header will be in separate files included eventually via php).
How come that my “Menu” div is neither the size of its content nor the size of the neighbour “Contenuto” div?
I understood that it is not an easy task to have the height of two div column match, but where is this “mid-way” size coming from?
Any help appreciated, thansk in advance.

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

    First of all, position: absolute can be a Very Bad Thing. Avoid it unless trying to take elements out of the flow of the page (having one element appear on top of another).

    Second, height: 100% does not do what, intuitively, you’d think it does. You’re setting the height of the menu div to 100% of the viewport’s height (your browser window), not 100% of the entire page.

    Since your menu has a simple background, there’s a neat trick you can use to make it appear to be the same height. CSSDesk

    I’ve added a wrapper div around your menu and content. Relevant bits of HTML:

    <body>
    <div id="Fascione">
        <img id="FotoAngolare" alt="ChiesaEsterno" src="images/esterno.jpg" width="195" height="122">
        <div id="Impressum">
            <span class="Intestazione">Missione Cattolica Italiana</span><br>
            <span class="Titolo">Chiesa "Madonna degli Emigrati"</span><br>
            <span class="Testo">Bovetstrasse 1 - 3007 Bern<br>Tel. 031 371 0243 / Fax. 031 372 1656</span><br>
            <a class="Email" href="mailto:missione.berna@bluewin.ch">missione.berna@bluewin.ch</a>
        </div>
    </div>
    <div id="wrap">
    <div id="Menu">
        <a href="top"></a>
        <ul id="MenuList" class="Testo"></ul>
    <div id="Contenuto">
    <p></p>
    </div>
    </div>
    </body>
    

    And styled it like so:

    #wrap { background: #e8e8e8; }
    #Menu {float:left; width:195px; }
    #Contenuto { background: #fff; border-left: 2px solid black; margin-left: 196px; min-width:829px; padding: 1px 1px 1px 15px; }
    

    So the entire thing has a gray background. Your menu is floated left (over the gray background). The contentuo div has a left margin of 192px to “clear” the menu, and has a white background to hide the gray. The wrapper and content divs, and thus the gray/white backgrounds, will expand to the size of your content.

    A couple tips:

    1. Be careful with height: 100%.
    2. float: left or float: right
      inherently set display: block. You can’t set display: inline on
      floated elements.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am not a professional web developer but I love web development as a
I am not a professional web developer, but I like to wrench on websites
I am not a professional web developer, however I dabbled in php in high
First, let me say I'm not a professional programmer, but an engineer who had
According to Professional Javascript for Web developers array is not a datatype in Javascript:
I have used sql (mostly mysql) for years but not to a professional standard,
I am not professional programmer so i can not be sure about this.How many
I'm currently developing for a handheld device running Windows XP Professional (not Tablet PC
I'm talking about VS 2010 Professional/Ultimate RTM (not express versions). Google doesn't show much
I have searched around a bit, and have not really found a professional type

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.