- This topic is empty.
-
AuthorPosts
-
February 22, 2011 at 1:26 pm #31732
Comrad3
MemberHey there!
I’m having issues with my CSS displaying correctly in IE (big surprise)
This is what I want:
This is what my code displays in IE:
This is my code:
HTML:
Payment
Upload your document
Receive your edited document
CSS:
.store_progressbar {
border: 1px solid #000;
width: 293px;
margin-left: auto;
margin-right: auto;
-moz-border-radius: 5px;
/* drop shadow for all browsers, based on code from http://robertnyman.com */
-moz-box-shadow: 3px 3px 3px #000;
-webkit-box-shadow: 3px 3px 3px #000;
box-shadow: 3px 3px 3px #000;
/* For IE 8 */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000')";
/* For IE 5.5 - 7 */
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
}
.store_payment {
display: table-cell;
text-align: center;
font-family: Trebuchet MS;
font-size: 10px;
border-right: 2px solid #000;
padding-left: 3px;
padding-right: 3px;
-moz-border-radius-topleft: 4px;
-moz-border-radius-bottomleft: 4px;
background-color: #5370B8;
color: #eee;
}
.store_upload {
display: table-cell;
text-align: center;
font-family: Trebuchet MS;
font-size: 10px;
border-right: 2px solid #000;
padding-left: 3px;
padding-right: 3px;
background-color: #eee;
}
.store_recieve {
display: table-cell;
text-align: center;
font-family: Trebuchet MS;
font-size: 10px;
text-align: center;
padding-left: 3px;
padding-right: 2px;
-moz-border-radius-topright: 4px;
-moz-border-radius-bottomright: 4px;
background-color: #eee;
}I’m also using Curvycorners.
http://www.curvycorners.net/February 22, 2011 at 4:47 pm #58849soap
ParticipantWhy don’t you float payment, upload and receive left inside progressbar instead of using display:table-cell?
February 22, 2011 at 6:10 pm #58745TT_Mark
MemberI hate those Microsoft DX hacks. Horrible things that don’t always work out the way you want them to…
February 22, 2011 at 7:05 pm #58746Comrad3
Member
.store_payment {
float: left;
...
}.store_upload {
float: left;
...
}.store_receive {
float: left;
...
}
gets me this:
In Firefox, and the same issue as before in IE.
Although I just noticed I spelled “Receive” wrong in about 300 different places. Thank you Notepad++ for making hasty corrections that much easier.
Yeah, I completely agree. However I’ve always designed my sites to look the same in all browsers (I know, I know, it doesn’t always have to look alike…) The client likes drop shadow, and he uses IE, so I had to compromise.
Worse comes to worst I can just drop the shadow (facepalm) for IE and go without, but I like the look of it.
February 22, 2011 at 8:52 pm #58752soap
Participantgive the progress bar a background image of just the drop shadow and make sure you clear the floats.
February 23, 2011 at 3:03 pm #58797Comrad3
MemberI was hoping that I wouldn’t have to do that… But I suppose it’s just about the only thing I can do right now.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.