LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-11-2004, 11:17 PM   #1
akaash
LQ Newbie
 
Registered: Mar 2004
Location: Gujarat, India
Posts: 22

Rep: Reputation: 15
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 ?
 
Old 03-12-2004, 12:15 AM   #2
Scruff
Member
 
Registered: Oct 2002
Location: Stoughton, MA
Distribution: Gentoo x86_64 & PPC
Posts: 949

Rep: Reputation: 30
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
 
Old 03-12-2004, 01:02 AM   #3
akaash
LQ Newbie
 
Registered: Mar 2004
Location: Gujarat, India
Posts: 22

Original Poster
Rep: Reputation: 15
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?
 
Old 03-12-2004, 02:54 AM   #4
jinksys
Member
 
Registered: Aug 2003
Location: 63123
Distribution: OpenSuSE/Ubuntu
Posts: 419

Rep: Reputation: 35
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;
}

Last edited by jinksys; 03-12-2004 at 02:59 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mp3's have noise/static in the background daspooky Slackware 3 08-16-2005 01:33 PM
Background image.. Linux~Powered Linux - Software 2 02-13-2004 02:42 AM
Background Image podollb Linux - Software 2 10-14-2003 09:15 PM
can you have a process as a background instead of a image Bluesuperman Linux - Software 0 09-25-2003 12:30 AM
Changing the background image bripage Linux - General 3 01-25-2002 06:24 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration