HTML - Resize To Different Screen Resolutions?
Hi,
I am a photographer and am trying to build my own site. Am using dreamweaver 8 and am ok using it, but my html is a little rubbish. have been developing my site, www.robertallenweddingphotography.co.uk, however just realised i have been developing at 1024x768 but if you look at the site at a lower or higher resolution it looks v.bad. Have read a few bits and pieces about using % instead of set pixels?! but am a bit lost! Can any body point me in the right direction? Basically want to end up with a site that looks 'correct' to as many people as possible! Thanks Rob Similar TutorialsHi! I'm having a problem with my website on larger screens. My website looks fine on my 1024 by 768 screen, but when I check it on higher resolution screens, all the content is stuck in the upper left corner leaving a big void on the right. How would I make my content appear in the middle of the screen like most modern websites? Or is there another solution that somebody can propose? Thank you for your time! Im designing a new site and I was kind of wondering a few things that I was hoping to get some answers to. I wasnt sure where this should be posted so if its in the wrong spot please accept my appology. So I do know I want to do alot of css and make it look very professional. 1) I remember at one time that you should make the site big enough to accomidate an 800x600 resolution. But considering that 1024x768 and bigger is pretty common place should I be scaling up to that or still stay at 800x600? I placed an image in the backround of a table on my page. It looks fine on my computer with a square monitor set at 1024x768 pix. When I viewed it on another monitor, a wide screen it displayed about half of my image to the right of where I placed it in the table. Can this be corrected so the image looks correct in all screen resolutions? Here is a link to the page in question. It's the motor in the upper left. The image name is: log2.gif http://cb750sandcastonly.com/new/ Thank You. I placed all my adsense ads into iFrames but when I resize the window small all the ads are pushed to the middle of the screen. How can I make them stay put. I tried working with divs too but it makes the ads the highest layer and it makes an invisible border stretching across the screen and I cant click anything thats in that border range. heres some of my code: <html> <head> <link rel="stylesheet" type="text/css" href="style2.css" /> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <center> <head> <title>BIO</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> </tr> </table> <!-- End ImageReady Slices --> <iframe src="/adsense.htm" width="120px" height="600px" frameborder="0" style="position:relative;Left:1173;bottom:865" marginwidth ="0px" marginheight="0px" scrolling="no"></iframe> <iframe src="/adsense2.htm" width="120px" height="600px" frameborder="0" style="position:relative;Left:-92;bottom:865" marginwidth ="0px" marginheight="0px" scrolling="no"></iframe> <iframe src="/adsense3.htm" width="728px" height="90px" frameborder="0" style="position:relative;Left:50;bottom:518" marginwidth ="0px" marginheight="0px" scrolling="no"></iframe> <iframe src="/adsense4.htm" width="336px" height="280px" frameborder="0" style="position:relative;Left:195;bottom:1560" marginwidth ="0px" marginheight="0px" scrolling="no"></iframe> </body> </center> </html> www.intoleranceclothing.com So this is not my expertise to say the least. My page looks fine on my resolution at home (1280x768) but of course does not look as intended on any other resolution. I have a few problems I'm trying to learn how to fix or control. 1) If you click the images of the shirts I want the popup to be centered in the x position and slightly below y center so the "Intolerance Clothing" still shows when the large picture is up. What would be the easiest way to go about this? Is there a way to set absolute position measured from the center of the page or how would I go about this? 2) Kind of along the same lines. The smaller pictures of the shirts align right up to the background image edges in my resolution. How can I go about positioning them so they are always the same location even if the resolution changes. Basically if the resolution gets bigger I'd like everything to just stay as is and add more black solid space around the image. 3) Another smaller change I'd like to make is currently the viewer has to click the larger image for it to close and they cannot bring up another lager image until it is closed. What do I need to modify to allow the larger image to be replaced by a new one if a different shirt is clicked? Thanks for any suggestions on where to go read or look to help solve these issues or if someone is kind enough to point me in the right direction. Looks fine. Does not look fine. The first picture was fine because it was viewed with a 1024x768 resolution(which is the resolution that I'm working on my website with). However, any higher resolutions, and you'll see that the video goes out of place and moves too much to the right(second pic). I need to make it so that the video scales with all resolutions so it stays in place like in the first picture, no matter what the resolution is. Can anyone tell me how to fix this? Please be specific, i.e. what code? Thank you. Hi guys, Been struggling with this for a few days so here's to hoping someone with a better knowledge of HTML can help me out! I've recently put up a little website to (hopefully) get a bit of freelancing work, but noticed when I checked it on a friend's computer that it looks really screwy on resolutions other than the one on my own computer. As in, everything gets scrunched up in the corner leaving a good half of the screen blank. I know the way around this is usually to convert sizes from pixels to percentages in the HTML code, but the inlet frame on the website refuses to cooperate with the percentage-based sizes. I really want this website to fit all resolutions so it looks professional & the way it should. Can anyone help me?? The website's at http://solar-flare.biz so you can get the code there. It's probably a bit of a mess coz I made it with Frontpage then tweaked it manually to get the background to stretch.... but anyway. Massive kudos in advance to anyone who can fix the code!!! Cheers Mateusz I'm making a website on my mac and when I view it it looks fine, but when I view it on my windows px on 1080x720 res it has everything moved to the right some and even the sizes are wrong. But when I change my res to 1280 x 1080 it looks how it does on my mac (which is 1280 x 800 res). I'm guessing the resolutions are effecting the site's margins and size attributes. Is there a way to fix this? My webpage: http://beamsvillepharmacy.com/site/index.html Fits my browser perfectly, however when viewed on other computers with a lower resoultion, the page doesn't fit and is too large. How can I edit my code, or go about making it automatically fit with different resolutions? (Right now it's all simple width="" height="", and that's how I was fitting it) Thanks. I'm trying to create a page where there is a centered background image, and two div's, one on the left and one on the right, all aligned properly. I tested it by syncing it to my website, and I -think- it displays correctly. However it definitely does not display correctly in Dreamweaver, as in Dreamweaver my central background image is slanted to the left for some reason. Can someone please check my code to make sure it has this layout? (Background image centered, with one section on left and one on right, two sections has same size and same distance from background image) But in Dreamweaver it shows up like this, so I'm worried it might not display correctly on computers with different resolutions: Code: <!DOCTYPE HTML> <html> <head> <!-- Create container type object containing background image with interactive image links layered on top. --> <!-- Objects are centered on screen. Sub-image positions are relative to container --> <style> #container { display: block; margin-left: auto; margin-right: auto; position: relative; border:none; width: 380px; height: 633px; background-image: url("pictures/mainmenu.png"); background-position:center; } #container img { position: absolute; border:none; left: 65px; width: 245px; height: 53px; } <!-- the three buttons --> #image1 {top: 225px} #image2 {top: 300px} #image3 {top: 375px} </style> <meta charset="utf-8"> <LINK href="style.css" rel="stylesheet" type="text/css"> <title>Main Playlist</title> </head> <body> <br> <br> <div id="wrap"> <div id="left"><a href="ContactInfo.html" style="color:#000">Profile</a></div> <div id="right">Upcoming works</div> <div id="container"> <a href="song1.html"><img src="pictures/button-hualuowuyuan.png" alt="song1" id="image1" /></a> <a href="song2.html"><img src="pictures/button-river.png" alt="song2" id="image2" /></a> <a href="song3.html"><img src="pictures/button-snow.png" alt="song3" id="image3" /></a> </div> </div> </body> </html> CSS: Code: @charset "utf-8"; /* CSS Document */ body { margin:10px; padding:10px; background-image: url(pictures/audigrandpiano.jpg); background-repeat:no-repeat; background-position:right bottom; } img.center{ display: block; margin-left: auto; margin-right: auto; } #wrap { position:relative; min-height:100%; } #left { float:left; width:300px; height:500px; text-align:center; } #right { float:right; width:300px; height:500px; text-align:center; } Really appreciate it so i'm working on my new site and everything seemed to be working find until i got to the 8th image since the image is wide instead of a scroll arrow appearing to scroll the page over, the image just collapses below my other divs to fit. can anyone help me fix this? thanks in advance guys this is the website http://www.paulodourado.com/x_milk.html and this is the page where I encounter problems http://www.paulodourado.com/thrice.html Hi there. So I don't need it for 800x600, only the sizes over 1024x768. Basically I made this template which I need to be able to be re-sized when in your browser. I thought I did this right, however I forgot about other resolutions other than 1024x768. When in higher res, the tables break a little and from what I can make out just get a little larger. What I can't work out is how to make them all work properly most large resolutions? Link to the template is he http://www.ruthlessintent.com/penguins/ Hi tell me if it's not the right place to post this question but I would like to know how to make my website look the same in all screen resolutions and for all browsers. Right now it looks fine in the 800x600 and 1024x768 resolutions for all the major browsers but when I view it with a 1366x768 resolution all the pages are skewed to the left in firefox and only some pages are centered in IE8. Here's the site : http://www.lost-vision.com/ Code for the "contact me" page that isn't centered in both browsers in 1366x768 resolution : Code: <!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" lang="en" xml:lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="Your description goes here" /> <meta name="keywords" content="your,keywords,goes,here" /> <meta name="author" content="Your Name" /> <link rel="shortcut icon" href="img/favicon.ico"> <link rel="stylesheet" type="text/css" href="andreas06.css" title="andreas06" media="screen,projection" /> <title>Contact Me</title> <style type="text/css"> <!-- body { background-color: #191919; margin:0 auto; padding-left: 11.2%; padding-right: 11.2%; } --> </style></head> <body> <div align="center"> <div id="container"> <a id="top"></a><p class="hide">Skip to: <a href="#nav">site menu</a> | <a href="#leftside">section menu</a> | <a href="#content">main content</a></p> <div id="sitename"> <h1> </h1> </div> <div id="nav"> <ul> <li><a href="index.html">Home</a></li> <li><a href="affiliates.html">Links</a></li> <li><a href="contact.html">Contact me</a></li> <li><a href="empty.html"> </a></li> </ul> <p class="hide"><a href="#top">Back to top</a></p> </div> <div id="wrap1"> <div id="wrap2"> <div id="leftside"> <p class="soft"> </p> <p class="soft"> </p> <p class="soft"> </p> <p><!-- Begin ShoutMix - http://www.shoutmix.com --> <iframe title="shoutbox_balistik" src="http://www6.shoutmix.com/?shoutbox_balistik" width="140" height="400" frameborder="0" scrolling="auto"> <a href="http://www6.shoutmix.com/?shoutbox_balistik">View shoutbox</a> </iframe> <!-- End ShoutMix --></p> </div> <div id="content"> <h1> </h1> <p><strong>E-mail:</strong></p> <p> <a href="mailto:maitre_mechant@msn.com">maitre_mechant@msn.com</a></p> <p><a href="mailto:balistik94@gmail.com">balistik94@gmail.com</a></p> <p> </p> <p><strong>On other sites:</strong></p> <p><a href="http://balistik94.livejournal.com/">LiveJournal</a></p> <p><a href="http://www.youtube.com/user/balistik94">Youtube</a></p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p class="intro center"> </p> <p class="intro center"> </p> <p class="hide"><a href="#top">Back to top</a></p> </div> </div> </div> </div> </div> </body> </html> Thanks in advance for your help. Hello, I wrote the following HTML code: HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>Admin Page</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> </head> <body> <div id="main"> <h2>Admin Page</h2> <hr width="420" color="black" align="left"> <form method="post" action="$_SERVER[PHP_SELF]" name="form" > <div class="textbox" style="height:35px;"> Username: <input type="text" id="username" name="username" maxlength="30" /> </div> <div class="textbox"> Password: <span style="position: relative; left: 4px;"><input name="password" type="password" id="password" maxlength="30" /></span> </div> <br /> <div class="button"> <input type="submit" value="Sign In" name="submit"> </div> </form> <hr width="420" color="black" align="left" style="position: relative; top: -5px;"> <div id="info"> info here </div> </div> <!-- End main div --> </body> </html> and the following CSS code: HTML Code: body { background-color:gray; font-family:Comic Sans MS; font-size:12pt; color:black; } #info { font-family:sans-serif; font-weight:bold; position:relative; left:0px; width:420px; top:20px; } #main { position:relative; width:500px; left:420px; top:50px; } The problem I have is when you resize the browser nothing resizes. Can someone please help me get this page to resize? Help will be greatly appreciated. Thanks. I have read a bunch of stuff on this and checked the 14 pages, but I am getting confused. Will I be able to have my site open up full size according to the setting of the user computer by added a script to my site pages? TIA http://wantedfraternity.webs.com/oncall.html I cant resize the font of the "GOM" in the center. Its set at 13, but I need it around 18px. :-\ Help here plz. Hello, i need help understanding how to make my website automaticly resize depending on the resolution its viewed on i am viewing it on 1680 x 1050 and it looks fine but i then view it on a smaller monitor and everything gets moved about and squished, i notice on other websites that this is not the case and i do not know how its possible. my website url: http://mylocalmenu.co.uk/ you are able to view the source code and css files from the browser please help me with this problem, as it is the only problem i cannot fix. Thank you in advance to any help that i receive I am having a frustrating problem with IE7. I have a set of images that load in the proper place when the page loads in IE7. Then, if you resize the browser in any way the images do not move, but the rest of the page moves with the browser resize. This causes the images to go over other items on the page instead of staying where they should when the resize occurs. Does anyone have an idea about what the difference between Mozilla and and IE7 is that makes this type of problem occur? Anything I should look into or try to make the images "stick" to their proper place during a resize in IE7? Thanks. Hi all, I notice that on some websites when you minimize and maximize the window, the content on the site displays differently. For example if i reduce the browser window on this website - all content is still displayed as if it were open in a fully maximised window. What is this called? and How do you do it?? Cheers Raggy |