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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:28:28+00:00 2026-05-27T21:28:28+00:00

I have a wrapper and I need to set it’s height equal in all

  • 0

I have a wrapper and I need to set it’s height equal in all browsers.

How do I do that?
Actually I have tried by using min-height and height:100% but it’s not working.

This is how it actually shows in different browsers:

enter image description here
Here is my CSS:

    body
{
    background: #99CCFF;
    margin: 20px 0;
    padding: 0;
    width: 100%;
}

    #wrapper
{
    position: relative;
    margin:-20px auto;
    width:auto;
    height:450px;
    background-image: url('../images/bg.jpg');
    background-repeat: repeat;
}       
  • 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-27T21:28:29+00:00Added an answer on May 27, 2026 at 9:28 pm

    @Kiran

    You should get rid of your negative margin, first of all. If you see one browser has a layout issue, you can deal with that later using a conditional css statement in your header, and a separate css file.

    But to answer your main question. make sure you always use margin:0; and padding:0; when doing initial layout. this will take away a lot of layout bugs in the very beginning. Some versions of IE don’t conform to web standards, so there isn’t much you can do sometimes, other than workarounds. (i.e. conditional css)

    Have a look at this sample page a created for you.
    I took away you position:relative, and added the float and display properties, as well as changed your margins and padding to zero on BOTH body and #wrapper. I also changed the width of your wrapper from auto, to 100%.

    http://www.albatrossfonts.com/heightcss/wrapperHeight.html

    I used white as a background color for the wrapper as well, since I don’t have access to your image.

    Here’s the code:

    body
    {
        background: #99CCFF;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    #wrapper
    {
        margin: 0;
        padding: 0;
        width: 100%;
        height: 450px;
        display: block;
        float: left;
        background-image: url('../images/bg.jpg');
        background-repeat: repeat;
        background-color: #ffffff;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a main wrapper div that is set 100% width. Inside that i
I have a list wrapper that maintains two Tstringlists and a TClassList I need
I have a wrapper generic class that intended to be used with a set
I have a need to create a wrapper for a DLL, loading and unloading
I have a wrapper div with a height of 600px and a width of
I need to load a HTML wrapper dynamically depending on data that gets populated
I need to draw 3d projections and i am using opengl wrapper for JAVA.
I have a plugin that changes the look of select html tag on all
I have a set of code that modifies the native wordpress gallery: /* Open
I have some (untyped) XML being stored in SQL Server 2005 that I need

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.