Home Forums Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Arcade Chat
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > HTML
Reload this Page Img BG Scrollbar Help!
HTML Discussion of HTML belongs here.

Img BG Scrollbar Help!

Reply
 
LinkBack Thread Tools Display Modes
Img BG Scrollbar Help!
Old
  (#1)
Eternal is Offline
Cheating God; Retired
Eternal is on their way to the top
 
Eternal's Avatar
 
Posts: 1,918
Join Date: Aug 2007
Location: <!> Earth, USA <!>
Age: 12
Rep Power: 0
  Send a message via AIM to Eternal Send a message via MSN to Eternal Send a message via Yahoo to Eternal  
Default Img BG Scrollbar Help! - Thursday, February 26th, 2009

Well I have this background image for my website, So im inserting the image into my HTML Project Using this code:
Code:
<body background="wVx2.png" bgcolor="#FFFFFF">
And When I do that I cant scroll down, So I cant see the whole picutre
Its really annoying, can anyone help?
  
Reply With Quote
Old
  (#2)
rile5 is Offline
Senior Member
rile5 will become famous soon enough
 
rile5's Avatar
 
Posts: 861
Join Date: Jul 2007
Rep Power: 14
  Send a message via MSN to rile5  
Default Friday, February 27th, 2009

Quote:
Originally Posted by Kasey96 View Post
Well I have this background image for my website, So im inserting the image into my HTML Project Using this code:
Code:
<body background="wVx2.png" bgcolor="#FFFFFF">
And When I do that I cant scroll down, So I cant see the whole picutre
Its really annoying, can anyone help?
Don;t use an image as the background it repeats on bigger screens.





  
Reply With Quote
Old
  (#3)
Eternal is Offline
Cheating God; Retired
Eternal is on their way to the top
 
Eternal's Avatar
 
Posts: 1,918
Join Date: Aug 2007
Location: <!> Earth, USA <!>
Age: 12
Rep Power: 0
  Send a message via AIM to Eternal Send a message via MSN to Eternal Send a message via Yahoo to Eternal  
Default Friday, February 27th, 2009

Ya I know that, I just tried it, but I was originally using this:
HTML Code:
<img src="file:///C|/Documents and Settings/Kasey/Desktop/wVx2.png" width="800" height="600" alt="" /> 
But That wont work either,
  
Reply With Quote
Old
  (#4)
Sad CP is Offline
Super Member
Sad CP is an unknown quantity at this point
 
Sad CP's Avatar
 
Posts: 1,071
Join Date: May 2008
Location: Number ten Downing street. Vommiting at Gorden Brown.
Rep Power: 0
  Send a message via AIM to Sad CP Send a message via MSN to Sad CP  
Default Friday, February 27th, 2009

Don't use html for backgrounds, use CSS. It's much more efficent.


Credit goes to comunisim
  
Reply With Quote
Old
  (#5)
Donkey is Offline
Podcaster
Donkey
 
Donkey's Avatar
 
Posts: 2,052
Join Date: Jul 2007
Location: Up Sly's ass
Rep Power: 0
  Send a message via AIM to Donkey Send a message via MSN to Donkey Send a message via Yahoo to Donkey Send a message via Skype™ to Donkey 
Default Friday, February 27th, 2009

Quote:
Originally Posted by Kasey96 View Post
Ya I know that, I just tried it, but I was originally using this:
HTML Code:
<img src="file:///C|/Documents and Settings/Kasey/Desktop/wVx2.png" width="800" height="600" alt="" /> 
But That wont work either,
Thats because it needs to be hosted on like the internet or your server, or whatever...

If the image is on your computer, it won't work UNLESS you are viewing it from your computer.

Try this:
HTML Code:
<BODY 
    BACKGROUND="wVx2.png"
    BGCOLOR="#FFFFFF"
    > 
If that doesn't work you could use CSS

HTML Code:
<style type="text/css">
body
{ 
background-image: url(wVx2.png); 
background-color: #000000
}
</style> 

Last edited by Donkey; Friday, February 27th, 2009 at 12:51pm.
  
Reply With Quote
Old
  (#6)
Eternal is Offline
Cheating God; Retired
Eternal is on their way to the top
 
Eternal's Avatar
 
Posts: 1,918
Join Date: Aug 2007
Location: <!> Earth, USA <!>
Age: 12
Rep Power: 0
  Send a message via AIM to Eternal Send a message via MSN to Eternal Send a message via Yahoo to Eternal  
Default Friday, February 27th, 2009

Quote:
Originally Posted by Donkey View Post
Thats because it needs to be hosted on like the internet or your server, or whatever...

If the image is on your computer, it won't work UNLESS you are viewing it from your computer.

Try this:
HTML Code:
<BODY 
    BACKGROUND="wVx2.png"
    BGCOLOR="#FFFFFF"
    > 
If that doesn't work you could use CSS

HTML Code:
<style type="text/css">
body
{ 
background-image: url(wVx2.png); 
background-color: #000000
}
</style> 
Now It wont let me scroll If I preview it, it wont even show a Scroll bar Should I try adding a Width and Height?
*EDIT: I fixed it up, I added a height and width(Like this:
HTML Code:
<style type="text/css">
body
{ 
background-image: url(http://img410.imageshack.us/img410/8559/wvx2.png);
background-color: #FFFFFF
width:800px;
height:600px;
}
</style> 
)
And It works Thanks guys


I have left CPHQ.
[Star StrucKK] - My blog.

Last edited by Eternal; Friday, February 27th, 2009 at 06:13pm.
  
Reply With Quote
Old
  (#7)
Dragon is Offline
Super Member
Dragon
 
Dragon's Avatar
 
Posts: 1,446
Join Date: Jul 2007
Rep Power: 0
   
Default Friday, February 27th, 2009

You're using Forumotion, I presume. Or am I incorrect.


I've now got a brand new forum called Pokemasters! And no, Sly, it's not rubbish! Join my forum by clicking here. We're accepting applications for jobs now!
  
Reply With Quote
Old
  (#8)
Eternal is Offline
Cheating God; Retired
Eternal is on their way to the top
 
Eternal's Avatar
 
Posts: 1,918
Join Date: Aug 2007
Location: <!> Earth, USA <!>
Age: 12
Rep Power: 0
  Send a message via AIM to Eternal Send a message via MSN to Eternal Send a message via Yahoo to Eternal  
Default Friday, February 27th, 2009

Quote:
Originally Posted by Dragon View Post
You're using Forumotion, I presume. Or am I incorrect.
What the heck?
If you use Forummotion your retarded.
Im doing something called "MAKING-A-WEBSITE-FROM-SCRATCH"
I bought a domain and everything. And I would have figured this all out on my own, IF I wasnt away for 8 months


I have left CPHQ.
[Star StrucKK] - My blog.
  
Reply With Quote
Reply

Lower Navigation
Go Back   ClubPenguinHQ Forums > General Discussion > Programming > HTML

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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




Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Skin developed by: vBStyles.com
Copyright ©2006 - 2009, RancidKraut Industries