background-image error

  • funtasy
  • Novice
  • Novice
  • No Avatar
  • Joined: Nov 21, 2003
  • Posts: 30
  • Loc: kl malaysia
  • Status: Offline

Post December 30th, 2003, 6:33 am

thank 4 read this.
ok, i set up a graphic to background like below but when i got empty on page! r something wrong with the code?

Code: [ Select ]
</head>
<body>
<style type="text/css">

{
background-image:
url"http://uk.geocities.com/funtasync/pic/sign.jpg);
background-repeat:
no-repeat;
background-position:
center
}
</style>
  1. </head>
  2. <body>
  3. <style type="text/css">
  4. {
  5. background-image:
  6. url"http://uk.geocities.com/funtasync/pic/sign.jpg);
  7. background-repeat:
  8. no-repeat;
  9. background-position:
  10. center
  11. }
  12. </style>


[pic ]is a subdirecteries.
>_<
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 30th, 2003, 6:33 am

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post December 30th, 2003, 8:03 am

You have a quotation mark in front of the http it should be an open parenthesis like this


Code: [ Select ]
background-image:
url(http://uk.geocities.com/funtasync/pic/sign.jpg);
  1. background-image:
  2. url(http://uk.geocities.com/funtasync/pic/sign.jpg);
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post December 30th, 2003, 8:53 am

can't you do it like this?

Code: [ Select ]
<style type="text/css">
BODY{background:url(http://uk.geocities.com/funtasync/pic/sign.jpg) no-repeat center;}
</style>
  1. <style type="text/css">
  2. BODY{background:url(http://uk.geocities.com/funtasync/pic/sign.jpg) no-repeat center;}
  3. </style>
- dM
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post December 30th, 2003, 2:30 pm

That's the shorthand version and works just as well.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • funtasy
  • Novice
  • Novice
  • No Avatar
  • Joined: Nov 21, 2003
  • Posts: 30
  • Loc: kl malaysia
  • Status: Offline

Post January 3rd, 2004, 4:51 am

i have done already ,(check many time....)
but thank u all by the shorter code.

another question... what the diffrent repeat,or not?(just a normal graphic background)







thanks,all kindly help...whatever a simple thing......
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Joined: Dec 29, 2003
  • Posts: 5169
  • Loc: SC-USA
  • Status: Offline

Post January 3rd, 2004, 6:42 am

just experiment with these values, they're very obvious....

no-repeat
repeat
repeat-x
repeat-y
- dM

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 149 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.