![]() |
Div Help
Hello ive just joined the forum so hello again,
ive been working on my free online games website, as an alternative to iframes im using a <div> tag but because not all games are the same size most wont fit in a fixed sized box time. i need to make it so it will expand to the right size of the games. e.g. box not displayed (or very small) > Click link > box expands to fit .SWf file > everybodys happy! Well i would be a great help if enyone could get back with a solution Website:http://www.navgaming.tk Thanks, :icon_mrgreen:Tom:icon_mrgreen: |
Re: Div Help
If divs have no restrictions (i.e. no height/width or restrictions from parent containers), they normally will automatically expand to the size of the content they must contain. All that's left is for you to position it the way you want it.
How I'd probably position it is by using a parent container div to cover the general area where you want your game to be able to expand to. Then, for the actual div which contains the div, I'd mess with the margin-left css property. An alternative to margin-left would be to use position:absolute, and then use left/top/bottom values to position the div inside its container. [edit] Whoops, my bad. That'll teach me to check the dates of threads before replying to them. :icon_redface: |
| All times are GMT -5. The time now is 4:24 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC