runnerjp Posted February 25, 2007 Share Posted February 25, 2007 This isn't a huge deal, but I am having trouble with my webpage when I resize the window. Go to http://www.runnerselite.com and resize the window horizontally. When it gets smaller the banner which is positioned in the center always stays in the center no matter how small the window gets.... Is there any way to fix this? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link href="css/layout.css" rel="stylesheet" type="text/css" media="screen" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>RunnersElite -Home-</title> </head> <body> <div id="LOGO"> <center><img src="http://www.runnerselite.com/images/LOGO.jpg" alt="Site Logo" width="750" height="100" STYLE="min-width: 750px"></center></div> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/ Share on other sites More sharing options...
AndyB Posted February 25, 2007 Share Posted February 25, 2007 What do you want to 'fix'? Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/#findComment-193598 Share on other sites More sharing options...
bluebyyou Posted February 25, 2007 Share Posted February 25, 2007 Not really a php question either, but If it helps in firefox for me it stays aligned to the left when I shrink the window. Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/#findComment-193600 Share on other sites More sharing options...
runnerjp Posted February 25, 2007 Author Share Posted February 25, 2007 well cant i keep it positioned so when i shrink the window the image will stay in center and as window shrinks then the window will just go over the image if that makes sence??? Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/#findComment-193602 Share on other sites More sharing options...
bluebyyou Posted February 25, 2007 Share Posted February 25, 2007 you can set the width of the <div id="LOGO"> in your stylesheet Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/#findComment-193603 Share on other sites More sharing options...
runnerjp Posted February 25, 2007 Author Share Posted February 25, 2007 but i have set the width <img src="http://www.runnerselite.com/images/LOGO.jpg" alt="Site Logo" width="750" height="100" STYLE="min-width: 750px"> its the positioning im having trouble with Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/#findComment-193604 Share on other sites More sharing options...
AndyB Posted February 25, 2007 Share Posted February 25, 2007 Sorry, but the question still doesn't make sense. Are you expecting the horizontal center of the banner to align with the horizontal center of the window even when the window width is less than the width of the banner? If so, why (and I don't think it's sensibly possible)? If not, then what is it that you want to do? Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/#findComment-193608 Share on other sites More sharing options...
runnerjp Posted February 25, 2007 Author Share Posted February 25, 2007 lol this is very hard to explain emrm ok 1 2 1 ok no 2 represents my banner in middle of page 1 1 1 2 1 when the window is shrunk in size the banner is still in cnt of page 1 1 so if i put objects to the left and to the right of the banner they end up being all squished together and over lapping because they are still tyring to fit the page width if that maxes sense.... is there away to make the image a fix position say so that when the page is opend its in the center... then if for some rason the page is shurnk in size the image does not move!! does that make sence Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/#findComment-193611 Share on other sites More sharing options...
bluebyyou Posted February 25, 2007 Share Posted February 25, 2007 I still say try to set the div width larger than the image width... Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/#findComment-193896 Share on other sites More sharing options...
ToonMariner Posted February 26, 2007 Share Posted February 26, 2007 Runner what have you ddone???? I gave you a html file that had everything you needed to do this with the header centered and everything... you seem to have reverted to tables for layouts and using afwul center tags and so and such forth. I know you are learning but learning should be a case of improving your technique NOT making things worse... Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/#findComment-193977 Share on other sites More sharing options...
worldworld Posted February 26, 2007 Share Posted February 26, 2007 I did see the site no problems i faced while resizing? Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/#findComment-194084 Share on other sites More sharing options...
runnerjp Posted March 1, 2007 Author Share Posted March 1, 2007 i have began to use table because i think i need to take it a step at a time.... i think by developing thestie 1st ( yes sadly with tables which i have to say many site use like the bbc 1!!!) it means that 1ns i got the site up and running i am able to do a makeover and start improving my html skills.... at the moment tho i need to get every thing all together as at the moment i keep going round in circles. Quote Link to comment https://forums.phpfreaks.com/topic/40030-deal-with-website-window/#findComment-196940 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.