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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:11:21+00:00 2026-06-11T21:11:21+00:00

Please take a look at this laytout which i built with divs : First

  • 0

Please take a look at this laytout which i built with divs:

enter image description here

First of all you can ignore Header section

So Content has to be centered exactly at the center and it has a fixed width which is easy, but Left Column needs to extend from left side until it reaches Content and here is the difficult part, since the gap betwen Left Column and Content can be any length it’s hard to know what width to set.

Now i know it would be fairly easy to do this with javascript but i would like to avoid that if possible.

EDIT as requested here is the code:

<div class="left_column"></div>
<div class="content"></div>

.left_column{
   width:100px;
   height:100px;
   float:left;
}

.content{
   width:100px;
   height:100px;
   margin:auto;
   position:relative;
}
  • 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-11T21:11:22+00:00Added an answer on June 11, 2026 at 9:11 pm

    tried percentages?

    overflow: auto;
     padding: 10px;
     width: 45%;
    

    try float left float right as well as display inline, you could also try width auto but that don’t work too well

    float:left;
     width:auto;
        height: auto;
        display: inline;
    

    there is also one more trick used in menus

        <div id="mail_menu">
         <ul>
         <li><a href=something</a></li>
        </ul>
    </div>
    

    css

    #mail_menu {
     position: relative;
     top: 0px;
     left: 0px; /* LTR */
     z-index: 3;
     color: #000;
    }
    #mail_menu ul {
     list-style-type: none;
    }
    #mail_menu li {
     display: inline;
     float:left;
     margin: 0px;
     padding: 3px;
    }
    #mail_menu a {
     color: #000;
     background: #FFF;
     text-decoration: none;
     font-family: Arial, Helvetica, sans-serif;
     font-size: 12px;
     font-weight: bold;
     margin: 1px;
     border-color:#CCC;
     border-width:1px 0;
     padding: 2px;
     float:left;
     border-width:1px;
      border-style:solid;
      border-bottom-color:#aaa;
      border-right-color:#aaa;
      border-top-color:#ddd;
      border-left-color:#ddd;
      border-radius:3px;
      -moz-border-radius:3px;
      -webkit-border-radius:3px;
    
    
    
    }
    #mail_menu a:hover {
     color: #0000DD;
     text-decoration: none;
     background-image: url(/images/lyel.png);
     background-repeat: repeat-x;
    }
    

    css to middle something

    .middle {
     display: block;
     width: 50em;
    
     margin-left: auto;
     margin-right: auto
    }
    

    and finally some table values for display to mess with

    .td {
    display: table-cell;
    display:inline
    }
    
    .wrap{
     position: inherit;
    }
    
    .tr {
    display: table-row;
    display:inline
    }
    
    table {
      border-collapse: collapse;
    }
    th {
      text-align: left; /* LTR */
      padding-right: 1em; /* LTR */
      border-bottom: 3px solid #ccc;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please take a look at this screenshot first: I would like to move the
can someone take a look at this please http://jsfiddle.net/bloodygeese/ecscY/56/ it looks like I have
Please take a look at this link: http://bethhaim.spin-demo.com/ I can't figure out why there
Please take a look at this fiddle: http://jsfiddle.net/KA85s/3/ JQ-UI sets first option as default.
Please take a look at this fiddle jsfiddle.net/Qstuw/2/ As you see from picture first
Please take a look at this fiddle: http://jsfiddle.net/hughbe/QYGcq/ As you can see, the label
Please take a look at this: http://jsfiddle.net/UQNJA/1/ It looks fine in all modern browsers
Please take a look at this navigation: http://beta.viewcms.info/mint/ And you can see the hover
Please take a look at this fiddle http://jsfiddle.net/Qstuw/7/ First answer is selected by default,
Please take a look at this example: #include <iostream> #include <vector> #include <string> using

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.