Welcome visitor
* Login
* Register
It is currently September 18th, 2019, 12:29 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Background Image
PostPosted: February 6th, 2009, 10:24 pm 
User avatar

Posts: 63
if I place a bg image in a html document, is there any code i can add to make it stay in place so if I add a lot of text a scroll bar appears that will move the text but the image will remain stationary?


Top
 Profile  
 
  Re: Background Image
PostPosted: February 6th, 2009, 10:29 pm 
User avatar

Posts: 79
try this code, altough let me say that the image will be displayed as meny times as necesary to fill the screen
<style type="text/css">
   html, body {
    background-image: url(file.jpg);
    background-attachment:fixed;
}
</style>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


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

Search for:
Jump to:  
cron