Results 1 to 2 of 2

Thread: width and height

  1. #1
    Join Date
    Nov 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default width and height

    Code:
    ...
    <div style="width:0px">
    <input type='text' ><br>
    <input type='text' ><br>
    </div>
    ...
    Code:
    ...
    <div style="height:0px">
    <input type='text' ><br>
    <input type='text' ><br>
    </div>
    ...
    2 above are the same except the attribute of <Div/>: one is 'width' and other 'height'.
    Somebuddy pls tell me why with 'height' the <Div/> collapses itself and hides components inside, while the attribute 'width' doesn't?
    I mean, actually with 'width', the <Div/> still collapes but components inside isnt Hidden.
    Components the whole except the Iframe.

    Pls tell me the reason.
    Im noob and
    Thanks in advance.
    Last edited by EXCUSE; 11-17-2008 at 04:09 PM.

  2. #2
    Join Date
    Oct 2008
    Location
    Sweden
    Posts
    2,023
    Thanks
    17
    Thanked 319 Times in 318 Posts
    Blog Entries
    3

    Default

    They should both look the same.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •