how do you keep the background in the same place

This is a discussion on "how do you keep the background in the same place" within the Graphics and 3D section. This forum, and the thread "how do you keep the background in the same place are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Graphics and 3D

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 13th, 2007, 20:49
Junior Member
Join Date: Apr 2007
Location: england
Age: 20
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
how do you keep the background in the same place

hi guys, i need to make a website and keep the background in the same place when scrolling down the page...
here is an example of what i need (the blue image in the background stays in the same place..)

http://www.volunteerscentregreenwich.org.uk/need.htm


thanks
Reply With Quote

  #2 (permalink)  
Old Apr 13th, 2007, 21:11
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: how do you keep the background in the same place

I see that you have got it?
Reply With Quote
  #3 (permalink)  
Old Apr 13th, 2007, 21:15
Junior Member
Join Date: Apr 2007
Location: england
Age: 20
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Re: how do you keep the background in the same place

no i havent, that is just an example of what i need done...

i have an image and need it to stay in the same place on the website so that when scrolling down the logo is still there...
Reply With Quote
  #4 (permalink)  
Old Apr 13th, 2007, 21:26
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: how do you keep the background in the same place

this is an example of how my background is done.
Code: Select all
body{
background-image:url(your/url/here);
background-attachment:fixed;
background-repeat:repeat;
}
does that help? im guessing because i havent seen your code.
Reply With Quote
  #5 (permalink)  
Old Apr 13th, 2007, 21:33
Junior Member
Join Date: Apr 2007
Location: england
Age: 20
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Re: how do you keep the background in the same place

at the moment its this:

Code: Select all
<title>Greenwich Community Learning Champions</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body {
 background-image: url(Images/backlogo.JPG);
}
-->
</style><
Reply With Quote
  #6 (permalink)  
Old Apr 13th, 2007, 21:34
Junior Member
Join Date: Apr 2007
Location: england
Age: 20
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Re: how do you keep the background in the same place

i need only the one image... im using dreamweaver to write the code, i very briefly understand it...

i only want one big logo to be shown in the one place
Reply With Quote
  #7 (permalink)  
Old Apr 13th, 2007, 21:40
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: how do you keep the background in the same place

Code: Select all
<title>Greenwich Community Learning Champions</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css"
body {
 background-image: url(Images/backlogo.JPG);
background-attachment:fixed;
}
 
</style>
Try that, the code ive entered is in the different colour.

I dont know if you need background-repeat in there, i just copied it from my code. You can just delete it if you wish.
This might help also with you setting your background out, http://www.w3schools.com/css/css_background.asp. It has some examples of code.

Last edited by Marc; Apr 13th, 2007 at 21:46.
Reply With Quote
  #8 (permalink)  
Old Apr 13th, 2007, 21:43
Junior Member
Join Date: Apr 2007
Location: england
Age: 20
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Re: how do you keep the background in the same place

thanks for your help!!

will try it tomorow and write back then
Reply With Quote
  #9 (permalink)  
Old Apr 13th, 2007, 21:48
Junior Member
Join Date: Apr 2007
Location: england
Age: 20
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Re: how do you keep the background in the same place

had a spare 5....
thats sorted the problem!! thanks!!

not necessary, but any chance you could tell me how it works?... is it just where the code says fixed??

thanks again
Reply With Quote
  #10 (permalink)  
Old Apr 13th, 2007, 21:53
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: how do you keep the background in the same place

yep basiclly.
Code: Select all
background-attachment:fixed;
that is the piece of code that does the trick. If you look here it will tell you how to do CSS: http://www.w3schools.com/css/.

Last edited by Marc; Apr 13th, 2007 at 22:00.
Reply With Quote
  #11 (permalink)  
Old Apr 13th, 2007, 21:54
Junior Member
Join Date: Apr 2007
Location: england
Age: 20
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Re: how do you keep the background in the same place

you are a star!! thnanks
Reply With Quote
  #12 (permalink)  
Old Apr 14th, 2007, 10:10
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: how do you keep the background in the same place

Code: Select all
<title>Greenwich Community Learning Champions</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css"
body {
 background-image: url(Images/backlogo.JPG);
background-attachment:fixed;
}
</style>
wow, I see some bad coding practices starting here. "Images/backlogo.JPG", change that to..."http://www.webforumz.com/images/backlogo.jpg", then rename that folder and picture to match your code changes. This will help you later on with SEO!

Also when you get more CSS code, you should probably think about exporting that to an external CSS file.
Reply With Quote
  #13 (permalink)  
Old Apr 14th, 2007, 11:26
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: how do you keep the background in the same place

Jacob, are you talking to me or vanhype?
Reply With Quote
  #14 (permalink)  
Old Apr 14th, 2007, 11:35
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: how do you keep the background in the same place

I was talking to vanhype...lol, you gave him the code to have a fixed background...and I was referring to his linking structure.
Reply With Quote
  #15 (permalink)  
Old Apr 14th, 2007, 11:48
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: how do you keep the background in the same place

Ah lol.
Reply With Quote
Reply

Tags
background, keep, same place

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
A place for your tag! aplace Link Building and Link Sales 0 Feb 14th, 2007 12:14
banner-place.com nighthawk Free Web Site Critique 16 Oct 26th, 2006 11:38
Out of place swf timmytots Web Page Design 0 Jul 5th, 2006 18:46
Where to place <background image> kaz Web Page Design 1 Dec 16th, 2005 00:49


All times are GMT. The time now is 20:27.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43