View Full Version : coding help
-Eliminate
14-07-2008, 03:49 PM
basically, i need someone to help me code a box expandable so eg
i click a link, it will go into that box and expand to the correct length
ill show you what i mean more clearly on msn
Oddsocks
14-07-2008, 04:34 PM
Firstly theres no such thing as an expandable "box", all containers expand unless stated in width or overflow.
Gathering from your explanation i guess you want a container which loads content when a person clicks a link, is this right?
I think your on about JAVAscritp drop-down menus?
wsg14
24-07-2008, 10:01 PM
You need to elaborate more when you make threads like this. I think I understand you though.
CSS
.box_container {
background-color: #aeaeae;
width: 250px;
}
.box_top {
width: 250px;
height: 25px;
}
.box_middle {
width: 25px;
}
.box_bottom {
width: 250px;
height: 25px;
}
HTML
<div class="box_container">
<div class="box_top">content</div>
<div class="box_middle">text</div>
<div class="box_bottom"></div>
</div>
That's your expandable 'box' (it's a div, actually). Now just add your navigation wherever. Say one of the links is contact.php: just copy your code from index.php into a new file named contact.php and then just change the content text. And then voila.
Cushioned
25-07-2008, 02:28 PM
I think he wants an expandable iFrame...
http://www.dynamicdrive.com/dynamicindex17/iframessi2.htm
Thats what you need :) Iframe will expand to corrent length :)
Hope that helps
Edit: oh my I just noticed the time stamp of the 1st post.
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.