Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Forum image
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum image

 Post Reply Post Reply
Author
EdwardHewer View Drop Down
Newbie
Newbie


Joined: 10 November 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote EdwardHewer Quote  Post ReplyReply Direct Link To This Post Topic: Forum image
    Posted: 15 May 2006 at 10:49am
Is it possibble to have an auto sizing forum image
 
Our image is currently set to work o 800 x600 and i would like it to auto resize for better res.
 
thanks for your support
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 15 May 2006 at 11:41am
Using css ou can auto-resize a background image to the height/width of the original viewport for some browsers, but not for all of them.
Setting an image to work at a given screen resolution usually results in scroll bars. Netstats reports that about half of all users don't use full screen when browsing.

Edited by dpyers - 15 May 2006 at 11:44am

Lead me not into temptation... I know the short cut, follow me.
Back to Top
EdwardHewer View Drop Down
Newbie
Newbie


Joined: 10 November 2005
Status: Offline
Points: 16
Post Options Post Options   Thanks (0) Thanks(0)   Quote EdwardHewer Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 12:27pm

where can i find this css setting so i can change to auto size my image

is it possto have an example

thanks so far



Edited by EdwardHewer - 19 May 2006 at 12:28pm
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 20 May 2006 at 1:02pm
Markup:

<body>
<div id="container">
This is the content area, that will contain all the elements you want
positioned above the background.
</div>
<img src="foo.png" id="background" alt="" />
</body>


CSS:

#container {
position: relative;
z-index: 2;}
#background {
position: absolute;
top: 0;
left: 0;
width: 100%;


Resizing the page will not resize the image in some browsers but it will size properly on load in most browsers.
You need to use a high-resolution image:
 - larger high-re images scale down better than smaller high-res images scale up.

You can also use just html to put the image inline with a width of 100% but I don't think that will work with an xml doctype.



Edited by dpyers - 20 May 2006 at 1:04pm

Lead me not into temptation... I know the short cut, follow me.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.