HTML HELP: i want to stretch my image to fit any browser

Discussion in 'HTML & Website Design' started by 5ky.com, Aug 5, 2009.

  1. #1
    HELP REQUIRED PLEASE:

    I'm trying to get my background image fit any browser window. No luck so far cos i'm a newbie :)

    Here's my HTML code>>> (please amend)

    <!--Preamble-->
    <div style="position:absolute; left:0px; top:0px; width:759px; height:586px;
    /*MainDivStyle*/" __AddCode="here">
    <!--MainDivStart-->
    <div id="frag_5" style="text-align:left; /*Tag Style*/" __AddCode="here">
    <a href="http://www.5ky.com" target="_blank"><img src="http://i602.photobucket.com/albums/tt108/5ky_com/xxx_1.jpg" border="0" alt="Photobucket"></a>
    </div></div>
    <!--Postamble-->

    :confused:
     
    5ky.com, Aug 5, 2009 IP
  2. gareth_gillman

    gareth_gillman Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    to set a background with css

    body {
    background:url(image.png);
    background-repeat:repeat;
    }

    if the item stretches horizontally then use background-repeat:repeat-y to also repeat vertically, or change it to repeat-x to repeat horizontally, or for no repeating, use background-repeat:no-repeat;
     
    gareth_gillman, Aug 5, 2009 IP