Grow your CSS skills. Land your dream job.

Question about how to resize a Background

  • # May 22, 2010 at 10:19 am

    I read this:

    http://css-tricks.com/how-to-resizeable … und-image/

    Amazing, but how can I find the codes linked in this example:

    Second Attempt (better)

    ***This two links… Are them libraries ? Or what? How can I find them??****

    <script type="text/javascript"src="/js/jquery.js"></script>
    <script type="text/javascript"src="/js/jquery.dimensions.js"></script>

    **************************************************************************************
    <script type="text/javascript">
    $(document).ready(function() {
    var $winwidth = $(window).width();
    $("img.source-image").attr({
    width: $winwidth
    });
    $(window).bind("resize", function(){
    var $winwidth = $(window).width();
    $("img.source-image").attr({
    width: $winwidth
    });
    });
    });
    </script>

    Many thx!!!!!!

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".