HTML - Total Newbie Needs Help With Page Fitting The Screen Size
hi guys, I have this code he
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <title>Under construction</title> </head> <body style="background-color:#121212"> <div style="background: url(under_construction.jpg) no-repeat center top ; height: 1024px; margin: auto;"> </div> </body> </html> the image under_construction.jpg is basically the page itself, it has a size of 1680x1024. As of right now the page doesn't adjust automatically to the users screen. Please help me change the code so that it'll adjust automatically to the user screen Similar TutorialsHello, total newbie here so please be gentle. The start of my source code is: <head> <title>INSERT TITLE HERE</title> <meta name= "description" content="INSERT DESCRIPTION HERE"> <meta name="keywords" content="INSERT KEYWORDS HERE"> </head> <style type="text/css"> <!-- body { background-image: url(.. What I am finding is when I load the page and save it via FTP to the hosting server, everything before the line <style type="text/css"> disappears totally from the souce code... What am I doing wrong? Thanks, Pete Ok, newbie here... I have two questions about background pics... I downloaded an image which I want to use as a background pic. The pic is located in the same folder as the my html script (Wordpad). I can get it to display but the pic is "broken up"; the image basically cuts off on the right, and then starts over. How can I fix it? This is a page for my sister-in-law; I wanted to email her a sample page but when I test-emailed it to myself, the background pic didn't display. I am pretty sure it has to do with the path; any recommendations? Thanks so much for your help! S. I'm using Amaya to write some really simple HTML. If I insert any characters in the range 128-255 (e.g. the degree symbol, 176, or non-breaking space, 160) then instead of embedding ' ' or '°' into the document it actually puts in the byte sequence 0 194 0 176 (degree symbol) or 0 194 0 160 (non-breaking space). In hex these sequences look like 00 C2 00 B0 or 00 C2 00 A0. So it appears that 194 (xC2) is some kind of escape character. However I can find no documentation anywhere which mentions that this is valid HTML - can anyone point me at some? Mike Hello Folks, Okay, I am trying to finally master this. I am working with a CSS Joomla layout that has some flash as main content (for images). I would like for this layout to resize based on the visitors screen size. I've played around with the % in width and so-forth. However my embedded Flash starts to scoot around the page as I change the size of the window. Can someone guide me on exactly how to do this so that "all" the info scales and stays in place. I am assuming that there will be an issue for the site getting really big if the person uses a massive screen (say 27inch plus) In that case how do you limit the size? Any help will be most appreciated. Hello, im trying to set my screen size with a div tag to 1024x768 any help would be very helpful and i'd be very thankful Ok, my website is best viewed at 1024x768, is there any way that i can somehow encode a popup that gives the message and an option for it to automaticaly change the screen resoloution to 1024x768? Many Thanks, Narc Hi all i have my website all complete but the one thing i would like to do is put an image on the opening page that fills the screen.. no matter what screen resolution someone is on... i have seen this on sites before but cannot remember where it was. has anyone got any idea how i coul do this? any help would be much apreciated Thanks Hey guys how to adjust any page to the particular screen (i.e., different screens) .... please help me out Thanks Code: Solved Now Hey I made the site princeoflayouts.com, and am having trouble with my last step. The resolution size of the screen. On my laptop the website looks perfect, but then on my schools computers the whole web site is out of whack. I tried to mess with the margins but that didn't help the issue. I used dreamweaer 8 to build the site and have seen the section where it has screen resolution but it only allows me to click it and nothing can be applied or changed. If you have any advice please tell me. I have a book that helped me through the whole process but this section was not in there. Thank You Is there a way to ensure that text size renders well even if screen resolution is extreme? Thanks... Hi! I'm new to this site and new to HTML so please don't bash me. I really need help with a problem I have. I have four images as my buttons and links to various pages on my site. They're rectangles that spread out horizontally on my screen. However, not all computer screens are the same size, so at school for example, since the screen is smaller, the order of my links gets messed up. Is there any way to size an image so that it is 25% of a moniter? If so, could someone just like, right the code down so I may copy? I"m really bad at html. Any help would be appreciated. Thanks! I am trying to create a table that does not change size depending on what the screen resolution is set to. I know that it is good practice to use percentages, however, as I am used to using pixels, I am finding it frustrating as I don't get the desired table size I want when the resolution is changed Here is an example of the table, if anyone can help me with the changes, it would be much appreciated or if you could point me in the direction of a tutorial that makes the table resize to reflect the chosen resolution preference, that too would be welcomed Code: <font color="#FFFFFF" face="Verdana" size="2"> <table width="810px" align="center" border="0" cellspacing="0" cellpadding="0"> <tr bgcolor="#000033"> <td height="130px" colspan="2"><div align="center">Header</div></td> </tr> <tr> <td width="130px" height="130px" bgcolor="#000066"><div align="center">Login</div></td> <td width="680px" height="130px" bgcolor="#000099"><div align="center">Image</div></td> </tr> <tr bgcolor="#0000CC"> <td height="80px" colspan="2"><div align="center">Page Title</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center"></div></td> <td rowspan="15" bgcolor="#0066FF"><div align="center">Body</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 1</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 2</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 3</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 4</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 5</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 6</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 7</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 8</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 9</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 10</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 11</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center">Link 12</div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center"></div></td> </tr> <tr> <td bgcolor="#0033FF"><div align="center"></div></td> </tr> <tr bgcolor="#003399"> <td height="30px" colspan="2"><div align="center">Footer</div></td> </tr> </table></font> Thanks in advanced Hi, I'm currently designing this website: www.carmelalopez.com and I'm trying to get the images on the left to fit the size of the browser screen on the right when you click on them. The images themselves are huge, so I'd like some kind of code that resizes the images to fit the size of the visitor's screen, which will vary from user to user. This might not be an HTML question (maybe CSS), but any guidance in the right direction would be greatly appreciated. Thank you. Guys, hopefully someone can give me a hand here. bear with me, Im a newbie to html yet Im an intermediate/advanced flash programmer. I learned flash but never learned html the right way and am struggling to make html entrance pages for my flash sites.. I know its usually the other way around. i learned flash first. ok, I have a website I made which is opened in a fixed window. the html index page says "enter here" and that button opens the fixed size window. that works fine. The problem is Im trying to learn the html and whenever i have an image on this index page, ( some graphics and the "enter here" button) it may look centered @ 1024 x768 but at a higher resolution ( 1280 x 1024) it will appear on the top left of the screen. I have been tinkering with dreamweaver but im really confused. I keep seeing all of these sites where everything looks aligned regarless of the screen setting. Im not sure if I should use tables , divs or whatever. i have my website logo as a jpg and some other graphics, and im not sure how to put it into the page so it always looks appropriate no matter what screen setting you are on. There is a company that makes nice websites and their entrance pages are always good. I am gonna attach the url of one of these. I notice that they always use divs, a LOT. Is thsi the right approach? and can someone look at the example and tell me how they are doing it? i dont put the url in the post becuase I do want google or other engines indexing the url to this post (for privacy) Thanks a lot url.zip Hello, I am doing a coursework which involves adding sub-totals to a grand total. <javascript> function update_total() { $total = 0; $total = parseFloat(document.getElementById('adult_single_cost').value) + parseFloat(document.getElementById('adult_return_cost').value) + parseFloat(document.getElementById('adult_allday_cost').value) + parseFloat(document.getElementById('senior_single_cost').value) + parseFloat(document.getElementById('senior_return_cost').value) + parseFloat(document.getElementById('senior_allday_cost').value) + parseFloat(document.getElementById('student_single_cost').value) + parseFloat(document.getElementById('student_return_cost').value) + parseFloat(document.getElementById('student_allday_cost').value) + parseFloat(document.getElementById('child_single_cost').value) + parseFloat(document.getElementById('child_return_cost').value) + parseFloat(document.getElementById('child_allday_cost').value); document.getElementById('total').value = $total.toFixed(2); </javascript> I want to output the grand total on another html page, i have tryed doing this by <script type="text/JavaScript"> <!-- function MM_popupMsg(msg) { alert(msg); } function MM_goToURL() { var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); } </script> <h3>Cost:<? echo$_GET['total']; ?></h3> If anyone can help me, i will be very greatful. Thank you, Jeeves. Hi All, I have a problem with centering a page to the screen on a new site. The page is 945px wide, and is fine in IE. But in both Firefox and Safari the page is moved to the left of the screen. Does anyone have an idea of what I have done wrong here? Here is a link to the page:- Website New poster here! Recently been creating a website using HTML & CSS from scratch using Notepad++. I was under the impression that the more flat, or spread out the design, browsers would squish it automatically to fit on the page. Apparently this is not the case. I current have a page where the main content starts 250 pixels from the left hand side of the screen, this causes some of the content disappear of the right hand side of on lower resolution screens. Should I be starting the content at the far left, or is there another web page design convention I should be following? I assume there is a way around this however I can't seem to find it! Any help would be greatly appreciated. These forums are a wealth of knowledge! Hey, Don't really know exactly how to pose this question, so i'll try to explain it in several ways, and maybe one of you can help me. I'm trying to find code, HTML or Java, which would cause the browser to automatically start focused on a different part of the page other than the top (as it normally does when a new page loads). For example, lets say i have an image or text several scrolls down on a page. I want the browser to automatically load the page centered on this. Any ideas on how to do this? Any help would help so much.... i tried to search for it, but i didn't know exactly how to phrase it so i wasn't able to find anything. Thanks again. When I create a test page using DIV and set it to 480 px wide, my iPod Touch does not have it initially filling the screen; I have to double tap it to have it fill the screen. What step am I missing? Many thanks... Todd |