I am facing an issue with a modal window that I dynamically load onto the client's website. The modal includes certain CSS styles, but sometimes these styles cause my form to break. For instance, I have an input with the class
.my_btn {
background: none repeat scroll 0 0 #2f889a !important;
border: 0 none !important;
border-radius: 0.3em !important;
color: #fff !important;
cursor: pointer !important;
...
}
that applies my styles, but the client's site may already have a style like:
input[type="submit"]{...}
which overrides my CSS. I have some ideas on how to fix this problem, but they are cumbersome and not very flexible. Can anyone provide guidance on how to anticipate and address all possible issues?