Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
wallpaper like background image
Old 08-18-2009, 09:03 PM wallpaper like background image
Novice Talker

Posts: 11
Trades: 0
Hi there, I was just wondering how do I put a wallpaper like background image in the background of my site, without the image stretching the screen if for example the person viewing the site had a small monitor. An example would be on here: http://www.ensidia.com/

as you can see there is a huge image in the background of this site if you have a big monitor, but if you resize the window the background 'disappears' and there is no horizontal scroll bar until you actually make the window smaller than the main content.

Thanks!
daniel101 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-19-2009, 03:18 AM Re: wallpaper like background image
StylaStyla's Avatar
Mad Man

Posts: 401
Name: Styla
Location: City of London
Trades: 0
Hi

Read this:
http://www.w3schools.com/css/css_background.asp

Otherwise you can take this code and paste it into your HEAD tag;

Code:
<style type="text/css">
body {
background-image:url(path to image.jpg/gif);
background-repeat:insert repeat code;
}
</style>
repeat codes are:
Code:
repeat-x
repeat-y
no-repeat
The example you used has
Code:
no-repeat
__________________
Freelance Graphic Designer not for hire

Last edited by StylaStyla; 08-19-2009 at 03:20 AM.. Reason: color typo
StylaStyla is offline
Reply With Quote
View Public Profile Visit StylaStyla's homepage!
 
Old 08-24-2009, 10:35 AM Re: wallpaper like background image
Novice Talker

Posts: 7
Location: UK
Trades: 0
Quote:
Originally Posted by The Conqueror View Post
Hi

Read this:
http://www.w3schools.com/css/css_background.asp

Otherwise you can take this code and paste it into your HEAD tag;

Code:
<style type="text/css">
body {
background-image:url(path to image.jpg/gif);
background-repeat:insert repeat code;
}
</style>
repeat codes are:
Code:
repeat-x
repeat-y
no-repeat
The example you used has
Code:
no-repeat
Great fix, this is what I've done on my website!
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
EnhanceSEO is offline
Reply With Quote
View Public Profile Visit EnhanceSEO's homepage!
 
Old 08-25-2009, 02:43 AM Re: wallpaper like background image
Novice Talker

Posts: 5
Name: Jeremy
Trades: 0
im pretty sure in that site they just used a very large image and placed it at the top and then in the bg they set the bg colour to black and let it just fade in nice looking technique
pixeldezigns is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to wallpaper like background image
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27265 seconds with 12 queries