Jump to content

Help With Images


Recommended Posts

Are you referring to a background image or an image tag?You can't resize a background image, you can give a percentage width to an image with CSS. I'm not sure if it will resize the height proportionally though.I personally recommend you use an image with a width of around 960 pixels at most for the header of your site. I usually like to use 760 though, so that it will be visible on 800x600 screens.

Link to post
Share on other sites

Hi,Thanks for you help, I am using a back ground image, here is my code: height: 185px; /* height of the replacement image */ background-image: url("HeaderH.jpg"); background-repeat: repeat ;Am I correct in thinking there is no way to re-size the image depending on user res?Thanks again.

Link to post
Share on other sites

CSS can't resize background images, unfortunately. but depending on how important the edges of the image are, you can position it centered and have both edges cut off equally on smaller resolutions. Use background-position to center background images.

Link to post
Share on other sites

I don't want to say is not possible, but it could be a lot of work to make that happen.Nonetheless, take a look at these links about resizing a background image, probably they could help in some way:http://css-tricks.com/how-to-resizeable-background-image/http://www.cssplay.co.uk/layouts/background.html

Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...