How TO?? Div overfloow hidden

Discussion in 'HTML & Website Design' started by romeo2010, Oct 1, 2009.

  1. #1
    i want to put and image or swf or gif file in <div width=200>


    but even the width of the image is greater then div only want to display untill 200


    basically anything over flow shoudn't been seen only the whatever is in the size of the div
     
    romeo2010, Oct 1, 2009 IP
  2. myst_dg

    myst_dg Active Member

    Messages:
    224
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    58
    #2
    <div style="width:200px;overflow:hidden;">
     
    myst_dg, Oct 1, 2009 IP
  3. romeo2010

    romeo2010 Peon

    Messages:
    183
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3


    thanks great help
     
    romeo2010, Oct 6, 2009 IP
  4. leebari

    leebari Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To maintain clean code you have to set class to your div element:

    <div class="image1">

    Then add CSS style sheet and there put

    .image1{width:200px;overflow:hidden;}
     
    leebari, Oct 14, 2009 IP
  5. Legeek

    Legeek Peon

    Messages:
    34
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Yeah likkeee that
     
    Legeek, Oct 14, 2009 IP