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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:35:23+00:00 2026-06-07T03:35:23+00:00

Trying to create a content box that has a background color of white. It

  • 0

Trying to create a content box that has a background color of white. It is inbetween the header div and footer div which are both images. I can’t get it to align with the two divs AND have it without white space, only one or the other.

This is the CSS:

#content {
    background-color:#ffffff;
    width:1024px; 
    margin: 0 auto; 
    font-family:Verdana, Geneva, sans-serif;
    font-size:12px;
    padding: 0;
    display: inline-block;
}

How do I get the content box to align with the rest of the page and not have any whitespaces?

This is what it looks like at the moment, I want to get rid of the space between the HELLO box and the images above and below it.

This is what it looks like at the moment, I want to get rid of the space between the HELLO box and the images above and below it.

  • 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-07T03:35:26+00:00Added an answer on June 7, 2026 at 3:35 am

    It’s not a great solution, but with the given information it’s the only one i can come up with.

    CSS

    #content {
        background-color:#ffffff;
        width:1024px; 
        margin: 0 auto; 
        font-family:Verdana, Geneva, sans-serif;
        font-size:12px;
        padding: 0;
        display: inline-block;
    
        position:relative;
    }
    
    #topWhiteFix, #botWhiteFix {
        position:absolute;
        left:0px;
        height:12px;
        width:100%;
        background:#FFFFFF;
    }
    
    #topWhiteFix {
        top:-12px;
    }
    
    #botWhiteFix {
        bottom:-12px;
    }
    

    HTML

    <div id="content">
         <div id="topWhiteFix"></div>
         <div id="botWhiteFix"></div>
    
         HELLO
    </div>
    

    (Untested)

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

Sidebar

Related Questions

I am trying to create this dropdown box that slides down and has the
I am trying to create a status window which content(textbox) should change in a
I'm trying to create an ascx control that can wrap content like a panel.
I am trying to create a flip button that shows changing content on every
I am trying to create a grid like system with div's with content floated
I am currently trying to create a site that filter the content based on
I am trying to create a custom dialog box that displays an image in
I am trying to create a window in GTK+ that has tab looks like
I am trying to create a a box in a template in Joomla! that
I'm trying to create a form that has an expandable widget. The problem is

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.