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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T19:34:14+00:00 2026-06-18T19:34:14+00:00

I need to do smth like this: Left box should have static width and

  • 0

I need to do smth like this:
enter image description here

Left box should have static width and right one resizes to full browser width.
Height of the boxes also should be resizeable.

P.S.
Sorry guys, it took a while to make fiddle work.

So it is here

<div class="page-wrapper">
    <div class="search-wrapper">
    </div>
    <div class="content-wrapper">
        <div class="leftPage">
        </div>
        <div class="rightPage">
        </div>
    </div>
</div>

The problem is:

I have silver left page. I want it to have static width. Lets say 454px.
And I want right page (black one) to be dynamically resized to screen.

Variant with width 20%/80% is not good for me.
Is it possible with CSS only?
I got good answers with jquery/js but still interesting if it can be done with CSS only)

Sorry for troubles)

  • 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-18T19:34:15+00:00Added an answer on June 18, 2026 at 7:34 pm

    Javascript/jQuery

    If you want left column to be static and the right column to be dynamic, you will need Javascript or a CSS preprocessor like SASS. That’s the only real solution that is supported by older browsers.

    // parent width - leftpage width = remainings
    $('div.rightPage').width(
        $('div.rightPage').parent().width() - $('div.leftPage').width()
    );
    

    Fluid layout

    If you really want a pure-CSS solution, I suggest to use a fluid layout instead. This is cross-browser as well.

    div.leftPage { width: 25%; }
    div.rightPage { width: 75%; }
    

    Simulated table

    As alternative, you can still simulate a table layout using display: table. Tables do have that functionality. Check out the demo (resize the window to see it working)

    This may not work in IE6 and IE7.

    Native table

    In the end, if you are OK with tables, you can use native tables, which are cross-browser 😉

    CSS

    table td.fixed { width: 200px; }
    

    HTML

    <table>
        <tbody>
            <tr>
                <td class="fixed">
                    <p>Left content</p>
                </td><td>
                    <p>Right content</p>
                </td>
            </tr>
        </tbody>
    </table>
    

    Finally, in order to resize it vertically, you need to set resize: vertical.

    div.leftpage, div.rightpage { resize: vertical; }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have smth like this: f.collection_select with options I need to modify the standard
Actually I have an update enquery into this point . I have smth like
Need to apply a filter to a file like this: TUPAC_0006:1:1:2554:2356#0/1 0 * 0
Need just a push in the right direction with this. I'm building a multi-language
I have a problem. I'd like to use layout for designe this ArcTimerActivity. When
Excuse me for anking again about this issue but I need to have a
I need to check with which element does 'this' match. Is it possoble? Smth
Have a need to append span element to DOM. if (check smth...) { a
I need run ts:reindex when smth add in model or destroy from model. How
Do i need to use FFT? Is there any SDK or smth?

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.