div { width: 70%;}
h1 {background:url(bg.png) no-repeat;}
I want to make the background image set on the h1 tag resize and also maintain aspect ratio as the width of the div (which h1 is nested inside) changes. The width of the bg.png is 200px.
Thanks a lot!
Author
Posts
Viewing 1 post (of 1 total)
The forum ‘CSS’ is closed to new topics and replies.