Jump to content

Help needed with scaling a background image to fit browser/resolution


kanch33

Recommended Posts

Hello All!

 

Thanks for your help...

 

I am fairly new to dreamweaver and even newer to CSS.

 

Basically I have a fairly simple website that I'm working on... currently the background is an image thats 2000X1500 (widthxheight)

 

Now on my 24" mac screen it looks great and fits the browser window perfectly but on a smaller screen or on PCs it looks terrible.

 

I really need to find a way with HTML or CSS that I can adjust the size of the background image to the size of the users' browser window or resolution... I am happy to loose a bit off the right hand side (with the image aligned left) in order to maintain the aspect ratio

 

Help much appreciated thanks!

 

my html for the background is currently:

 

background-image: url(images/sitebackgroundweb.jpg);

background-repeat: no-repeat;

Link to comment
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.