Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding divs in html 1

Status
Not open for further replies.

bobrivers2003

Technical User
Oct 28, 2005
96
GB
I have two divs in html that contain borderless iframes. One div is visible and the other is hidden. Although hidden you can still see the space that the hidden div occupies and i wish it to be "behind" the visible div like a pack of playing cards. The code below is what I currently have:


...
<div id=adminconsole style="VISIBILITY: visible;">
<iframe src="changeUser.php" width=835 height=380 frameborder="0"></iframe>
</div>

<div id=adminconsole style="VISIBILITY: hidden;">
<iframe src="newUserForm.php" width=835 height=380 frameborder="0"></iframe>
</div>
...

Thanks and Regards
 
change: [tt][blue]visibility:hidden[/blue][/tt] to [tt][blue]display:none[/blue][/tt]

use [tt][blue]display:block[/blue][/tt] to restore the div.

---
Marcus
better questions get better answers - faq581-3339
accessible web design - zioncore.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top