Forums

  • # March 22, 2012 at 10:22 am

    HTML:


    Hello!


    CSS:

    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!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag