This is a discussion on "Combining fixed and relative widths" within the Web Page Design section. This forum, and the thread "Combining fixed and relative widths are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Combining fixed and relative widths
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Combining fixed and relative widths
I'm sure this is very easy but I can't think how to do it.
How do I position something with a fixed width (eg a picture) on the page, and put something next to it (eg text) and tell it to fill the rest of the page, whatever size that might be? This issue pops up from time to time. Presently I'm positioning an iframe next to a div. I want the div fixed width and the i frame to fill up the rest of the page. Any help much appreciated. |
|
|
|
|||
|
Re: Combining fixed and relative widths
I should have been clearer. I don't want anything to wrap around the image. I just want it (an iframe, or div, or whatever) to fill the remaining width of the page.
|
|
|||
|
Re: Combining fixed and relative widths
I guess what I'm really asking is how to replicate something like this:
But to do it without using tables. |
|
||||
|
Re: Combining fixed and relative widths
Set the width of a container div at a percentage (like 95%) and float the left div at a stated width, either in pixels or ems. The right column will fill the container. You don't want to use relative positioning, because if the center column is longer than the left one, this will cause it to flow under the left one. Just set a fixed left margin for it and leave positioning at the static default.
Last edited by masonbarge; Feb 10th, 2006 at 12:13. |
![]() |
| Tags |
| combining, fixed, relative, widths |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Advice on page widths etc | sing2trees | Web Page Design | 7 | Nov 21st, 2007 19:34 |
| Help in combining two scripts | jonnymorris | JavaScript Forum | 7 | Jul 28th, 2007 15:20 |
| 100% widths | snooper | Web Page Design | 5 | Jul 12th, 2007 12:51 |
| Need help combining 2 Javascripts | seargentpepper7 | JavaScript Forum | 3 | Jun 11th, 2007 19:22 |
| A question about widths em vs px | AdRock | Web Page Design | 5 | Aug 15th, 2006 09:05 |