Jump to content


Photo

Looks wrong in different resolutions


  • Please log in to reply
1 reply to this topic

#1 me1000

me1000
  • Members
  • PipPipPip
  • Advanced Member
  • 183 posts

Posted 10 April 2006 - 08:52 PM

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;;;

/***********************************************/
/* 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 **********************/

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

#2 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 18 April 2006 - 02:15 AM

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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users