1 Replies - 303 Views - Last Post: 20 June 2012 - 02:36 PM

#1 AIintern  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 06-June 12

Gradient background with no repeat?

Posted 20 June 2012 - 08:22 AM

So i want to have this gradent background with no repeat, and for it to stretch across the whole homepage.. I have tried almost everything. I hope you guys can help.. here is my css for it..

html, body{


/* IE10 Consumer Preview */
background-image: -ms-linear-gradient(top, #FFFFFF 0%, #00A3EF 100%);
/* Mozilla Firefox */
background-image: -moz-linear-gradient(top, #FFFFFF 0%, #00A3EF 100%);
/* Opera */
background-image: -o-linear-gradient(top, #FFFFFF 0%, #00A3EF 100%);

/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #FFFFFF), color-stop(1, #00A3EF));

/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(top, #FFFFFF 0%, #00A3EF 100%);

/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(to bottom, #FFFFFF 0%, #00A3EF 100%);
margin: 0;
padding: 0;
}

Is This A Good Question/Topic? 0
  • +

Replies To: Gradient background with no repeat?

#2 e_i_pi  Icon User is offline

  • = -1
  • member icon

Reputation: 745
  • View blog
  • Posts: 1,525
  • Joined: 30-January 09

Re: Gradient background with no repeat?

Posted 20 June 2012 - 02:36 PM

Use the background attribute, not background-image.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1