5 replies [Last post]
hjp
Offline
newbie
Last seen: 3 years 4 weeks ago
Joined: 2011-11-16
Posts: 3
Points: 6

Bit of a css newbie here, and have been on a steep learning curve lately mostly from looking at other people's templates. Anyway, I have created this website http://greenland.site40.net/ for our department, but seem to have trouble with the slider not loading images in chrome. it all works fine locally, so am wondering if it could be a problem on the servers?

any other feedback or comments would be most welcome too. (note, some of the text and pages still need filling out).

thanks

hjp
Offline
newbie
Last seen: 3 years 4 weeks ago
Joined: 2011-11-16
Posts: 3
Points: 6

been looking more into it and

been looking more into it and have got the images to load in the slider by adding '!important' tags to width and height properties of the .pic element. I still don't understand why chrome is not loading the jquery easing plugin...

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 5 weeks 3 days ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2259

If you need !important then

If you need !important then you probably have a specificity issue. I was going to look at the site in Chrome but I forgot that I don't have Chrome anymore. It has too many issues so I don't bother testing with it anymore. Deleted it.

Ah, it is a specificity issue because the cruddy jQuery plug-in writes inline styling which overrides anything in the stylesheet. !important is unfortunately necessary when using poorly planned plug-ins. It would be better for the plug-in author to include a style sheet with the plug-in instead of having it write inline styling to the markup. At least you get your money's worth though.

rqsulfates
rqsulfates's picture
Offline
newbie
Changsha
Last seen: 3 years 4 weeks ago
Changsha
Timezone: GMT+8
Joined: 2011-11-18
Posts: 1
Points: 1

I use chrome too

Hi to all,
I use chrome too, I will see your sites on my computer.

hjp
Offline
newbie
Last seen: 3 years 4 weeks ago
Joined: 2011-11-16
Posts: 3
Points: 6

thanks for looking

thanks for looking verschwindende. don't think i will be using this plugin again any time soon.

Will leave it how it is for now...the slider kind of works now that the images appear, and it only seems to be a problem in chrome so not the end of the world.

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 5 weeks 3 days ago
Timezone: GMT-5
Joined: 2009-10-09
Posts: 2037
Points: 2259

hjp wrote: thanks for looking

hjp wrote:

thanks for looking verschwindende. don't think i will be using this plugin again any time soon.

Will leave it how it is for now...the slider kind of works now that the images appear, and it only seems to be a problem in chrome so not the end of the world.

Yeah, it's not bad. Smile

This is the only time I would give in to using !important. That is when a third-party script adds inline styling !important is sometimes necessary to overcome it. It shouldn't be that way but it is.