| View previous topic :: View next topic |
| Author |
Message |
pete
Joined: 20 Oct 2005 Posts: 2
|
Posted: Thu Oct 20, 2005 5:04 am Post subject: Width question |
|
|
Hello,
I was wondering if it is possible to assign a value of "auto" to the width of the main containing div, so that the content actually dictates the size of the complete WellRounded box?
It seems to work ok in firefox and netscape, but when viewed in IE, the box expands the full length of the browser window.
I would like to have one "generic" wellrounded box definition in CSS and let our php code/database information change the box dimensions.
Thanks a lot!!
Pete |
|
| Back to top |
|
 |
Chris Perkins Site Admin
Joined: 29 Sep 2005 Posts: 5665
|
Posted: Thu Oct 20, 2005 6:17 pm Post subject: auto width |
|
|
I think you've answered your own question. width: auto; works in firefox and netscape, but not IE6.
It'll probably work in IE7, so it may be just a matter of time. You should check Safari too.
If you are using PHP, then you could potentially have PHP write out the WellRounded rect, in which case the PHP would be able to set the width based on the content size.
Another option would be to use Javascript. We have a tutorial that uses javascript to dynamically set the height of WR rects. That same technique could be used to set the width dynamically too.
Chris |
|
| Back to top |
|
 |
pete
Joined: 20 Oct 2005 Posts: 2
|
Posted: Thu Oct 20, 2005 9:39 pm Post subject: |
|
|
Chris,
Thanks for the help! Ill try to write something in php to get the results we are after.
Pete |
|
| Back to top |
|
 |
|