olliviergirard Posted May 15, 2009 Share Posted May 15, 2009 Hi everyone,I'd like when I open my website online that the browser adjust automatically to the size of my website...I know there is a code for it, but can I find it ...thank you, thank you Link to comment Share on other sites More sharing options...
Synook Posted May 15, 2009 Share Posted May 15, 2009 Uh that is a very bad idea... you should be able to design your website to work at all common resolutions. Link to comment Share on other sites More sharing options...
Ingolme Posted May 15, 2009 Share Posted May 15, 2009 Writing code for the web properly is about making your pages adapt to the browsers, and not the other way around. It is annoying for the user if your page is resizing their browser (I happened to come across a page that did that). Link to comment Share on other sites More sharing options...
olliviergirard Posted May 15, 2009 Author Share Posted May 15, 2009 Ok, so how can I have a background image, to be able to adapt automatically to any browser without to crop my image or repeat it ... Writing code for the web properly is about making your pages adapt to the browsers, and not the other way around. It is annoying for the user if your page is resizing their browser (I happened to come across a page that did that). Link to comment Share on other sites More sharing options...
olliviergirard Posted May 15, 2009 Author Share Posted May 15, 2009 Ok, so how can I have a background image, to be able to adapt automatically to any browser without to crop my image or repeat it ... Link to comment Share on other sites More sharing options...
Ingolme Posted May 15, 2009 Share Posted May 15, 2009 If the background image is really large to begin with, it will take long to load and the users probably won't see it for a short while.Usually, to adapt a background image to different window sizes, I put a background color behind it that will take up the remaining space, and the color would be one that fits well with the image.Another thing you can do it put the whole site within a centered container of fixed dimensions, and have that container with the background image in it. Maybe give the container a thin black border to make it stand out in front of a plain pattern behind it. Link to comment Share on other sites More sharing options...
justsomeguy Posted May 15, 2009 Share Posted May 15, 2009 If you want a fullscreen background image the only way to do that is to use a regular image element that you float behind everything else.http://www.quackit.com/html/codes/html_str...round_image.cfm Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.