Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

how they do the background image act like that ?

This is a discussion on "how they do the background image act like that ?" within the Webforumz Cafe section. This forum, and the thread "how they do the background image act like that ? are both part of the Community category.


 Subscribe in a reader

Go Back   Webforumz.com > Community > Webforumz Cafe

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Nov 9th, 2007, 11:59
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 433
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Question how they do the background image act like that ?

Hi guys,
i just surfing the new games sites, and suddenly see this game's site http://eu.rgtr.com/en/
if you see the background image is a large image file, but it only will scroll below 1024x768 resolutions but it will fit automatically for bigger resolutions, i just wonder how they do that ?
any idea ?
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Nov 10th, 2007, 02:38
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how they do the background image act like that ?

Do you mean how the image stops even though the content continues? If that is the case, use this in your css:
Code: Select all
body {background: url(http://www.example.com/image.gif) no-repeat;}
What is in red will make the background appear only once.

If this is not what you are asking, could you clarify a bit please?

Cheers
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Nov 10th, 2007, 09:47
Reputable Member
Join Date: Oct 2006
Location: United Kingdom
Age: 21
Posts: 238
Blog Entries: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how they do the background image act like that ?

I think he meant how do you make the image adjust to the resolution of the users computer screen without damaging the quality of it at high and low resolutions?
Last Blog Entry: Blog Noughts and Crosses (Nov 14th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Nov 10th, 2007, 11:35
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 433
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: how they do the background image act like that ?

i mean when u look at this site with resolution 1024x768, image will fit the window, but when u increase the resolution, for example wider the background image will fit again to the new resolution.
if u see the window wont scroll horizontally in 1024x768. and if u make the window wider the image will grow with it !
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Nov 10th, 2007, 12:16
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 22
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how they do the background image act like that ?

The code they use is:

Code: Select all
body {
	background-image: url(/images/assets/shared/american-background.jpg);
	background-repeat: no-repeat;
	background-position: center 24px;
	background-color: #000000;
	font-family: Verdana, Arial;}
font-size: 101%
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Nov 10th, 2007, 12:19
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,871
Thanks: 1
Thanked 23 Times in 23 Posts
Re: how they do the background image act like that ?

That wont make it 100% High and Wide though Dan...

Could this: http://www.webforumz.com/html-forum/...htm#post289298 be of any use?
__________________
Thanks
Marc
Staff Manager - Want to be a Moderator? PM me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Nov 10th, 2007, 12:47
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 433
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: how they do the background image act like that ?

the question is how the image will fit with the resolution !? it wont scroll if u make window smaller...
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Nov 10th, 2007, 12:51
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,871
Thanks: 1
Thanked 23 Times in 23 Posts
Re: how they do the background image act like that ?

It fits the screen at 100% so thats probably why it doesnt scroll when you make the window smaller...
__________________
Thanks
Marc
Staff Manager - Want to be a Moderator? PM me.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Nov 10th, 2007, 19:17
Reputable Member
Join Date: Apr 2007
Location: Scotland
Age: 18
Posts: 233
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how they do the background image act like that ?

I think it's because the image is 1900px wide. (http://eu.rgtr.com/images/assets/sha...round-home.jpg)

That way when the user expands there browser it's still big enough to fit in.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Nov 10th, 2007, 19:24
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 433
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: how they do the background image act like that ?

why when we see it in lower resolution it wont scroll but below the 1024x768 will scroll horizontally ?
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Nov 10th, 2007, 20:06
Elite Veteran
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how they do the background image act like that ?

I can't figure it out either. He has quite a few bits of javascript. Do you think Javascript is resizing this?

Edit: http://www.boutell.com/newfaq/creating/backgroundfill.html or
http://www.codelifter.com/main/javas...maximize.shtml

Last edited by Lchad; Nov 10th, 2007 at 20:10.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Nov 10th, 2007, 20:18
Reputable Member
Join Date: Sep 2007
Location: Tehran - Iran
Age: 29
Posts: 433
Blog Entries: 2
Thanks: 7
Thanked 7 Times in 7 Posts
Re: how they do the background image act like that ?

i see that example but that will stretch the image to fit the window, but the one i have sent wont do that it is a large bg file that will fit to window, my guess is they use javascript with css or dom objects, but i dont know how !
__________________
Designing For Communicating
Website : http://www.datisdesign.com
Weblog : http://blog.datisdesign.com

Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fix background image in IE6 tenderfoot Web Page Design 1 Jan 30th, 2008 12:02
background image not big enough mykl Web Page Design 7 Oct 11th, 2007 20:08
background image in a div BumbleWeasle Web Page Design 5 Oct 9th, 2006 13:37
Background image overlaping footer image at bottom of div lw_d Web Page Design 4 Mar 21st, 2006 01:27
Need help with my background image!!! courtjester Web Page Design 3 Sep 30th, 2003 16:25


All times are GMT. The time now is 06:04.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8