OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
Contrain DIV Width to IMG Width
This page's ID:
11052
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
On a dutch forum we had a simular discussion about two div's who should have the same height. Here there was one menu and one content div. After some realy strange javascript and php scripts it turned out to be a very simple solution. Look at this site: [url=http://www.xs4all.nl/~sbpoley/webmatters/layout3.html]http://www.xs4all.nl/~sbpoley/webmatters/layout3.html[/url] . Here the content is placed [b]inside[/b] the menu. The menu grows with the content. So maybe you should try this: [code] .image{ width:X; height: Y; border-top:solid 2px #000000; border-left:solid 2px #000000; border-right: solid 2px #000000 } .caption{ font-size: small; border: solid 2px #000000 margin:Y 0 0 0; padding: 0.25em } [/code] followed with something like this: [code] <div class=caption> <div class=content> <img alt="image" src="whatever.jpg" /> </div> //end of content div caption text caption text </div> //end of caption div [/code] __________________________________________ "Art has to be forgotten. Beauty must be realized." Piet Mondriaan
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »