#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    1
    Rep Power
    0

    .GIF stretching to div width?


    Hello all, strange little question here....I have a 48x48px .gif
    that is being put into my css layout via the div tag. I did this successfully a couple of days ago, butt changed the layout of that particular layout and removed the .gif, as I decided to put it in a new and separate css layout,
    on a new html doc.

    Problem - when I insert the .gif into it's own div, which is inside a wrapper div, which has a width of 400px, it now stretches my little .gif to 400px, even if I do not give the container div for the gif any dimensions. When I DO give the containing
    div for the gif dimensions, say...it's own size 48x48px, it still displays the gif at 400px wide. Im stumped, I don't know why it worked perfectly on the last page, and I wish it were live so I could show you, but it's only local atm and actually just
    a re-direct page for out network controllers.

    Any advice would be greatly appreciated!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2013
    Posts
    39
    Rep Power
    2
    Are you adding the .gif to an <img> tag?

IMN logo majestic logo threadwatch logo seochat tools logo