...

View Full Version : I can't change Background



Massa
07-22-2007, 07:47 AM
The background color. I am wanting to change the background from blue to stars. The code for the one I want is
<style type="text/css">
Body {
Background-image: URL(http://WWW.cod2files.Com/graphics/backgrounds/1/3425679554748.GIF);
}
</style>
<a href="http://WWW.cod2files.Com/" target="_blank"><img src="http://WWW.cod2files.Com/support.GIF" alt="Myspace Layouts" style="position:absolute; left:0px; top: 0px;" border="0"></a>
But when I copy and paste it doesn't change.

If anyone want to view the site its, http://www.myspace.com/funk2it,
I hope someone can help please.

Jutlander
07-22-2007, 08:43 AM
The <style type="text/css"></style> part must be between <head> and </head>. And I'd put a doctype on that page also:


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

I don't know how much Myspace allows you to change the code, but it's always a good idea to validate.

Massa
07-22-2007, 10:10 AM
The <style type="text/css"></style> part must be between <head> and </head>. And I'd put a doctype on that page also:


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

I don't know how much Myspace allows you to change the code, but it's always a good idea to validate.
Thankyou but the code as writtn just came up in the about me on my profilw page.

Ranger56
07-22-2007, 10:28 AM
<style type="text/css">
body{
background-image:url(http://www.cod2files.com/graphics/backgrounds/1/3425679554748.gif);
}
</style>

Try that.

Massa
07-24-2007, 12:23 AM
I did that and it took away the blue. When I logged on again it was still blue.
Thankyou for trying

rmedek
07-24-2007, 01:56 AM
You've got something in place that's adding styles as well. I don't know if it's something you added or something via MySpace. Either way, this will hack around it:


<style type="text/css">
body {
background-image: url(http://www.cod2files.com/graphics/backgrounds/1/3425679554748.gif)!important;
}
</style>

In the meantime, find out what's giving your background a color of #888888 and get rid of it.

feras_wilson
07-24-2007, 09:28 AM
Perhaps you must sign a " ' " to the css like that:



<style>
body {
background-image: url('Your URL')
}
</style>

Massa
07-25-2007, 12:50 PM
You've got something in place that's adding styles as well. I don't know if it's something you added or something via MySpace. Either way, this will hack around it:


<style type="text/css">
body {
background-image: url(http://www.cod2files.com/graphics/backgrounds/1/3425679554748.gif)!important;
}
</style>

In the meantime, find out what's giving your background a color of #888888 and get rid of it.
Thankyou so much for all your help, rmedek the code you gave me puts a stripe of stars across my profile, and when I go up and it goes with me, but the blue stays.
I can clear all the information out of the "About me" box and I still have the blue background, where else can I look for the #888888, or must I just give up.
You have been really great, thanks everyone.

Jutlander
07-25-2007, 02:00 PM
Look in your stylesheet. You have the body selector four times and below the second one is the property background-color:, which have the value #888888.

garydarling
07-25-2007, 02:47 PM
You have a style sheet titled UserStyle.ashx with the following background attributes:


body{background-color:#888888;}table, td{background:url("http://x.myspace.com/images/spacer.gif") transparent no-repeat 0px 0px; border:0;padding:3px;}

Jutlander
07-25-2007, 03:19 PM
That would be properties and not attributes.

Massa
07-26-2007, 01:43 AM
I'm really sorry about this, but how do I find the style sheet.

Thanks for being so patient

rmedek
07-26-2007, 01:55 AM
You don't have control over the stylesheet because this isn't a traditional website, it's a MySpace layout. Try this putting this in your profile:


<style type="text/css">
body {
background-image: url(http://www.cod2files.com/graphics/backgrounds/1/3425679554748.gif)!important;
}
background-repeat: repeat!important;
background-color: ffffff!important;
</style>

Essentially you are overruling styles with these custom rules. I used longhand and omitted the normal "#" because MySpace sucks ***. I mean, because for some reason you have to do that in order for it to work. You can read more about hacking MySpace layouts here: http://www.mikeindustries.com/blog/archive/2006/04/hacking-myspace-layouts

Massa
07-26-2007, 02:09 AM
Thnk you, no difference. I have to go to work, so I will try again later with the "wonderful thing".
Thankyou for your patience

Massa
07-26-2007, 10:21 AM
Thankyou I went to the link, but its a bit complicated for me.
Thanks again, still trying

Massa
07-30-2007, 03:30 AM
You don't have control over the stylesheet because this isn't a traditional website, it's a MySpace layout. Try this putting this in your profile:


<style type="text/css">
body {
background-image: url(http://www.cod2files.com/graphics/backgrounds/1/3425679554748.gif)!important;
}
background-repeat: repeat!important;
background-color: ffffff!important;
</style>

Essentially you are overruling styles with these custom rules. I used longhand and omitted the normal "#" because MySpace sucks ***. I mean, because for some reason you have to do that in order for it to work. You can read more about hacking MySpace layouts here: http://www.mikeindustries.com/blog/archive/2006/04/hacking-myspace-layouts
Thankyou rmedek, I have been able to improve the myspace but still can't get rid of that blue background. I can get,<style type="text/css">
Body {
Background-image: URL(http://WWW.cod2files.Com/graphics/ba...79554748.GIF);
}
</style>
<a href="http://WWW.cod2files.Com/" target="_blank"><img src="http://WWW.cod2files.Com/support.GIF" alt="Myspace Layouts" style="position:absolute; left:0px; top: 0px;" border="0"></a>
as a stip, but still can't get rid of that damn blue and have the stars allover.
I have got a lot of other things I wanted but that still remains my problem.
If you have the time and patience could you make any other suggestions please.
www.myspace.com//funk2it.
Thankyou for all your help.
Marion



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum