Fixed-width div with % width div?

Posted in dotnet, vb, vb.net | 34 Comments »

Hi,

Is it possible to use a fixed width div and an expanding div? Something like:

<div style="float:left; width:200px">
</div>

<div style="float:left; width:100%"> // expand please
</div>

<div style="position:fixed; width:320px">
</div>

I’d like the middle div to just expand in width and take up whatever is left after position the left and right div. It works fine if I give each of them a width in %, but when using a fixed-width for some, they start overlapping when the browser frame gets small etc,

Thanks

Similar:

  1. CSS- Fill remaining width of page with a fixed position DIV Hi, I have a DIV in a fixed position on the bottom of a page which is 354px from the left. I need the DIV...
  2. Creating 3-col layout with fixed-width middle column? The following page has a left and right column with fixed width, and the middle column takes up the remaining space. I'd like to have...
  3. fixed width sidebar, main content fluid layout Hi. i need to implement a layout with 1 fixed with sidebar at the left of the page and the main content fluid: First i...
  4. fixed width sidebar, main content fluid layout Hi. i need to implement a layout with 1 fixed with sidebar at the left of the page and the main content fluid: First i...
  5. fixed width sidebar, main content fluid layout Hi. i need to implement a layout with 1 fixed with sidebar at the left of the page and the main content fluid: First i...

34 Responses to “Fixed-width div with % width div?”

  1. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  2. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  3. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  4. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  5. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  6. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  7. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  8. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  9. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  10. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  11. [...] Fixed-width div w&#1110t&#1211 % width div? | T&#1211&#1077 L&#1072r&#609&#1077&#1109t Forum Archive [...]

  12. [...] Fixed-width div w&#1110t&#1211 % width div? | T&#1211&#1077 L&#1072r&#609&#1077&#1109t Forum Archive [...]

  13. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  14. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  15. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  16. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  17. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  18. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  19. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  20. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  21. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  22. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  23. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  24. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  25. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  26. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  27. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  28. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

  29. [...] Fixed-width div with % width div? | The Largest Forum Archive [...]

Leave a Reply