HTML - Position Changes Whenin Different Browers!
Hi everyone,
I just noticed a really weird problem with my website. I have an element on my webpage that is the image that says the word, "contact." It is on a z-axis, and it changes position when it is in Firefox and explorer. The weird thing is that there is another image on the x-axis, but it stays the same in both browsers. Does anyone know how I can fix this??? (the correct position is supposed to be just below the branch, as seen in explorer) http://heartless-ink.com/v2/portfolio2.html the html: <a href="http://www.twitter.com/notyourstar" target="_blank"><img class=imgA1 src="images/twitter.gif"></a> <a href="/contact.html" target="_blank"><img class=imgA2 src="images/cc.gif"></a> the css: .imgA1 { position:absolute; top: 65px; left: 471px; z-index:1;} .imgA2 { position:absolute; top: 49px; left: 510px; z-index:1;} Similar TutorialsHi 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. Howdy all, I have three scrolling divs that i want to be the height of the page, so i'm guessing position:absolute and height:100% will do that just fine. But i want these three scolling divs to be inside a position:fixed element so that they stay put when scrolling down the page. Is this possible? I dont think a pos:absolute will work nested inside a pos:fixed. How could i work around it? thanks! I have never been good with this... I cannot get an iframe to be positioned correctly on more than one computer. http://www.e-lusively.com I am using Firefox with 1280x800 and it looks fine for me. Ugh how can I get it to look good in any resolution? Please help... Hi I' try to work with div tag for the first time and I would lke to know how do I pu div tag in the center of the page. Margin-left it's not the rigt solution. Any other idea? Code: <div id="slideshowContainer"> <div id="imagecontainer"> <script type="text/javascript"> changeslides("initial") </script> </div> <div id="numberDiv"> <script type="text/javascript"> createnumbers() </script> </div> <div id="backforthbuttons"> <div><a href="javascript:goforward()" style="float: right"><img src="../images/buttons/foward.gif" border="0"></a> <a href="javascript:goback()"><img src="../images/buttons/back.gif" border="0"></a> </div> </div> </div> Hi all. I have a page at: http://bartending.com/forum/page.php?page=joke&type=1 My div entitled "Featured" is not lining up. Can any body tell me why? Thank you =) Light and Love and Healing to you, -Patrick Arden McNally Hey guys I am trying to build a website and I have an image I am trying to write over top of,so I have used a div tag and positioned it and it works. The only problem is when I view the site on another computer that has a different size computer the text is placed completely wrong but on mine it is perfect. Any way to fix this? Code: <div class="style1" style="position:absolute; margin:3px; padding:3px; left:850px; top:154px; width: 50px; height: 25px;"> <a href="page1.htm>1</a></div> Hi Comparing this code <div style="border:1px solid black; width:120px;height:25px; padding-top:0px;">hello</div> in Internet Explorer 9 and FireFox 4 shows, that the word 'hello' is not at the same vertical position. Is there a method, to adjust this? Thanks for your information. Patrick i want the blue bar stay at the top of <div if i used scroll of div code of div PHP Code: <style type="text/css" media="all"> #boxtable { /*the chat div container*/ text-align:left; margin:0 auto; margin-bottom:10px; padding:1px; background-color: #f0f0f0; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; border-right: 1px solid rgba(9, 9, 9, 0.125); height:400px; width:910px; overflow:auto; } </style> PHP Code: <div id="boxtable" > <div id="blueBarHolder" class="slim"> <div class=" fixed_elem" id="blueBar"> </div></div> Work closely with Development team to ensure timely completion of deliverable.<br> WorkcloselywithDevelopmentteamtoensuretimelycompletionofdeliverableorkcloselywithDevelopmentteamtoensuretimelycompletionofdeliverableorkcloselywithDevelopmentteamtoensuretimelycompletionofdeliverable Analyze, design, develop, implement, and maintain moderate to complex computer programs and subsystems<br> </div> i have tried PHP Code: <style type="text/css" media="all"> .slim #blueBar{ height:37px;} #blueBar{background-color:#3b5998;min-width:981px;width:100%;z-index:300} .fixed_elem{position:absolute; } </style> it worked but ****ed up the style.. picture in attackments thx for help Hi, As a newbie html can be a little overwhelming just because of the many different ways a task can be achieved. I'm looking for some advice on the best method to achieve something like this: I have 7 pieces of information about a site user, they are; Avatar 60 x 60px ScreenName DateJoined UserAttribute1 UserAttribute2 UserAttribute3 UserAttribute4 All bar the avatar are text. I would like the outcome to display something like this: Avatar ScreenName DateJoined UserAttribute1 UserAtteribute2 UserAttribute3 UserAttribute4 I'm unsure as to whether to put the avatar and text in 2 divs(left and right), and whether to use spans or lists for the text. Any advice would be appreciated. Thanks in advance. I want to position my slideshow in the center of the side. the buttons are positioned with css. http://javascript.lima-city.de/ Who can help ? Hello All, I have a problem with div position in my html page. I need two divs position=relative aligned with a single div. Basically I have a header panel, content panel (have two vertical column height changed dynamically) and a footer panel. So Content panel vertical column needs to align with header panel. I need all div tags position relative, so when every div increases in height bottom div sifted down automatically. I have this http://www.arunverma.info/webmaster_help/ Can sombody help me to short it out. Thanks in advance Sunil Hey, im working on a site for my School final project worth 30% of my mark.lol Anyways i made a simple table with a picture in it plus a heading. Everytime i make a table, it just it just stays right underneath my navigation. it never moves and i dont know how to move the entire table as a whole. Im new to coding so im not sure how to fix this problem. here is an example of my html and css code. -------------------------------------------------------------------------------------------------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Welcome to my Web Portfolio Site</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="Home1.css" /> </head> <div id="header"> <p><img src="Web Photos/banner.jpg" class="feature" width="450" height="90" /></p> </div> <body id="Home"> <div id="navigation"> <ul id="tabnav"> <li class="Home"><a href="Home.html">Home</a></li> <li class="About Me"><a href="#">About me</a></li> <li class="Application"><a href="#">Application</a></li> <li class="Careers"><a href="#">Careers</a></li> <li class="Links"><a href="#">Links</a></li> <li class="Gallery"><a href="#">Gallery</a></li> </ul> </div> <TABLE class="home" border="0" RULES=GROUPS > <THEAD> <TR> <TH>Welcome</TH> </TR> </THEAD> <TBODY> <TR> <TD><img src="Web Photos/banner2.jpg" class="feature" width="760" height="200" /></TD> </TR> </TBODY> -------------------------------------------------------------------------------------------------------- body { color: #000000; } #header p { text-align: right; padding-right: 2px; padding-left: 10px; } ul#tabnav { list-style-type: none; margin: 0; padding-left: 20px; padding-top: 0px; padding-bottom: 30px; border-bottom: 1px solid #7d7d7d; font: 20px Tahoma, arial, sans-serif; } ul#tabnav li { float: left; height: 20px; margin: 2px 2px 0 2px; padding: 4px; } #navigation a { text-decoration: none; } table.home th { text-align: left; color: #7d7d7d; font-family: 7px Tahoma, Verdana, Arial; } table.home th, table.home td { border: 1px solid #7d7d7d; padding-top: 5px; } a:link { color:#7d7d7d; } a:visited { color: #7d7d7d; } a:hover { text-decoration: none; color: #FFFFFF; } a:active { color: white; background-color: none; } -------------------------------------------------------------------------------------------------------- In IE7, 6, and 5 and only in IE7, 6, and 5 my flash navigation menu jumps around a little bit from page to page (no more than half of an inch or so per page, minor, but irritating). Probably an easy fix, but how? Do I need to wrap in a div first or should I just apply the rule to the td with an ID? And, should I use absolute positioning, relative, or neither? And I know I know navigation menu not good - I am working on text links for the bottom. One of the pages in question is below, but just navigate around the site and you will see what I am talking about. Much thanks! http://www.buildingblockshomedaycare.com/parents.html Hi, I am looking for the easiest and reliable solution to make the "View on Google Maps" image to look like here http://www.dublinbynumbers.com/troubleshooter.html instead of here http://www.dublinbynumbers.com/categories/cinemas The solution should work in both IE/FF and any screen resolution. Thanks in advance for your help, Sorin Hello everyone, I've go this code here for positioning the "comments and frieands" together in in a scroll box at the bottom of the page. But I'd like to put it in a sertante position. Could anyone plaese help me find out were and what to put in this code. And for more information this is a code I want to put within a "div" image and place it in relation to were the image is (0,0) not were the page starts (0,0). -------------------------------------------------------------------------------------------------------- <i class=i> <a href="http://xiii.us/ms/center-friends-and-comments"</a>scroll center friends and comments</a></i> </td></tr></table> </td></tr></table> </td></tr></table> <div class="myDClassFC"> <table><tr><td> <table class="off"><tr><td> <table><tr><td> <style> .i {display:none;} div.myDClassFC {height:400px; overflow:scroll; overflow-x:hidden} </style> <i class="i">!-END Block to put Friends and Comments in a Scroll Box-! </i> ----------------------------------------------------------------------------------------------------- Well I appreciate everyones thought. Hello everyone, I'm new here. I hope someone will help me with my problem. You can see it he http://kahoe.monline.dk/portfolie2/index.php EDIT: Problem 1 solved. Problem 1 is in the grey menu to the right. I've used php include_once to insert four div elements (with images and a little text), but they position themselves in a strange way. It's supposed to be a collumn. You can see the html file with the four elements he http://kahoe.monline.dk/portfolie2/globalmenu.html I should probably say that I've used javascript to make a hover effect with the images. (Do I need to include code in this post, or do you guys usually view CSS and HTML in the browser?) Problem 2 is with IE. I have IE 8 installed, so I don't know about other versions, but this one can't find the images on my website. It works fine in Firefox. What's wrong? Problem 3 is with the div element at the top of the page, the one which contains the text "Denne hjemmeside ses bedst med Firefox. Download Firefox her. " I can't get it to sit at the very top of the page. I've used body { margin: 0; padding: 0; } in the stylesheet already, but it's not enough apparently... i have a problem with position of the page i extended the site to screen, but now i have a problem with left and right box here i have tha code http://www.speedyshare.com/881657120.html i want to look like windows, but now the left and right box not stay in the same width one is higher and other is lower please if someone can help me Hi there, I'm trying to create a center column that holds information on my website that is centered to the page, but anchored in place so that if you re-size the window no other instances will overlap. I've taken the time to scrounge around the forum for an answer, but to no avail. I've bounced between using divs and tables for the past few days before finally realizing that I should probably ask for help - I'm a few weeks old to html, so I apologize if my question is somewhat rudimentary. I'm trying to find a way around actually cranking out the numbers and manually placing the images in the center. //EDIT// Here's the code I'm using in the beginning, with css: table { margin-left: auto; margin-right: auto; } And here is my site if you want to see what I mean: www.crazybunny.exofire.net/ Thanks! Hi all =) I have a page at: http://bartending.com/online_courses...newsletter.php The footer won't go to the bottom of the page. Can somebody please tell me what's wrong with this page? Thank you =) Light and Love and Healing to you, -Patrick Arden McNally |