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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:55:02+00:00 2026-05-28T18:55:02+00:00

I am working on a new design in HTML5/CSS3 and it has been a

  • 0

I am working on a new design in HTML5/CSS3 and it has been a while since I last worked with html more than for writing content, not layout.

The thing I am trying to achieve is a “full-width” or rather “80% width” design so that it fits the browser size down to 800px. (min-width).

A part of the content will contain a navigation block placed to the right (fixed size, say 300px), I have achieved this by using float although I have learned to hate float because of the “clearfix” issue, bur for the lack of better.

To the left of it I wanted the content to take up space to the right floating element.

However if that content grows beyond the width then it pushes the right floated element down.

So something like:

   -----------------------------------------------------------
          |                 Header                    |
          |                <header>                   |
          |-------------------------------------------|
   <-10%->|         <- Fill ->            |<- 300px ->|<-10%->
          |                               |           |
          |         <section>             |  <aside>  |
   -----------------------------------------------------------

Section (id=articles) is set to:

margin: 0 0 0 30px;
display: inline-block;
float: left;

Aside (id=sidebar) is set to:

margin: 0 30px 10px 30px;
width: 290px;   

border:1px solid #6B6B6B;

border-radius: 6px;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;

box-shadow: 0px 0px 2px 1px #6B6B6B inset;

display: inline-block;
float: right;

Ways of fixing it:

  • display: table and table-cell, works but it adds extra tags I would like to avoid, also not sure that works everywhere?
  • flexbox? well so I thought but having issues with it, but it is not widely supported anyways.
  • Let all have fixed width.
  • Let all have dynamic width. (ohh boy)
  • Tables, but we know that discussion all to well.

Now ill properly work on with the first one on that list as that is the only thing that currently let me achieve the goal, but I would like to see if there wasn’t a more clean way.

  • 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-28T18:55:04+00:00Added an answer on May 28, 2026 at 6:55 pm

    How about something like this? Create a container for the left and right pieces. Provide a right margin to make room for the right container. You could float it, but I absolutely positioned it because you hate floats =).

    http://jsfiddle.net/Z62f2/

    div { border: 1px solid gray; width: }
    #container { width: 80%; min-width: 600px; margin: 0 auto;  }
    #header { height: 100px; }
    #content { position: relative; }
    #left { margin-right: 300px; height: 1000px; }
    #right { width: 300px; height: 500px; position: absolute; top: 0px; right: 0px; }
    
    <div id="container">
        <div id="header">Header</div>
        <div id="content">
            <div id="left">Left</div>
            <div id="right">Right</div>
        </div>
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm pretty new to web design and have recently been working on an amatuer
I've been working on my new portfolio/website and decided to go for a design
We're working now on the design of a new API for our product, which
I am new to the MVVM design pattern, and I am working on a
Working on a new site design in asp.net with master pages. Header of the
I'm working with a new Entity Framework repository and need System.data.entity.design.dll for using the
I've been working on a new site of mine for a couple of days
We are working in the design phase of new project where we need to
In the course of my career I've noticed that developers working on new functionality
In Git I can do this: 1. Start working on new feature: $ git

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.