Override CSS Rules Problem

GK User
Thu Feb 05, 2015 11:33 am
Hello, I am doing a lot of trial error for the CSS.

The most common problem that I have is that in browser Developper Tools console things will work when I change the attributes. But when it comes to write them down on the override.css, I'm sorta havin' a 50% ratio success.

Like for this code for example, instruction 1 and 3 works while 2 and 4 doesn't:

Why is that? Is there something wrong in my code?
I don't think there is any conflict with another @media rule.

It looks like the gk.stuff.css sheet cannot be overridden.

Anyway, I'm just a beginner...
Please help.

Regards

Code: Select all
@media only screen and (max-width:840px) {
   #gkHeaderLeft {
      height: 124px;

}
}

@media only screen and (max-width:840px) {
   .nsp-nsp-763 .gkResponsive img.nspImage {
      width: 78%!important;
}
}

@media only screen and (max-width:1040px) {
   .gkIsWrapper-gk_university figcaption p {
      line-height: 22px;
}
}
@media only screen and (max-width:1040px)
   .gkIsWrapper-gk_university figcaption h2  {
      width: 100%;
}
}



This is for the header text in the slides and the NSP module image height.
http://gator4199.hostgator.com/~lgt2015/


EDIT: Correction, only rule 1 works. Is it the # sign vs. the "." sign at the beginning of the class?
User avatar
Platinum Boarder

GK User
Thu Feb 05, 2015 4:00 pm
Could you please place all 4 rules just at the beginning of override.css for the tim being?
User avatar
Moderator


cron