Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • Code University
  • How To Do Fixed Backgrounds
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
How To Do Fixed Backgrounds
Tweet Topic Started: Mar 23 2009, 11:25 PM (447 Views)
PD.Phoenix Apr 2 2009, 02:32 PM Post #11
Member Avatar
Kokuhyou no Tentei

Posts:
326
Group:
Member
Member
#602
Joined:
Aug 15, 2008
Coding language
HTML/CSS
html,body {
background: #071727 url(http://z3.ifrm.com/10/168/0/f306278/Blue_BG.jpg) center top;
color:#fff;
font-family:"Tahoma", "Arial", "Bitstream Vera Sans", "Verdana", sans-serif;
font-size:93.3%;
margin:0;
padding:0;
background-attachment: fixed;
}

Replace it with that.

But with your background, you'll want it to repeat down, wouldn't you? O_o
Edited by PD.Phoenix, Apr 2 2009, 02:32 PM.
Phoenix Designz is now open
Looking for staff and classers PM me here or on PD if interested.

Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click


Posted Image
| My dA | Vote PD Top 100 |
Offline Profile Goto Top
 
Riaz Apr 2 2009, 04:33 PM Post #12
Member Avatar
Honered

Posts:
20
Group:
Member
Member
#2,645
Joined:
Mar 23, 2009
Coding language
Everything
Saikou
Apr 2 2009, 02:32 PM
html,body {
background: #071727 url(http://z3.ifrm.com/10/168/0/f306278/Blue_BG.jpg) center top;
color:#fff;
font-family:"Tahoma", "Arial", "Bitstream Vera Sans", "Verdana", sans-serif;
font-size:93.3%;
margin:0;
padding:0;
background-attachment: fixed;
}

Replace it with that.

But with your background, you'll want it to repeat down, wouldn't you? O_o
wow amazing, It worked.

But its scrolling down anyway ;)

Thank you so much.
Offline Profile Goto Top
 
lirts Apr 3 2009, 10:23 AM Post #13


Posts:
204
Group:
Member
Member
#207
Joined:
Jul 22, 2008
Coding language
HTML/CSS
Actually, mine would work just perfect. I just spelled repeat wrong. XD

html,body {
background: url(http://z3.ifrm.com/10/168/0/f306278/Blue_BG.jpg) no-repeat fixed #071727;
color:#000;
font-family:"Helvetica", "Arial", "Bitstream Vera Sans", "Verdana", sans-serif;
font-size:93.3%;
margin:0;
padding:0;
}

THAT, will work.

It will make it not repeat down. So it will be just be one image in the background that doesn't scroll. That's how you do a fixed background. ^_^
Edited by lirts, Apr 3 2009, 10:26 AM.
"We fear that which we do not see."

"Our minds are limited by what we know, not what we believe."
Posted Image
Legion of Shadows! Join The Community! Join The RP! Join the Legion!! Click the pic to view!

Offline Profile Goto Top
 
PD.Phoenix Apr 3 2009, 02:48 PM Post #14
Member Avatar
Kokuhyou no Tentei

Posts:
326
Group:
Member
Member
#602
Joined:
Aug 15, 2008
Coding language
HTML/CSS
thats not the only way to do a fixed background.

The way I posted will work as well
Phoenix Designz is now open
Looking for staff and classers PM me here or on PD if interested.

Want to win some easy money? Enter Phoenix Designz tournaments. Learn more here ->> click


Posted Image
| My dA | Vote PD Top 100 |
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Code University · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 7:48 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy