Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > The Zelaron Nexus > Science and Art > Tech Help

 
 
Thread Tools Display Modes

 
Resizing background image
Reply
Posted 2004-10-29, 12:00 PM
How do you resize a background image with HTML?
D3V said:
This message is hidden because D3V is on your ignore list.
What is it they say about silence being golden?
Old
Profile PM WWW Search
Medieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzMedieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Medieval Bob
 



 
Reply
Posted 2004-10-29, 12:04 PM in reply to Medieval Bob's post "Resizing background image"
I've already asked that.
"The belonging you seek is not behind you, it's ahead."
--Maz Kanata
Old
Profile PM WWW Search
Silverjinx18 is neither ape nor machine; has so far settled for the in-betweenSilverjinx18 is neither ape nor machine; has so far settled for the in-between
 
 
Silverjinx18
 



 
Reply
Posted 2004-10-29, 12:08 PM in reply to Silverjinx18's post starting "I've already asked that."
Doh. http://zelaron.com/forum/showthread.php?t=34216
D3V said:
This message is hidden because D3V is on your ignore list.
What is it they say about silence being golden?
Old
Profile PM WWW Search
Medieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzMedieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Medieval Bob
 



 
Reply
Posted 2004-10-29, 01:13 PM in reply to Medieval Bob's post "Resizing background image"
HTML does not allow you to stretch background images. You can, however, stretch foreground images. You can simulate a stretching BG image by positioning FG stuff on top of a normal image, then using JS to update the image size.
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2004-10-29, 01:37 PM in reply to WetWired's post starting "HTML does not allow you to stretch..."
Okay um....

Burgundy background with a stretched image (logo.gif) on top of it that's mostly transparent (thus the burgundy will shough through).

How do you code that?
D3V said:
This message is hidden because D3V is on your ignore list.
What is it they say about silence being golden?
Old
Profile PM WWW Search
Medieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzMedieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Medieval Bob
 



 
Reply
Posted 2004-10-29, 02:48 PM in reply to Medieval Bob's post starting "Okay um.... Burgundy background with..."
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
<html>
  <body width="100%" bgcolor="#4E2A32" style="margin:0px;">
    <img src="logo.gif" width="100%" />
  </body>
</html>
Then, if you want something on top of that, then try following the img tag with a <div style="position:absolute;left:0px;top:0px;width:10 0%;"></div> containing the rest of the document.

Last edited by WetWired; 2004-10-29 at 02:52 PM.
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2004-10-29, 03:37 PM in reply to WetWired's post starting "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML..."
ok ... this isn't working
"The belonging you seek is not behind you, it's ahead."
--Maz Kanata
Old
Profile PM WWW Search
Silverjinx18 is neither ape nor machine; has so far settled for the in-betweenSilverjinx18 is neither ape nor machine; has so far settled for the in-between
 
 
Silverjinx18
 



 
Reply
Posted 2004-10-29, 03:47 PM in reply to Silverjinx18's post starting "ok ... this isn't working :("
What, exactly, isn't working? I've tested it.
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 



 
Reply
Posted 2004-10-29, 03:51 PM in reply to WetWired's post starting "What, exactly, isn't working? I've..."
hmmmmm...I dunno maybe I'm just putting it in the wrong place...when I put it there it like took the whole page off...? I dunno...
"The belonging you seek is not behind you, it's ahead."
--Maz Kanata
Old
Profile PM WWW Search
Silverjinx18 is neither ape nor machine; has so far settled for the in-betweenSilverjinx18 is neither ape nor machine; has so far settled for the in-between
 
 
Silverjinx18
 



 
Reply
Posted 2004-10-29, 04:05 PM in reply to Silverjinx18's post starting "hmmmmm...I dunno maybe I'm just putting..."
Yes, that is the page.
As I said, you need to put your page body into the div tag I specified after the image tag, so:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
<html>
{put head stuff here}
  <body width="100%" bgcolor="#4E2A32" style="margin:0px;">
    <img src="logo.gif" width="100%" />
    <div style="position:absolute;left:0px;top:0px;width:100%; padding:2em;">
{put page content here}
    </div>
  </body>
</html>
Old
Profile PM WWW Search
WetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusionWetWired read his obituary with confusion
 
 
WetWired
 
 

Bookmarks

« Previous Thread | Next Thread »

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

Posting Rules [Forum 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
Forum Jump


All times are GMT -6. The time now is 03:27 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.