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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:54:31+00:00 2026-05-31T06:54:31+00:00

What do you do when you are trying to use a grid system (like

  • 0

What do you do when you are trying to use a grid system (like say, 960 or blueprint or YUI) and the design contains a background image that clearly does not adhere to the columns OR gutters?

a background image outside of the grid

<div class="grid_4 my_background">
 A background image...
</div>

.my_background {
 background: url(someimage.jpg);
}
  • 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-31T06:54:32+00:00Added an answer on May 31, 2026 at 6:54 am

    If i have understood your question, you should consider surrounding your grid div with a wrapping div (gridWrapper in the example code below), and place an absolute positioned <img> (gridBackground in the example code below) into it, with a z-index greater (if it must be looking like the picture you provided) or lower (if it is a proper background) than the underlying div containing the grid system.

    With the image in the background-image css property you have no luck to control its size with IE7-IE8, since they do not support the background-size property (as you can see here).

    Using an <img> element you are able to manipulate the size of this “background” according to the grid size.

    <div id="gridWrapper">
    
        <img id="gridBackground" src="your image url" />
    
        <div class="grid_4">
            <!-- your grid here -->
        </div>
    
    </div>
    

    … and the css:

    #gridBackground {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    
    div.grid_4 {
        z-index: 10;
    }
    

    If your background image has squared proportions, you are fine with it. Otherwise, you have to take care of eventual distortions or empty spaces.

    If you don’t care about IE7-IE8 for some reason, you can place your image as background by doing simply:

    div.grid_4 {
        background-image: url(your/image/url);
        background-size: length|percentage|cover|contain;
    }
    

    You can chose the background-size property value that fits best your layout requirements by reading here.

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

Sidebar

Related Questions

I am trying to use the 960 grid system with header and footer graphics
I'm trying to figure out why I would use a grid system. I have
I am trying to use the delegate method on a grid that I wrap
I am trying to use a image button in a grid view to select
I am trying to populate a WebGrid cell with an image that will open
I am trying to use the new guides system in ggplot2: require(devtools) dev_mode() install_github(ggplot2)
I'm trying to use tkinter to periodically refresh a square grid. Each square in
I am at the moment trying to learn how to use basic grid view
I'm using a grid system that uses percents (the 1140px grid to be precise)
I'm trying to use a System.Windows.Forms.DataGrid control in my Compact Framework 3.5 Window Mobile

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.