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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Firefox support for background properties 1

Status
Not open for further replies.

Jonnn

Programmer
Nov 17, 2004
135
0
0
GB
Does FF support any of these...

background-position-x: 580px;
background-position-y: 20px;
background-repeat: repeat-y;



JavaScript Beginner at work :)
 
yes, but in javascript they would be referenced as such:

backgroundPositionX = "580px";
backgroundPositionY = "20px";
backgroundRepeat = "repeat-y";

-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
This is my css for my background ...

Code:
body
{
background-color: black;
background-image: url('[URL unfurl="true"]http://img.photobucket.com/albums/v156/jonpercy/NSR_BOTH.jpg');[/URL]
background-position-x: 580px;
background-position-y: 20px;
background-repeat: repeat-y;
}

It works in I.E but not in FF?



var chav_health = 100;
var chav = "";

if(person == "chav") {
(for x=1; chav!="dead"; x++) {
kick_chav(x)
}
}

function kick_chav(amount_of_kicks){
alert("Your gonna die");
kick_chav_hard(amount_of_times);

if(chav_health == 0;){
chav="dead";
}
else{
chav="alive";
}

return chav;
}

function kick_chav_hard(amount_of_times) {
 
star for you chris! i usually use the short syntax myself
background: #fff url(foo.jpg) no-repeat top etc...;

-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
i like your sleeves...they're real big
 
so then my code would be as followed...

Code:
body
{
background-color: black;
background-image: url('[URL unfurl="true"]http://img.photobucket.com/albums/v156/jonpercy/NSR_BOTH.jpg');[/URL]
background-position: 580px 20px;
background-repeat: repeat-y;
}

The Program to clean the streets...

var chav_health = 100;
var chav = "";

if(person == "chav") {
(for x=1; chav!="dead"; x++) {
kick_chav(x)
}
}

function kick_chav(amount_of_kicks){
alert("Your gonna die");
kick_chav_hard(amount_of_kicks);

if(chav_health == 0;){
chav="dead";
}
else{
chav="alive";
}

return chav;
}

func
 
If you want your CSS to ba as long-winded as your sig, Yes. I'd do it like this:
Code:
body
{
background: black url('[URL unfurl="true"]http://img.photobucket.com/albums/v156/jonpercy/NSR_BOTH.jpg')[/URL]
 580px 20px repeat-y;
}

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
If you want your CSS to ba as long-winded as your sig, Yes. I'd do it like this:

Least something cheers me up on a Tuesday morning :0)

Thanks...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top