sarath Posted September 7, 2009 Report Posted September 7, 2009 Hi guys Is there any way to make background image fit with all screen sizes(all resolutions)? Thank u.
Wickham Posted September 7, 2009 Report Posted September 7, 2009 A background-image can't stretch so most people make one wide enough for most resolutions with top center an dthen code the background-color the same as the edges of the image so that it just continues the same color. You can make a normal image stretch using position: absolute or position: fixed with width: 100%. left: 0; right: 0; which ties it to both sides. If you don't state a height this will adjust in proportion to the width, but in a narrow high window you will see a space below the image. See this example and drag th ewindow wider and narrower:- http://www.wickham43.net/backgroundfullwidthflexible.html
trhale99 Posted September 8, 2009 Report Posted September 8, 2009 (edited) I would tend to agree...although as a designer and user of the internet on a slower connection, you should remember that large images as backgrounds are passe and should be avoided to reduce load lags....just saying.... ---------------------------------- [spam Link Deleted] Edited September 8, 2009 by Andrea
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now