How to make a central background over the page in HTML/CSS?


Tags: html,css

Problem :

I want to add the content of a page to a part of the background. That is, I want to keep 2 unutilized columns of area on both sides of the main content. Something like this,where you can see 2 unused bluish areas on either sides of the main content. There also is a shadow effect seen. So the main white background area where content is typed must be an image.

How do I achieve these things?

I need to know how I can actually put another sheet over the whole page seen in the screen. (I'm referring to the 2 unused columns in the link ).



Solution :

There also is a shadow effect seen. So the main white background area where content is typed must be an image.

Ummm... no. The shadow can be done using box-shadow on the main area. And you can center the main area using margin: 25px auto;

Example http://dabblet.com/gist/2793972


    CSS Howto..

    How to align with digits inside to the right, jQuery

    How set css style to GWT TextBox text?

    How to avoid overlapping text using CSS?

    How to show red border at Invalid Input Box after clicking Submit button with angularjs

    How to handle cq component with same html structure and different css?

    how to stop centered css dropdown menu from twitching (chrome only)

    How do you use HTML5 tags while supporting Progressive Enhancement for no-script clients that don't natively recognize unknown elements?

    CSS How to keep bodies of html file and included files from merging?

    How do I remove this unwanted space which seems to be background repeating HTML/CSS

    How to customize and change ready-made CSS libraries such as Twitter Bootstrap, and what other alternatives exist? [closed]

    How to debug HTML5/CSS for background video in RoR app

    How to show divs inline. css html

    How do i position a div relative to the window page (responsive css)

    How to make sure JQuery dynamically inject CSS properly and ready to use?

    How to assign CSS to images which have specific extension, height and width?

    in html and css how to get the box space to be smaller? [closed]

    How to Change Css coding with a link [closed]

    Dropdown list showing vertically in Internet explorer

    How do align images vertically centers with CSS and HTML?

    How to make a table with no cells-per-row defined only with CSS

    How to get the last image viewed to stick instead of reverting to the default in a pure CSS image gallery?

    I can not load the CSS pages which can be accessed after a login carry with spring security. How can I fix it?

    How to Manage Responsive Design in percentage(%)?

    How to achieve this oval layout with CSS

    How to make my PHP code, display in html table?

    How to set a (nice) linear-gradient from any color to transparent?

    how to use {{$variable}} in css , Laravel 5.1 [closed]

    How to apply gradient color in css?

    How to change the width of bootstrap popover

    How do I center my search form within a div?