LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Static image in background? (https://www.linuxquestions.org/questions/programming-9/static-image-in-background-156577/)

akaash 03-11-2004 11:17 PM

Static image in background?
 
My logo image is a gif image and i want to place it on my website in such a way that even if i scroll the page then also the logo should not appear to scroll and should remain in the center of the page then how to do that and what language should i use ? I mean how to do that ?

Scruff 03-12-2004 12:15 AM

i am not sure of the exact way to do that (i just use simple html and css) but a great place to search/ask for web type questions is www.htmlforums.com
It is like the web design version of Linux Questions ;)

akaash 03-12-2004 01:02 AM

gif image permission
 
I have done that but it doesn't display the image. My img. is in /var/www/cgi-bin/ .

Do i need to chmod the img. if so then what?

jinksys 03-12-2004 02:54 AM

As long as your image has the read bit set, it should be readable.
You need to use a fixed background, sometimes called a watermark.
Its easy to do in CSS, with this code.
Code:

<style>
 <!--
  body {
    background-image : url(" path to image");
    background-attachment:fixed;
  }
 -->
 </style>

Heres a snippet from my css file.

Code:

body{
background-image:url("../images/background.jpg");
background-attachment:fixed;
}



All times are GMT -5. The time now is 02:08 AM.