Solved

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

Posted on 2013-07-01
3
642 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 51

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now