User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 391,608 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,642 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 842 | Replies: 3 | Solved
Reply
Join Date: Jun 2008
Posts: 10
Reputation: acediamond is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
acediamond acediamond is offline Offline
Newbie Poster

CSS background image, fixed

  #1  
Jul 5th, 2008
I am playing around with a website I am developing for my spouse. I am wondering how you fix an image within a frame or htm doc. so even when you need to scroll the background image stays fixed within the frame or page.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2008
Location: Slovakia
Posts: 61
Reputation: lio04 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
lio04's Avatar
lio04 lio04 is offline Offline
Junior Poster in Training

Re: CSS background image, fixed

  #2  
Jul 5th, 2008
There's solution with CSS, but it's running correctly from IE7 to higher. (And other quality browsers of course.)

  1. position: fixed;
Last edited by lio04 : Jul 5th, 2008 at 3:50 pm.
Jabber: lio04(at)jabbim(dot)sk
P.S. Sorry for my English, I am autodidact :)) In school I have only German.
Reply With Quote  
Join Date: Jun 2008
Posts: 10
Reputation: acediamond is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
acediamond acediamond is offline Offline
Newbie Poster

Re: CSS background image, fixed

  #3  
Jul 5th, 2008
what should the code be in the css for a fixed image on the background behind the tables. I now how to fix it I have something wrong with the image even showing up on any of the pages. I am using firefox3. what should the bg image tag look like?
Reply With Quote  
Join Date: Mar 2008
Location: Slovakia
Posts: 61
Reputation: lio04 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 4
lio04's Avatar
lio04 lio04 is offline Offline
Junior Poster in Training

Re: CSS background image, fixed

  #4  
Jul 5th, 2008
If I understand, you want fixed background and any content above that.

This is example on HTML body tag styled with CSS.
  1. body {
  2. background: url(./image.png) top center fixed no-repeat;
  3. }
Jabber: lio04(at)jabbim(dot)sk
P.S. Sorry for my English, I am autodidact :)) In school I have only German.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb HTML and CSS Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 12:07 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC