PDA

View Full Version : Stretching Background


Ryft
September 24th, 2006, 09:34 PM
Anyone know how to make your background stretch so if it is centered, it doesn't have the extra colored background on each side? I found some codes online for some CSS overlay thing or something (I don't mess with this stuff a lot) but nothing I tried would work. They were supposed to make it so the background fit the whole screen and resized when you changed the size of the page but if that is not possible, I would just like it to fit the whole screen. Here is the coding I have right now for my profile properties.

<style type="text/css">
body {
background-image:url('http://i12.photobucket.com/albums/a230/ryftie/airsunsetedit.jpg');

background-position:Center Center;
background-repeat:no-repeat;
background-attachment:fixed;
background-color:black;

border-width:3px;
border-color:white;
border-style:solid; letter-spacing: 1px; }
table, tr, td {background:transparent; border:0px;}

input {background-color:transparent !important;}

td, span, div, input, a, table td div div font,
body div table tbody tr td font {
color:Black !important; font-family: "Verdana" !important; letter-spacing: 1px;
font-size: 14px;
}
td, span, div, input, table td div div font,
body div table tbody tr td font {
color:Black !important; letter-spacing: 1px;
letter-spacing: 1px;
font-size: 14px;
}
body, div, p, strong, td, .text, .blacktext10, .blacktext12, a.searchlinkSmall, a.searchlinkSmall:link, a.searchlinkSmall:visited, .btext, .redbtext, .nametext {
color:White !important; letter-spacing: 1px;
letter-spacing: 1px;
font-size: 14px;
}
a {
color:Black !important; font-size: 14px;
}
a:hover {
font-size: 14px;
}
img {border:0px;}

Here is what my profile looks like now... what I am saying I want is for the background to cover it all without those black empty spaces on each side.

My MySpace (http://www.myspace.com/112817005)

I know it may be kind of ugly but it has been years since I messed with HTML coding and what not.. and I just made my account like 3 days ago after much procrastination. =P Thanks in advance for anyone who can help.

alexisthemovie
September 24th, 2006, 10:35 PM
looks like crap if its stretched.

mcfox
September 25th, 2006, 12:30 AM
It's much easier to resize the image itself in photoshop or something and upload it again.

Ryft
September 25th, 2006, 08:30 AM
Yeah I thought I tried that but it didn't really do anything. Maybe I'll just leave it how it is. It's not too big of a deal.

mcfox
September 25th, 2006, 09:37 AM
I've attached a resized image - just upload it to the image host.
850 x 645 px