CSS controls the height of a div adaptive Browser

Source: Internet
Author: User

CSS controls the height of a div adaptive Browser

 1   <  Html  >  2   <  Head  >  3   <  Style  >  4   # Mytable  {  Height :  100%  ;  Border  :  Solid 1px red  ;  Width  :  100%  ;  } 5   # Top  {  Margin-top  :  1px  ;  Height  :  100px  ;  Border :  Solid 1px green  }  6   # Down  {  Margin-top  :  1px  ;  Height  : 89%  ;  Border  :  Solid 1px silver  }  7   # Left  {  Height  :  100% ;  Border  :  Solid 1px black  ;  Margin  :  1px  ;  Width  :  200px ;  Float  :  Left  ;  }  8   # Right  {  Border  :  Solid 1px # 0aa ;  Margin  :  1px  ;  Height  :  100%  ;  Width  :  240px ;  Overflow  :  Scroll  ;  9   }  10   </  Style  >  11   </  Head  > 12   <  Body  >  13   <  Table  ID  = 'Mytable'  >  14   <  Tr  > <  TD  >  15   < Div  ID  = 'Top'  > </  Div  >  16   <  Div  ID  = 'Low'  >  17   <  Div  ID  = 'Left'  > </ Div  >  18   <  Div  ID  = 'Right'  >  19   Here is the content  20   Here is content. Here is content.  21   Here is the content  22   Here is the content  23   Here is the content 24   Here is the content  25   Here is the content here is the content  26   Here is the content  27   28   Here is the content  29   Here is the content  30   Here is the content  31   32   Here is the content  33   Here is the content 34   Here is the content  35   Here is the content here is the content  36   Here is the content  37   38   Here is the content  39   Here is the content  40   Here is the content  41   42   Here is the content  43   Here is the content here is the content 44   45   Here is the content  46   47   Here is the content  48   Here is the content here is the content  49   Here is the content  50   51   Here is the content  52   Here is the content  53   Here is the content  54  Here is the content  55   Here is content. Here is content.  56   Here is the content  57   Here is the content here is the content  58   Here is the content  59   60   Here is the content  61   Here is the content  62   Here is the content  63   Here is the content 64   Here is content. Here is content.  65   </  Div  >  66   </  Div  >  67   </  TD  >  68   </  Tr  > </ Table  >  69   </  Body  >  70   </  Html  > 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.