Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

How can I get this background image to work?

I've got a Javascript clock that came "pre-packaged" with some verbiage along the bottom of the clock face. I saw this and decided that I could replace that veribage with a logo, which would look like what I've got attached.

I've got the clock up at http://brucegust.com/clock.php. I want to replace "QUARTZ" with the Verizon logo.

How?

User generated image
ASKER CERTIFIED SOLUTION
Avatar of Tom Beck
Tom Beck
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bruce Gust

ASKER

Tom, I don't think it could look any better!

Was it just a matter of using "background" rather than "background-image?"

Thanks again!
"background" is just shorthand for:

background-image
background-position
background-size
background-repeat
background-color

This line:

background: url(http://images.forbes.com/media/lists/companies/verizon-communications_200x200.jpg) no-repeat;

in longhand would be:

background-image: url(http://images.forbes.com/media/lists/companies/verizon-communications_200x200.jpg);
background-repeat: no-repeat

The css I provided is a mix of shorthand and longhand.

Thanks for the points.