Amazon.com Widgets

Useful Mini Apps:
Members Area:
   
Hot Topics:

Follow 'scodal' on:
   
Partners:

Twitter, Google, Yahoo!, Bing, Facebook, Flickr. Contact me to add your site or tweet me @scodal.
<< Go Back
'CSS Background Fixed' on scodal.com

CSS Background Fixed
Found in: Web Design

Author: scodal..|..Nov 16 2008..|..Views: 375..|..Avg Rating: 0/5..|..Total Ratings: 0..|..

Getting your images aligned and placed properly throughout your website can be a hassle if you don't know what you need in order to achieve your end result. If you're trying to place an image as a background of a website but you [n]do not want the image to scroll with the mouse, you can add this code to make it.. well 'fixed' in place:

background-attachment: fixed;

Remember to place this in your <style></style> like this:

<style>
.image {
background-image: url('image.gif');
background-attachment: fixed;
}
</style>


First you assign what image you want to use with 'background-image' and then you tell it that you want it 'fixed', see?

Rate This Content 1 to 5
Social Bookmarking & Networking

.........
.........

 
 
blog comments powered by Disqus

Hand drawn doodle products: (shirts, coffee mugs, mousepads, and more)

Updated daily with new doodle products.

I built this website myself.
The backend is Cutenews.ru.
 

Copyright 2010