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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:33:33+00:00 2026-06-14T06:33:33+00:00

I have a layout which consists of menu on left and main content in

  • 0

I have a layout which consists of menu on left and main content in the next div. What is happening however, is that the content div doesn’t appear to be positioning correctly. It is halfway down the menu instead of correctly aligned at the top. As a novice to css I would be grateful if someone could point out my error. Please excuse the inline style, but this is just for learning. I posted original code at fiddle but when I submitted my question, message stated to supply inline code. Thanks

UPDATE: Added Image.

<script type="text/javascript">
    $(function() {
        $( "#menu" ).menu();
    });
    </script>

    <script type="text/javascript">
    $(function() {
        $( "#menuevents" ).menu();
    });
    </script>



<ul id="menuevents" style="width:20%;margin-top:5px;float:left;height:auto !important;">
          <div style="padding:255px 0 5px 3px;color:blue;float:left;clear:both;"></div>

        <li><a href="#">Inbox</a></li>
        <li><a href="#">Sent Items</a></li>
        <li><a href="#">Junk Email</a></li>
        <li><a href="#">Deleted Items</a></li>
        <li class="ui-state-disabled"><a href="#">Drafts</a></li>

        <li>
            <a href="#">Delphi</a>
            <ul>
                <li class="ui-state-disabled"><a href="#">Ada</a></li>
                <li><a href="#">Saarland</a></li>
                <li><a href="#">Salzburg</a></li>
            </ul>
        </li>

        <li><a href="#">Saarland</a></li>
        <li>
            <a href="#">Salzburg</a>
            <ul>
                <li>
                    <a href="#">Delphi</a>
                    <ul>
                        <li><a href="#">Ada</a></li>
                        <li><a href="#">Saarland</a></li>
                        <li><a href="#">Salzburg</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#">Delphi</a>
                    <ul>
                        <li><a href="#">Ada</a></li>
                        <li><a href="#">Saarland</a></li>
                        <li><a href="#">Salzburg</a></li>
                    </ul>
                </li>
                <li><a href="#">Perch</a></li>
            </ul>
        </li>
        <li class="ui-state-disabled"><a href="#">Amesville</a></li>

    </ul>

    <ul id="menu" style="width:20%;margin-top:15px;float:left;clear:both;height:auto !important;">


        <li><a href="#">Inbox</a></li>
        <li><a href="#">Sent Items</a></li>
        <li><a href="#">Junk Email</a></li>
        <li><a href="#">Deleted Items</a></li>
        <li class="ui-state-disabled"><a href="#">Drafts</a></li>

        <li>
            <a href="#">Delphi</a>
            <ul>
                <li class="ui-state-disabled"><a href="#">Ada</a></li>
                <li><a href="#">Saarland</a></li>
                <li><a href="#">Salzburg</a></li>
            </ul>
        </li>

        <li><a href="#">Saarland</a></li>
        <li>
            <a href="#">Salzburg</a>
            <ul>
                <li>
                    <a href="#">Delphi</a>
                    <ul>
                        <li><a href="#">Ada</a></li>
                        <li><a href="#">Saarland</a></li>
                        <li><a href="#">Salzburg</a></li>
                    </ul>
                </li>
                <li>
                    <a href="#">Delphi</a>
                    <ul>
                        <li><a href="#">Ada</a></li>
                        <li><a href="#">Saarland</a></li>
                        <li><a href="#">Salzburg</a></li>
                    </ul>
                </li>
                <li><a href="#">Perch</a></li>
            </ul>
        </li>
        <li class="ui-state-disabled"><a href="#">Amesville</a></li>

    </ul>

    <div style="padding-left:1%;float:left;clear:inherit;">&nbsp;</div>

        <div id="main" style="width:25%;border-left:thin solid #cccccc;border-right:thin solid #cccccc;padding:0 0 0 2%;height:500px;float:left;overflow:auto;">
          <br />

          <table id="customers">
            <form <form name="search" action="" method="POST" enctype="application/x-www-form-urlencoded">
            <input type="text" id="mailsearch" name="mailsearch" value="Search" size="40" maxlength="40"  min="" max="" accept=""/>

            </form>
            <br /><br />

    </table>  

        </div>

enter image description here

http://jsfiddle.net/jHRgc/7/

  • 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-06-14T06:33:35+00:00Added an answer on June 14, 2026 at 6:33 am

    Remove the float from your #main div. The menus alone could float, living the content to position itself accordingly.

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

Sidebar

Related Questions

I have created a Layout using ExtJs. It consists of a left menu and
I have a partial view which consists of a div with a benner that
I have a linear layout which consists of imageview and textview , one below
I have a Layout to which i dynamically add rows to. Each row consists
I have a div, which consists of words with different styles applied to text
I was making a layout that horizontally displays a checkbox, twolinelistitem which vertically consists
I have a layout which consists of an ImageView and a TextView . I
I have a refresh menu item in the action bar and my main layout
I have a layout which looks like this: <LinearLayout> <ImageView> android:width=wrap_content android:height:wrap_content ... </ImageView>
I have a layout which I am inflating in order to dynamically add TableRows

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.