Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CSS3 - background: radial-gradient  --stretch height to 100%

Posted on 2013-07-01
3
Medium Priority
?
735 Views
Last Modified: 2013-07-01
hi Experts
I recently discovered this wonderfully low memory alternative to an entire background image that is the CSS3 radial gradient.
here's my website: www.georgehowell.com.au
However, it seems to repeat at the end of whatever content is on the page.. Eg, where the last div tag is, is where the gradient will stop and start again.
Here's my CSS:
http://www.georgehowell.com.au/css/style.css

does anyone know an easy way to make it 100% height in every page. ie, is there a CSS selector or markup to stretch it 100% of the screen / browser window height in every scenario... responsive somewhat?
0
Comment
Question by:georgehowell
3 Comments
 
LVL 15

Accepted Solution

by:
Jagadishwor Dulal earned 1000 total points
ID: 39290149
Change your body style to like fixed and no-repeat Like:

body {
    background: radial-gradient(ellipse at center center , #848484 1%, #000000 100%, #000000 100%) repeat fixed 0 0 ;
    font-family: Marcellus SC,arial,verdana,tahoma;
}

Open in new window

0
 
LVL 60

Expert Comment

by:Julian Hansen
ID: 39290515
Try adding this
html {
   height: 100%;
}

Open in new window

0
 

Author Closing Comment

by:georgehowell
ID: 39291749
thanks for your solution Jag
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

926 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question