Jump to content


Automatically resize background image


2 replies to this topic

#1 Mooey

    Retired P2L Staff

  • Members
  • PipPipPip
  • 585 posts
  • Gender:Male
  • Location:UK
  • Interests:http://500px.com/mikeholman
    http://holmanmedia.net

Posted 06 December 2005 - 04:58 AM

Hi all,

I know this can be done in java but it looks messey. Is there a better way to make the background image resize it self to fill the browser window?

The link to my site (so you can see the problem) http://www.mikeholman.co.uk

Cheers :huh:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="imagetoolbar" content="no">
<meta name="MSSmartTagsPreventParsing" content="true">
<title>Mike Holman</title>
<style type="text/css">
body{
	background-color: #666666;
	margin:0;
	padding:0;
	background-image: url(background.jpg);
	background-repeat: no-repeat;
	background-attachment: fixed;
	background-position: center center;
}
</style>
</head>
<body>
<table width="450" height="100%" align="center">
	<tr>
<td><p>
		  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="756" height="549">

			<param name="movie" value="holNewSite1.swf">
			<param name="quality" value="high">
			<param name="wmode" value="transparent">
			<param name="menu" value="false">
			<embed src="holNewSite1.swf" width="756" height="549" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" menu="false"></embed>
		  </object>
		</p>

	  </td>
	</tr>
</table>
</body>
</html>

Edited by Mooey, 06 December 2005 - 04:59 AM.


#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 06 December 2005 - 04:28 PM

My first and only suggestion, since i seriously doubt you can accpolish this with any ease, is to read this:
http://www.pixel2lif...showtopic=15478 (found it after a quick search :))

Edited by rc69, 06 December 2005 - 04:28 PM.


#3 Mooey

    Retired P2L Staff

  • Members
  • PipPipPip
  • 585 posts
  • Gender:Male
  • Location:UK
  • Interests:http://500px.com/mikeholman
    http://holmanmedia.net

Posted 07 December 2005 - 03:51 AM

Hey, that looks like it will do the trick. I searched and found nothing :ph34r:

Thanks man :D

Edit: That set me on the right track, its working now but i cant remember what I did lol

Thanks again :(

Edited by Mooey, 07 December 2005 - 07:08 AM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users