Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CSS3 Gradients

Featured Replies

So I've been experimenting with CSS3 gradients. I had a go and it seemed to work fine I've changed a couple of other elements on the page ad now it stops halfway down the page and restarts the gradient if it makes sense,

 

This is the CSS:

 

body {
   background-color: #000000; /*old browsers*/
   background-image: -webkit-gradient(linear, 0%, 100%, from(#333333), to(#C1CDC1));
   background-image: -webkit-linear-gradient(top, #333333, #C1CDC1); /*chrome/safari*/
   background-image:    -moz-linear-gradient(top, #333333, #C1CDC1); /*firefox*/
   background-image:     -ms-linear-gradient(top, #333333, #C1CDC1);
   background-image:      -o-linear-gradient(top, #333333, #C1CDC1); /*opera*/
   color: #F2F2F2;
   line-height: 2;
   font-family: 'Droid Sans', sans-serif;
}

Edited by historygirllfc

Can you post the full code?

 

While that is where the gradient is, you might have something like the content stopping it or a height declared somewhere.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.