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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:43:08+00:00 2026-05-25T09:43:08+00:00

I am designing a fluid layout and am thinking on the right approach to

  • 0

I am designing a fluid layout and am thinking on the right approach to code the layout ..Below is the structure which i am thinking;

<body>
<div id=container>
<div id=col1></div>
<div id=col2></div>
</div>
</body>

For the CSS, I am thinking of coding the container as {width:90%;margin:0 auto;overflow:hidden}

For the 2 cols, they would be floated left with some % widths..

As you can see, since i want a fluid layout, i am not using px value anywhere..

My other requirements are;

1 It should adjust based on viewport automatically e.g. Same html page when viewed on desktop or iPad (to some extent mobile phone) should adjust proportionally with respect to viewport..

2 It shoukd be compatible across most of the desktop browsers and iPad with easily extensible in future for other tablets..

3 The page should appear center aligned (not sure if There would be enough space for this on iPad)

Pleasepoint any issues you may think can Be caused by the above structure or css..

Please suggest if my HTML and CSS code (specially the container) are coded correctly..I am a bit aprehensive about getting this right, as the same is going to be applied to almost 500+ htmls…So woukd not want to get into any kind of major issues at a later stage..

Please suggest as many ideas..I am open to all of them..

Thank you..

  • 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-25T09:43:08+00:00Added an answer on May 25, 2026 at 9:43 am

    You could do that quite easily in terms of it being flexible:

    (I have left the styles inline because i’m lazy right now!)

        <div id="container" style="width:90%; margin:0 auto; overflow:hidden">
            <div id="col1" style="float:left; width:50%; background:#f90">COLUMN1</div>
            <div id="col2" style="float:left; width:50%; background:#f00">COLUMN2</div>
        </div>
    

    The 90% width on the container with be 90% of the viewport. The columns will be 50% of the calculated 90% width whatever that may be.

    I would use masterpages or similar so if you did indeed need to change things around you would have to apply it across each html page 🙂

    Also although the columns will be fluid your content could determine minimum widths – e.g. if you have an image in one column that is 500px wide then the minimum width of that column will be 500px when resized and might cause you issues. In short you need to consider the type of content you will have of the site and how that could potentially affect layout.

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

Sidebar

Related Questions

I am designing a website using the CSS fluid layout (based on adaptive/responsive web
Hie Everyone I am designing a webpage with a fluid layout. I want to
I am designing fluid layout pages (defining everything in % in CSS) for multiple
I am designing a fluid layout (no fixed px, all in %) I have
for designing purposes i need to truncate all DB which has lots of FK's.
I'm currently designing a web application which may be viewed by people in all
Im designing a dictionary App, which is having a database of minimum 220,000 entries.
When designing a new system or getting your head around someone else's code, what
When designing for layout and styling with CSS, it might be useful to add
Im designing a dialerPad form using Windows form, there is a textbox which should

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.