me1000 Posted April 10, 2006 Share Posted April 10, 2006 Ok I just made a subnav javascript with css but it only looks right in 1024x768 I had a friend tell me that it was out of align with his computer (running at 800x600) im sure its the same way for every resulution.heres the css script;;;[code]/***********************************************//* HTML tag styles *//***********************************************/body, td, th { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000;}body { background-color: #738799;}a { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #FFFFFF;}a:visited { color: #FFFFFF; text-decoration: none;}a:hover { color: #CCCCCC; text-decoration: underline;}a:active { color: #CCCCCC; text-decoration: none;}a:link { text-decoration: none;}/**********************************************/************* globalNav styles ****************/#globalNav{position: relative;top: 25px;width: 100%;min-width: 640px;height: 25px;color: #FFFFFF;padding: 0px;margin: 0px;}#globalNav img{ margin-bottom: 0px; }#gnl { position: absolute; top: 5px; left:0px;}#gnr { position: absolute; top: 5px; right:0px;}#globalLink{ position: absolute; top: 20px; height: 22px; min-width: 640px; padding: 0px; margin: 0px; left: 325px; z-index: 100;}a.glink, a.glink:visited{ font-size: 12; color: #ffffff; margin: 0px; padding: -2px -2px -2px -2px; font-weight: 600; /*border-right: 1px solid #000000;*/}a.glink:hover{ text-decoration: underline;}.skipLinks {display: none;}/************ subglobalNav styles **************/.subglobalNav{ position: absolute; top: 40px; left: 325px; min-width: 640px; height: 10px; padding: 0px 0px 0px 10px; visibility: hidden; color: #215476; font-weight: bold;}.subglobalNav a:link, .subglobalNav a:visited { font-size: 12; color: #000000;}.subglobalNav a:hover{ color: #FF6600;}.subglobalNavnolink{ position: absolute; top: 40px; left: 325px; min-width: 640px; height: 10px; padding: 0px 0px 0px 10px; visibility: hidden; color: #000000; font-weight: bold;}/********************* end **********************/[/code]the page is aligned in the center of the page, the only way around it would be align it to the left but I dont want to do that, I want to keep it in the center. Please help!Thanks Quote Link to comment https://forums.phpfreaks.com/topic/7060-looks-wrong-in-different-resolutions/ Share on other sites More sharing options...
Ninjakreborn Posted April 18, 2006 Share Posted April 18, 2006 i copied this to my local drive saved it as test.css, and tested it, and as I thought go to the url.[a href=\"http://jigsaw.w3.org/css-validator/validator\" target=\"_blank\"]http://jigsaw.w3.org/css-validator/validator[/a]anytime your css has errors it can cause problems in some browsers, fix those errors, and revalidate it, do it until it passes, if you still have the same issue, then you might have to set the width or height tags in the external css file so it knows what to set them at automatically when the browser loads the website. Quote Link to comment https://forums.phpfreaks.com/topic/7060-looks-wrong-in-different-resolutions/#findComment-27997 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.