i have a main div has 100% width, and 2 divs in it. one has 200px width and other will be 100%-200px, i mean;
-----------------this is main div -------------
| |
| ----subdiv1---- -------------subdiv2----------|
|| | | ||
| -------------- ---------------------------- |
|-----------------------------------------------|
subdiv1 has 200 px, subdiv2’s width will be rest of empty space. I search on google but couldnt find.
Here’s one possible solution I hacked up using a
float: leftrule for the left-most div, and amargin-leftrule for the right div: http://jsfiddle.net/P4xMj/Example HTML:
Example CSS (the background colors are just for visibility):