CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 21st, 2004, 01:56 AM
sileebailey sileebailey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 48 sileebailey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 49 sec
Reputation Power: 5
Question css pixel issue navigator/ie

Hi there,

I am back with another browser issue with css. When I set the position from the top on the center logo it shows correctly at top: 15px in IE but not in Navigator. To make it ok in Navigator I have to put it at 17px and then its off in IE.
I would love some help as i have a similar problem occuring in another site which I have also been trying to solve.
Here is the link: http://www.paintyourplace.com/emerald/

Here is the CSS:

body{
font-family: verdana, helvetica, arial, sans-serif;
margin: 0px 0px 0px 0px;
padding: 0px;
font-size:12px;
color: black;
background-color: #FFFFFF;
scrollbar-arrow-color:#003366;
scrollbar-face-color:#0C5331;
scrollbar-shadow-color: #9FB304;
scrollbar-highlight-color: #FFFFFF;
scrollbar-track-color: #CCCCCC;

}


#menuList {
margin: 0px;
padding: 0px;
}

#menuList ul {
margin: 0px;
padding: 0px;
}

#menuList li {
display: inline;
list-style: none;
}

a.actuator {
background-color: transparent;
color: #000;
font-size: 12px;
margin: 0px;
padding: 3px 6px;
text-decoration: none;
}

a.actuator:hover {

color: #990000;
}


.menu {
color: #000;
background-color: #EEE;
border: 1px solid #CCC;
position: absolute;
visibility: hidden;
}

.menu li a {
background-color: #EEE;
color: #000;
display: block;
font-size: 12px;
line-height: 1.75em;
margin: 0px;
padding: 0px 10px;
text-decoration: none;
}

.menu li a:hover {
background-color: #0C5331;
color: #EEE;
}

span.key {
text-decoration: underline;
}

#homeMenu { width: 120px; }
#aboutMenu { width: 120px; }
#productsMenu { width: 120px; }
#careersMenu { width: 120px; }
#customerMenu { width: 120px; }
#healthcareMenu { width: 120px; }
#contactMenu { width: 120px; }

a{
color:#990000;
font-weight:normal;
text-decoration:none;
}
a:visited{
color:#005940
}
a:hover{
color:#990000;
text-decoration:underline;
}



#mainMenu {

text-align: center;
color: #000;
margin: 0px;
padding: 0px 0px 2px 20px;
}

DIV.jill_toplogo{
align: left;
}

DIV.jill_leftgreen{
top: 75px;
background-color: #0C5331;
height: 95px;
position:absolute;
width: 50%;
}
DIV.jill_rightblue{
left: 50%;
top: 75px;
background-color: #254E7C;
height: 95px;
position:absolute;
width: 50%;
}

DIV.jill_centered_logo{
position:relative;
text-align: center;
top: 15px;


}
DIV.jill_greyback{
padding-top: 112px;
background-color: #E1E5E0;
position: absolute;
top: 60px;

width: 100%;
text-align: center;
font-size: 12px;


}

DIV.mainBox {
position: absolute;
top: 230px;
font-family: verdana, helvetica, arial, sans-serif;
font-size:12px;
left: 57px;
width: 80%;

}
#bottomText{
padding: 0px;
margin-top: 20px;
margin-bottom: 10px;
margin-right: 20%;
margin-left: 20%;
background: none;
border: none;
border-top: none;
text-align:center;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 10px;
color: #ccc;
}

THANKS!!!!

Last edited by sileebailey : April 21st, 2004 at 01:07 PM. Reason: sample at different URL

Reply With Quote
  #2  
Old April 21st, 2004, 02:45 AM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,555 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 7 h 49 m 53 sec
Reputation Power: 630
I think I'm missing a level of nesting, so this isn't gospel. In the following,
Code:
DIV.jill_leftgreen{
top: 75px;
background-color: #0C5331;
height: 95px;
position:absolute;
width: 50%;
}
DIV.jill_rightblue{
left: 50%;
top: 75px;
background-color: #254E7C;
height: 95px;
position:absolute;
width: 50%;
}

DIV.jill_centered_logo{
position:relative;
text-align: center;
top: 15px;
is there a reason for the logo div and the filler divs to have different placement references (position properties)? Something to play with—remove the top attribute from the logo div and see where its normal position would be in each browser. It may give you a clue about the 2px offset.

cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

Ask a better question, get a better answer.

Reply With Quote
  #3  
Old April 21st, 2004, 07:05 PM
sileebailey sileebailey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 48 sileebailey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 49 sec
Reputation Power: 5
Hi Gary,

Thanks for the advice, I set the centered logo to postion: absolute and that solved the pixel issue. However, now I can't get it to center. I have tried all the things in my arsenal and I can see its some sort of interaction but am not sure what. I would love anymore feedaback. Here is the current .css for the items in quesiton:

DIV.jill_leftgreen{
top: 75px;
background-color: #0C5331;
height: 95px;
position:absolute;
width: 50%;
}
DIV.jill_rightblue{
left: 50%;
top: 75px;
background-color: #254E7C;
height: 95px;
position:absolute;
width: 50%;
}

DIV.jill_centered_logo{
position:absolute;
text-align: center;
top: 75px;



}
DIV.jill_greyback{
padding-top: 112px;
background-color: #E1E5E0;
position: absolute;
top: 60px;
width: 100%;
text-align: center;
font-size: 12px;

Thanks
Jill

Reply With Quote
  #4  
Old April 22nd, 2004, 12:31 AM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,555 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 7 h 49 m 53 sec
Reputation Power: 630
Just go with the flow. Put this little bit wherever it belongs in the flow.
Code:
<style type="text/css">
#right {
    width: 50%;
    height: 95px;
    position: absolute;
    right: 0px;
    top: 15px;
    background: #f88;
    }

#left {
    width: 50%;
    height: 95px;
    position: absolute;
    left: 0px;
    top: 15px;
    background: #88f;
    }

#logo {
    position: relative;
    width: 33%;
    height: 95px;
    margin: 0px auto;
    top: 15px;
    background: white;
    }

#gray {
    position: relative;
    height: 125px;
    background: #ddd;
    }
</style>


<body>
  <div id="gray">
    <div id="right"> </div>
    <div id="left"> </div>
    <div id="logo"><h1>Generic Logo</h1> </div>
  </div>
</body>
cheers,

gary

Reply With Quote
  #5  
Old April 22nd, 2004, 02:25 AM
sileebailey sileebailey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 48 sileebailey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 49 sec
Reputation Power: 5
HI Gary,

Thanks for the feedback, I can't seem to get it to work right off, but I"ll try fiddling around a bit more.

Cheers,
Jill

Reply With Quote
  #6  
Old April 22nd, 2004, 01:59 PM
sileebailey sileebailey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 48 sileebailey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 49 sec
Reputation Power: 5
Thanks again,
I ended up putting the green and blue and logo sections into another box and that seems to have solved the problems for me.

Cheers,
Jill

Reply With Quote
  #7  
Old April 23rd, 2004, 12:49 AM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,555 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 7 h 49 m 53 sec
Reputation Power: 630
Quote:
I ended up putting the green and blue and logo sections into another box…
Sorry, guess I didn't make that clear in my example.

gary

Reply With Quote
  #8  
Old April 27th, 2004, 04:31 PM
sileebailey sileebailey is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 48 sileebailey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 49 sec
Reputation Power: 5
Hi Gary,

I probably skimmed right through it.....thanks again for the help!

Jill

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > css pixel issue navigator/ie


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway