background-image error

  • funtasy
  • Novice
  • Novice
  • funtasy
  • Posts: 30
  • Loc: kl malaysia

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

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);
  • digitalMedia
  • a.k.a. dM
  • Genius
  • User avatar
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

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>
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

That's the shorthand version and works just as well.
  • funtasy
  • Novice
  • Novice
  • funtasy
  • Posts: 30
  • Loc: kl malaysia

Post 3+ Months Ago

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
  • Posts: 5149
  • Loc: SC-USA

Post 3+ Months Ago

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

no-repeat
repeat
repeat-x
repeat-y

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 46 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
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.