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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:23:07+00:00 2026-06-08T16:23:07+00:00

I made a template with 2 columns with CSS like this picture. The main

  • 0

I made a template with 2 columns with CSS like this picture.

My template

The main div is main. It has 2 dives inside itself. DIV sider has a background-image. And I want to show it always. Now, I have 2 problems. First, it does not cover height of screen by default unldess I set a min-height=... for it. Second, if I do it, after scrolling the page, the background images won’t repeat to cover whole of screen height.

html {
    margin:0 0 0 0;
    height: 100%
}

body {
    font-family:Arial;
    font-size:9pt;
    color:#333333;
    line-height:200%;
    margin:0 0 0 0;
    background: #f0f0f0 url('../images/bg-radial-gradient.gif') fixed 230px top no-repeat;
    width:100% !important;
    height: 100%
}

#main {
    width:100%;
    min-height: 100%
}

#sidebar {
    width:231px !important;
    float:left;
    background-image:url('../images/sidebar_bg.PNG');
    min-height: 100%;
}

#container {
    float:left;
    padding:25px 25px 25px 25px;
    width:70%;
    min-height: 100%
}

What’s the problem?

Edit: This is my backgroun image
enter image description here

  • 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-08T16:23:09+00:00Added an answer on June 8, 2026 at 4:23 pm

    Try this – DEMO 1 : Unwanted white space

    The additional space in the bottom is because of your padding:25px; ( Same as padding:25px 25px 25px 25px;).There’s an extra top padding + bottom padding which is givin your div additional 50px.

    If you do not want that additional space – Try this => DEMO 2 : without the white space

    You can replicate the same effects of top and border 25px with this:

    padding:0 25px;
    margin:25px 0;
    

    To avoid that extra unwanted space.

    Edit:

    The additional space is caused by the margin:25px 0;, if you remove it – you wont have that extra space.check this
    DEMO 3 Removing unwanted space caused by Margin

    Edit 2 :

    Your problem is a well documented problem – Matching Columns Problem. There are loads of solutions you can try, here are a few :

    1) javascript

    2) Alter the Image (Hacky)

    3) Pure CSS

    My fav => Option 2

    I havnt personally explored the last one,but try it out.. 🙂

    Hope it helps..

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

Sidebar

Related Questions

I have a pre-made Word Template that has a table. I would like to
i have made a template that look like this : <ControlTemplate x:Key=onoffValue TargetType={x:Type Control}>
I have made a custom suface button according this example: <Button> <Button.Template> <ControlTemplate TargetType=Button>
Made this nice little loop for hiding and showing div's, works as a charm
Could someone give me a link, a tutorial or an already made css template
I am a bit confused on this, I made a report template in Birt
I already have a page template made with HTML and CSS, and in it
This weekend, I made a template for a ficticious website. I do this every
I'm using a pre-made email template with a simple CSS in the header. It
Recently i made two template classes,according to the book Modern C++ design. I think

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.