rejetto forum
May 25, 2012, 04:38:31 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Resizeable background  (Read 1965 times)
0 Members and 2 Guests are viewing this topic.
badincite
Occasional poster
*
Offline Offline

United States United States

Posts: 6


View Profile Email
« on: June 27, 2008, 01:40:45 PM »

im using the template attached and i want to have a resizeable background so the background image doesnt repeat it just stretches to fit the screen

and this code will resize the background but i cant seem to get it to work right in here


<style type="text/css">
html, body {margin:0; padding:0; height:100%; }
#background{position:absolute; z-index:1; width:100%; height:100%;}
</style>
</head>

<body>

<div>
<img id="background" src="http://img231.imageshack.us/img231/9342/bluebackzi5.jpg" alt="" title="" />
</div>
<div id="fixed">



* templategood.txt (28.06 KB - downloaded 190 times.)
Logged
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #1 on: June 27, 2008, 11:24:15 PM »

I don't understand where you want that background image to go... But depending on the doctype you are using, stretching an image may be impossible.... for inserting the image into the page body. In the [style] part up the top...

body {
    height:100%;
    padding:0;
    margin:0 0 0 150px;
    color:#a0a0a0
    text-align:left;
    font-size:9pt;
    font-family:Tahoma,Arial,"MS Sans Serif",sans-serif;
    background:url('http://img231.imageshack.us/img231/9342/bluebackzi5.jpg') fixed bottom right no-repeat #101010;
}

That template is terribly written Undecided it is also showing its age, but each to their own I guess.

This website might help you.
http://www.w3schools.com/
« Last Edit: June 27, 2008, 11:27:14 PM by That_Stevens_Guy » Logged

badincite
Occasional poster
*
Offline Offline

United States United States

Posts: 6


View Profile Email
« Reply #2 on: June 28, 2008, 09:25:29 AM »

I was trying to have it be the whole background of everything I figured it was impossible with this template i just used a extra large fixed image on the right side not exactly what i was looking for. Yeah it was one i grabbed of here it serves it purpose but id like to get one where the background stretches to fit
Logged
TSG
Operator
Insane poster
*****
Offline Offline

Australia Australia

Posts: 1919



View Profile WWW
« Reply #3 on: June 28, 2008, 11:27:46 PM »

Pretty sure its not possible. And anyway, why would you want that to happen? its just going to get pixelly and distorted lol.
Logged

badincite
Occasional poster
*
Offline Offline

United States United States

Posts: 6


View Profile Email
« Reply #4 on: June 30, 2008, 08:03:41 AM »

Pretty sure its not possible. And anyway, why would you want that to happen? its just going to get pixelly and distorted lol.

Not if i make it big enough and screens only get but so big
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 08, 2012, 03:05:40 PM
anything