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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:22:56+00:00 2026-06-08T20:22:56+00:00

I am having an issue with a design using table layout. So I am

  • 0

I am having an issue with a design using table layout. So I am using 2 asides for the side navigation and a centered main section content (which is all wrapped in a section wrapper)
My text in the section wrapper has some white spacing at the top. It is due to the float left and right on the aside elements. If I remove them, the text goes back to the top but then my aside elements occupy the entire space (I have used a box border around the aside to show it, as I want to colour the aside element for my design so I don’t want it to take the entire space of the main body-content)

I have tried using top:0% but no luck.

Fiddle: http://jsfiddle.net/chou_one/nPAJc/

  • 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-08T20:22:57+00:00Added an answer on June 8, 2026 at 8:22 pm

    You can simply do it by changing the width and float.

    According to your code, I made some changes:

    I changed the float in #side-news2 from right to left.
    And add width: 30% to #side-news, #side-news2, and #section-wrapper.
    Note that all of the width (30% + 30% + 30%) cannot exceed the one in #body-content (which is set to be 90%)

    #body-content {
        display: table;
        width:90%;     
        margin: 0 auto;
        background: lightblue;
        border-color: rgba(255, 255, 255, 0.7); /* highlight on inner box */
        border-width: 1px;
        border-style: solid;
        -moz-border-radius: 3px; /* FF */
        -webkit-border-radius: 3px; /* Safari, Chrome */
        border-radius: 3px; /* modern browsers */    
        -moz-box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.15);
        -webkit-box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.15);
        box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.15);    
    }
    
    #side-news {
        border:1px solid black;
        width:30%;
            top:0%;
        display:table-cell;    
        float:left;
        list-style:none;    
    }
    
    #side-news2 {
        border:1px solid black;
        width:30%;
        display:table-cell;    
        float:left;
        list-style:none;      
    }
    #section-wrapper {
        width:30%;
        display:table-cell;  
        margin: 0px;
        float:left;
        top:0%;
        margin-top:0%;
        border:1px solid black;
        margin-top:0%;
    }
    

    ​

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

Sidebar

Related Questions

I'm having a design/css issue. I'm using Twitter Bootstrap and have a .row-fluid, with
Having issue with slider navigation. Works perfectly fine when there are no other unordered
I having issue that content assistant / intellisense is working in methods such as
I am having some troubles thinking through a design issue and thought that the
I have a design issue which I can't just figure out how to solve.
I'm having a UI design issue, this is what I want the contents of
I am having a bit of a design issue. What I am working on
I'm integrating a content slider into magento theme, but having some issue with the
I found an issue yesterday with either my table design or a query that
I am using VS2010 and having an issue where upon opening my solution the

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.