Your HostICan Community  


Go Back   Your HostICan Community > Programming & Design > HTML / Design

HTML / Design Are you a designer? Or just trying to become one? Great! You'll be able to talk about layouts, and HTML code to help your fellow designers, so everyone can work together to master the tricks of the trade. (Maybe even some JavaScript too!)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-03-2009, 08:36 AM
bo555 bo555 is offline
Junior Member
 
Join Date: Jul 2009
Posts: 3
Default website background image on my hosting

I would like to make my website more pleasant. How can I put the background image for my website using CSS file?
Reply With Quote
  #2  
Old 07-03-2009, 09:10 AM
Liona's Avatar
Liona Liona is offline
Member
 
Join Date: Jan 2009
Location: Buenos Aires
Posts: 85
Default Re: website background image on my hosting

Find an appropriate image. The image you'll need is 1500 pixels wide, it is because at larger resolutions should be seen whole background. Create a folder in the root directory named 'images' and paste in the image file. Edit CSS file and copy the following content in it:
HTML Code:
body {
background: #40413c url(images/background.jpg);
background-position: top center;
background-repeat: no-repeat;
margin-top: 350px;
}
The last thing you should do is to include this line in index.html file.
HTML Code:
<head>
............
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
Reply With Quote
Reply

Tags
background, hosting, image, website

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:45 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.