Solved

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

Posted on 2013-07-01
3
665 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 250 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 55

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses how to create an extensible mechanism for linked drop downs.
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 …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

792 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