firefox vs IE - some content moved the entire column…
Posted: 07 November 2008 12:29 PM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2008-11-07

I’m using a wordpress theme with a 2 sidebar layout.  My problem is that only certain content in the sidebar when you hover over it moves the entire column move down below the left column in IE.  It works perfectly with firefox…I’ve never seen this before.

Here’s the code:

.sidebar-ads {
    float
left;
    
width328px;
    
margin0px;
    
padding10px;
}
.sidebar-ads img {
    border
2px solid #F5F5F5;
    
margin0px 5px 5px 0px;
    
padding0px;
    
floatleft;
}
.sidebar-ads2 {
    float
left;
    
width308px;
    
margin0px;
    
padding10px 20px;
}
.sidebar-ads2 p {
    font
-size13px;
    
line-height18px;
    
color#FFFFFF;
    
margin8px 0px 0px 10px;
    
padding5px;
    
floatleft;
    
width276px;
    
background#990000;
    
font-family"Trebuchet MS"Tahoma"VAGRounded BT"Verdana;
    
font-weightbold;
    
border1px solid #990033;
}
.sidebar-ads2 p a {
    color
#F8F8F8;
    
text-decorationunderline;
}
.sidebar-ads2 p a:hover {
    color
#FFFFCC;
    
text-decorationnone;
}
.sidebar-ads2 img {
    border
2px solid #F5F5F5;
    
margin0px 0px 8px 12px;
    
padding0px;
    
floatleft;
}
.sidebar-ads2 img:hover {
    border
2px solid #CCCCCC;
    
margin0px 0px 8px 12px;
    
padding0px;
    
floatleft;
}
.sidebar-ads2 h3 {
    font
-size18px;
    
line-height24px;
    
font-weightbold;
    
color#000000;
    
margin0px 0px 8px;
    
padding0px;
    
floatleft;
    
width308px;
    
border-bottom1px solid #ededed;

Is there something I should be adding to ensure IE can read the css properly?

Profile
 
 
Posted: 14 November 2008 12:25 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  8
Joined  2008-11-14

Hi Fergus,

It sounds to me like an issue whereby IE makes a mess of the padding, basically it expands the box width and causes the width of the contents (which you carefully worked out I’m sure) to expand beyond the total width of the page container div or body tag. It’s a simple issue to solve but I’d need a link to the WP page so that I can have a look at the markup.

Profile
 
 
Posted: 15 November 2008 12:04 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  2
Joined  2008-11-07

thanks, I’ve emailed you the link…

Profile