Jump to content

Looks wrong in different resolutions


me1000

Recommended Posts

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
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.