<!-- --><!-- --><style type="text/css">@import url(http://www.blogger.com/static/v1/v-css/navbar/697174003-classic.css); div.b-mobile {display:none;} </style> </head><body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener("load", function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <iframe src="http://www.blogger.com/navbar.g?targetBlogID=20981690469561729&amp;blogName=Neo-Faerie+Wings%3A+Your+source+for+hig...&a mp;publishMode=PUBLISH_MODE_BLOGSPOT&amp;navbarType=BLACK&amp;layoutType=CLASSIC&amp;searchRoot=http%3A%2F%2Fneo-faeriewings. blogspot.com%2Fsearch&amp;blogLocale=en_US&amp;homepageUrl=http%3A%2F%2Fneo-faeriewings.blogspot.com%2F" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" height="30px" width="100%" id="navbar-iframe" allowtransparency="true" title="Blogger Navigation and Search"></iframe> <div></div> Neo-Faerie Wings: Your source for high quality neopets graphics

May 14, 2010

Putting Backgrounds on Your Pages

Here are ways to put backgrounds on your page!

The most simple way is to use this basic html code:

To change the color of your background use the following code:
<body bgcolor="#FF0000">

To put a background image you can use this code:

<body background="image.gif">
The code above will give you a tiled background. And if you wish to place a fixed background on your page you can place this code:
<body background="image.gif" bgproperties="fixed" >

But the most convenient way to put background is by the use of your CSS

You can place this code on your CSS:

You can change the attributes on the above code to your liking.
If you want the background to repeat, change no-repeat to repeat-y
If you want to place your background anywhere but on the right bottom just change where you want the image to be; ex. left bottom
If you do not want your background to be fixed on the page...you can omit background-attachment: fixed
If you do not want any color on your background and only the image you can omit background-color:#ffffff

Labels: , , ,