Link to home
Start Free TrialLog in
Avatar of Evan Cutler
Evan CutlerFlag for United States of America

asked on

isolating JQGRID CSS

Greetings,
I have a JQGrid that appears to be mis-displaying because it is sitting inside a PHP template that shares the same HTML tags when JQGrid populates.

http://www.cutlerplace.com/physician/messages.php

I need to isolate the JQGrid CSS so it displays regardless of the CSS around it.

Has anyone gone through this?
Thanks
Avatar of HugoHiasl
HugoHiasl

surround the grid by a <div id="my-grid-div"></div>

now you can change all css styles for the grid by adding the div name in front of it

a {....}
td {....]
gets

#my-grid-div a {...}
#my-grid-div td {...}

The styles will only be applied to the tags within the named div.
Avatar of Evan Cutler

ASKER

ok.  Thanks for the response.
I now have this fun issue.

http://www.cutlerplace.com/physician/messages.php

Please help
Thanks.
It appears that the template is pushing their own css agenda to my grid.
I'll have to figure out how to deal with that first.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Evan Cutler
Evan Cutler
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I changed my mentality.