All posts in: CSS

How to scale CSS background to desired dimensions

one can easily scale background in CSS to any dimension to fit its container. Here is how this can be done. 1 2 3 #MyID { background-size: 70% 60%; /* 70% width and 60% height */ } Since this is CSS3 property, supports all browsers ...

Page 1 of 131234567...Last »