Zhang Weiwu wrote:
>>
>> +----------------+----------+
>> | <div id="1st"> | <div |
>> +---------+------+ id="3rd" |
>> | <div id="2nd"> | ...> |
>> +----------------+----------+
>
> Here is the solution (to use the solution I created a <div>
> enclose all the other <div>s, and name it "container"):
>
> div#container {
> position: relative;
> width: 100%;
> }
>
> div#the_1st, div#the_2nd {
> width: 63%;
> float: left;
> }
>
> div#the_3rd {
> width: 34%
> left: 63%;
> top: 0%;
> }
>
> this is very complex,
?
Adding a single container isn't "complex". Maybe you really meant
something else, but I'm not sure what that might be.
BTW, the left and top properties in the_3rd selector won't do anything.
They only apply to positioned elements (relative, absolute, fixed) and
have no effect on static (the default) elements or floats. Suggested
reading:
http://brainjar.com/css/positioning/
Pay special attention to the part about clearing floats, too, then see
http://www.quirksmode.org/css/clearing.html
> But, my complex solution works for IE!
Assuming that it does "work" (which I cannot confirm or deny), you not
knowing what is really happening will only make it that much harder to
maintain in the future. Instead of hacking away at something without
understanding it, take the time to learn what that CSS is *supposed* to
do. It will make everything so much easier in the long run.
> In those days where everybody use IE,
Um, no, they don't. You might search for some recent statistics on the
European market. The number of IE users isn't nearly as high as you think.
--
Berg