We help IT Professionals succeed at work.
Get Started

CSS conditional if IE

pda4me asked
Last Modified: 2012-05-11
How do I alter the existing css code here to do a top margin of 20px if browser is IE 7?  I want it to be this for more current versions of IE and FF, but IE 7 is killing me and I need to adjust the top-margin in that case.

#slideshow {
border: 1px solid #e2e2e2;
background: #ffffff;
padding: 10px;
-moz-border-radius: 10px;
-khtml-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
margin: 0px 0px 20px 0px;
Watch Question
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE