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
Old 01-31-2010, 10:24 AM Background Image
Skilled Talker

Posts: 55
Trades: 0
I am trying to do something like this with a background image:
http://www.sharpmea.com/cps/rde/xchg...office-mfp.htm

See the way the trees are there and that it has a gap in the middle and you see the top of the image at the top and down at the bottom you see the borrom of the image. How can i achieve that?
philmetz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-31-2010, 02:26 PM Re: Background Image
wongpk's Avatar
Extreme Talker

Posts: 178
Trades: 0
2 images...

CSS:
body {background: url(image_url) no-repeat top center;}
#overall {background: url(image_url) no-repeat bottom center;}

HTML:
<html>
<head>
<body>
<div id="overall">

<!-- All other content and DIVs -->

</div>
</body>
</html>
__________________
Regards,
Andrew

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
wongpk is offline
Reply With Quote
View Public Profile Visit wongpk's homepage!
 
Old 01-31-2010, 08:14 PM Re: Background Image
solvision's Avatar
Average Talker

Posts: 29
Name: Simon
Trades: 0
two things can help you to discover how the page is constructed.

In this case right-clicking on the image and selecting "View Image", sometimes you'll find a banner is made up of a ton of images rather than a single banner. By doing this you see that the code above is not complete. (You still need to wrap the content and center it) if you assign the top image to the BODY tag, it will not be in a centered site like this one.

Then do a search for CSS web developer toolbar (you need Firefox), you can view the CSS used in a website, as well as a lot of other stuff, like resizing the browsers to specific resolutions for example.

Download it then go back to this site and choose "View CSS" it will show you exactly how they did it. Combine this with viewing the Page Source, and you will understand their DIV structures.
__________________
ZAM Howto - simple, straight forward answers on how to get started with a website.


Please login or register to view this content. Registration is FREE

Last edited by solvision; 01-31-2010 at 08:17 PM.. Reason: added more useful text
solvision is offline
Reply With Quote
View Public Profile Visit solvision's homepage!
 
Old 02-01-2010, 09:39 AM Re: Background Image
Junior Talker

Posts: 3
Name: song gao
Location: China
Trades: 0
edit the image using photoshop..
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
gsat2002 is offline
Reply With Quote
View Public Profile
 
Old 02-01-2010, 01:22 PM Re: Background Image
Experienced Talker

Posts: 35
Name: Matthew Cook
Trades: 0
Here is a helpful link for using large backgrounds:

http://www.webdesignerwall.com/tutor...ge-background/
__________________

Please login or register to view this content. Registration is FREE
- Fastest growing Winnipeg website design company
mcook is offline
Reply With Quote
View Public Profile
 
Old 02-01-2010, 08:48 PM Re: Background Image
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Two tools to help you - Firebug and Web Developer Toolbar - both extensions are a must if you're serious.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to 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.31222 seconds with 12 queries