fixed and auto width

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FrEaKmAn
    New Member
    • Aug 2007
    • 46

    fixed and auto width

    Hi

    I have a problem which is probably very simple to solve. For example

    [HTML]
    <div style="width:10 0%;">
    <div style="float:le ft;width:100%"> percents</div>
    <div style="float:le ft;width:100px; ">fixed</div>
    </div>
    [/HTML]

    what I want to do is to make 2 columns, 1 is set to width of 100px and other one should take width to fill the other part of screen...
  • FrEaKmAn
    New Member
    • Aug 2007
    • 46

    #2
    hm, I came to this solution, but I don't know if it's the best one..

    [HTML]<div>
    <div style="float:le ft;width:100%;m argin: 0 auto 0 -150px;backgroun d:#ff0000;">
    <div style="margin-left:150px;">a</div>
    </div>
    <div style="float:le ft;width:150px; background:#ccc ;">g</div>
    </div>[/HTML]

    Comment

    Working...