Two columns, fixed fluid with 100% height

后端 未结 1 526
不知归路
不知归路 2021-01-26 01:10

How can I achieve the following effect without the use of a table?

Example: http://enstar.nl/example.php (The example may not be visible at the moment, the nameservers s

1条回答
  •  野性不改
    2021-01-26 01:52

    to set a two column there are a couple of options if you don't want to use tables

    testing
    testing testing testing testing testing testing testing

    As long as the text inside the rightCol is longer than that in the left col (which can be handled by a min-height on the element) then you shouldn't have any problems with it scaling.

    This also nullifies the need for the Javascript to set the second width. The reason is it is set to the width of the parent div which by default is 100% since you margin the red column left 200px it slides the display section over so you can see your left column.

    0 讨论(0)
提交回复
热议问题