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 402,662 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,255 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: 1452 | Replies: 2 | Solved
Reply
Join Date: Jun 2007
Posts: 5
Reputation: sevdiaz is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
sevdiaz sevdiaz is offline Offline
Newbie Poster

Troubleshooting Help: fixed Image background

  #1  
Jun 7th, 2007
Hello all,

I'm new in here and i want learn something, CSS!.

Well i have some problem for css, i need to know how to make fixed image background, please see my attached file.

please help me for tag and css properties. i really need help. thanks

thanks all.
Attached Images
File Type: bmp boog.bmp (832.0 KB, 2 views)
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Apr 2007
Location: Birmingham
Posts: 368
Reputation: Fungus1487 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 35
Fungus1487's Avatar
Fungus1487 Fungus1487 is offline Offline
Posting Whiz

Re: Help: fixed Image background

  #2  
Jun 7th, 2007
Originally Posted by sevdiaz View Post
Hello all,

I'm new in here and i want learn something, CSS!.

Well i have some problem for css, i need to know how to make fixed image background, please see my attached file.

please help me for tag and css properties. i really need help. thanks

thanks all.



<HEAD>
  <STYLE type="text/css">
    background-image: url('imageurl.jpg');
    background-repeat: no-repeat;
    background-position: 30% 20%;
  </STYLE>
</HEAD>

you can change the background-postion line to suit where you wish to have your image, or to specify an absolute position use "px" instead of "%"
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Reply With Quote  
Join Date: Jul 2006
Location: Deptford, London
Posts: 943
Reputation: MattEvans has a spectacular aura about MattEvans has a spectacular aura about 
Rep Power: 5
Solved Threads: 47
Moderator
Featured Poster
MattEvans's Avatar
MattEvans MattEvans is offline Offline
Posting Shark

Re: Help: fixed Image background

  #3  
Jun 7th, 2007
add a:
  1. background-attachment: fixed
to your body tag's CSS rules; if you want the background to stay still wherever the user scrolls.

bear in mind, this might not work in all browsers,.. i can confirm it works in IE6 and Opera, but I seem to remember having trouble with it at some point..
If it only works in Internet Explorer; it doesn't work.
Reply With Quote  
Reply

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

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

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