Code request (also posted in VIP area)

AngelicPhoenix
by AngelicPhoenix · 6 posts
14 years ago in IMVU Homepage Codes
Posted 14 years ago · Author
Hi everyone!

I have a... well I don't know if it's complicated for any programmers here, but I was having a heck of a time with it... so yea somewhat complicated code request.

I found a CSS/HTML code, that will allow you to stretch a chosen background image to fit your browser window. The only problem is, I can't seem to get my panels to overlay it correctly, at least most of them anyway. For some reason the buddies, contact, my gallery, and badges panels are the only ones that stay visible after I enter the code.

If anyone has any ideas that could help me remedy this I'd greatly appreciate it.

BTW for anyone that would like the original code, here it is:

Code
<DOCTYPE>
<html>
<head>
<title>Stretched Background Image</title>
<style type="text/css">
/* Remove margins from the 'html' and 'body' tags, and ensure the page takes up full screen height */
html, body {height:100%; margin:0; padding:0;}
/* Set the position and dimensions of the background image. */
#page-background {position:fixed; top:0; left:0; width:100%; height:100%;}
/* Specify the position and layering for the content that needs to appear in front of the background image. Must have a higher z-index value than the background image. Also add some padding to compensate for removing the margin from the 'html' and 'body' tags. */
#content {position:relative; z-index:1; padding:10px;}
</style>
<!-- The above code doesn't work in Internet Explorer 6. To address this, we use a conditional comment to specify an alternative style sheet for IE 6 -->
<if>
<style type="text/css">
html {overflow-y:hidden;}
body {overflow-y:auto;}
#page-background {position:absolute; z-index:-1;}
#content {position:static;padding:10px;}
</style>
<endif>
</head>
<body>
   <div id="page-background"><img src="http://www.quackit.com/pix/milford_sound/milford_sound.jpg" width="100%" height="100%" alt="Smile"></div>
   <div id="content">
   <h2>Stretch that Background Image!</h2>
   <p>This text appears in front of the background image. This is because we've used CSS to layer the content in front of the background image. The background image will stretch to fit your browser window. You can see the image grow and shrink as you resize your browser.</p>
   <p>Go on, try it - resize your browser!</p>
   </div>
</body>
</html>



Thanks in advance!
Posted 14 years ago · Author
I was just trying to use the code to make my background fit the window. But everytime I do, even in preview mode most of the panels are invisible. I kinda gave up on it for the time being, hopefully someone here can help :tlaponder:
Posted 14 years ago
very good !
Posted 13 years ago
That is enough simple job. Use form builder and you even wouldn't do any coding.
Posted 13 years ago
angelwww wrote:
That is enough simple job. Use form builder and you even wouldn't do any coding.


Form builder rocks dude :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT
Select a forum Protection     Help & Support     Introductions     Mafia News     IMVU News General Discussion     IMVU Lounge        IMVU Series / Roleplaying        Social Games     Mafia Market     Mafia Tools        Premium IMVU Tools        Off Topic Tools     Off Topic     Contests Creator Corner     Graphics Design        Photoshop        GIMP     Basic Creator Help     Catalog And Product Showcase     3D Meshing        3Ds Max        Sketchup        Blender Gangsters with Connections     White Hat Activities        Google Hacking        Trackers Programming Corner     Coding        Python        .Net (C#, VB, etc)        Flash        JAVA        Autoit        Batch        HTML & CSS        Javascript        PHP        Other        IMVU Homepage Codes           General           About me Panel           Messages Panel           Special Someone Panel           Visitors Panel           New Products Panel           Rankings Panel           Wishlist Panel           My Badges Panel           Outfits Panel           Url Panel           Groups Panel           Slideshow Panel           My Room Panel           Sandbox panel           Layouts     Help & Requests Free Credits     Approved Methods     Submit Methods Free Money     Approved Methods     Submit Methods Adult Corner     Get Mafia AP Here     AP Lounge        AP Social Games        Casual Dating Tips     IMVU Slave Market & Escorts