Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-13-2012, 04:46 PM   PM User | #1
Satch
New to the CF scene

 
Join Date: Dec 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Satch is an unknown quantity at this point
IE 9 Headache

The following works for Safari, Chrome, and Firefox but not IE 9 (I do not care abut earlier versions). The left arrow does not appear in the active or hovered pager. In order to compensate for IE9 I put conditional css in the pages header to add some extra padding on the right of the pager. See flightsafety.org. Anyone have a clue as to why?


Code:
div.views-slideshow-ddblock-cycle-vsd-upright-30p div.custom-pager a {
	background-image: -webkit-linear-gradient(#f6f6f7, #d1d1d1); /* Chrome 10+, Saf5.1+ */
	background-image:    -moz-linear-gradient(#f6f6f7, #d1d1d1); /* FF3.6 */
	background-image:     -ms-linear-gradient(#f6f6f7, #d1d1d1); /* IE10 */
	background-image:      -o-linear-gradient(#f6f6f7, #d1d1d1); /* Opera 11.10+ */
	background-image:         linear-gradient(#f6f6f7, #d1d1d1);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6f6f7',endColorstr='#d1d1d1');
	color: #666;
	font-weight: bold;
	display:block;
	float:left;
	padding-left: 20px;
	padding-top: 10px;
	padding-right: 5px;
	font-family: "Lucida Grande", Arial, sans-serif;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: -1px;
	height: 46px;
	overflow: hidden;
	line-height: 1.2em;
	text-align: left;
	width: 175px;
}

div.views-slideshow-ddblock-cycle-vsd-upright-30p div.custom-pager a.activeSlide {
	background: url(../images/SLIDER_LEFT_ARROW.png) no-repeat -25px center; /* does not work in IE? */
	background-image: url(../images/SLIDER_LEFT_ARROW.png),
		-webkit-linear-gradient(#8cc63f, #56A00E); /* Chrome 10+, Saf5.1+ */
	background-image: url(../images/SLIDER_LEFT_ARROW.png),
		-moz-linear-gradient(#8cc63f, #56A00E); /* FF3.6 */
	background-image: url(../images/SLIDER_LEFT_ARROW.png),
		-ms-linear-gradient(#8cc63f, #56A00E); /* IE10 */
	background-image: url(../images/SLIDER_LEFT_ARROW.png),
		-o-linear-gradient(#8cc63f, #56A00E); /* Opera 11.10+ */
	background-image: url(../images/SLIDER_LEFT_ARROW.png), linear-gradient(#8cc63f, #56A00E);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#8cc63f',endColorstr='#56A00E');
	padding-right: 30px;
}

div.views-slideshow-ddblock-cycle-vsd-upright-30p div.custom-pager a:hover {
	background: url(../images/SLIDER_LEFT_ARROW.png) no-repeat -25px center !important; /* does not work in IE? */
	background-image: url(../images/SLIDER_LEFT_ARROW.png),
		-webkit-linear-gradient(#6facd5, #4272a4) !important; /* Chrome 10+, Saf5.1+ */
	background-image: url(../images/SLIDER_LEFT_ARROW.png),
		-moz-linear-gradient(#6facd5, #4272a4) !important; /* FF3.6 */
	background-image: url(../images/SLIDER_LEFT_ARROW.png),
		-ms-linear-gradient(#6facd5, #4272a4) !important; /* IE10 */
	background-image: url(../images/SLIDER_LEFT_ARROW.png),
		-o-linear-gradient(#6facd5, #4272a4) !important; /* Opera 11.10+ */
	background-image: url(../images/SLIDER_LEFT_ARROW.png), linear-gradient(#6facd5, #4272a4) !important;
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#6facd5',endColorstr='#4272a4') !important;
	color: #fff !important;
	padding-right: 30px;
}
Satch is offline   Reply With Quote
Old 09-13-2012, 08:51 PM   PM User | #2
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
The issue you are experiencing probably has to do with:

Code:
background: url(../images/SLIDER_LEFT_ARROW.png) no-repeat -25px center;
Try changing this in your IE-only stylesheet to something like this:

Code:
background-position: 5px center !important;
Things are different in IE, things that work in Chrome/FF are probably not appearing like they should be, they're appearing as you want them to.

Last edited by Sammy12; 09-13-2012 at 09:06 PM..
Sammy12 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:33 PM.


Advertisement
Log in to turn off these ads.