Currently I am working on a webpage and need to set a style only for IE. I am using a conditional comment:
<!--[if IE]>
<link rel="Stylesheet" href="../../IEstyles.css" rel="Stylesheet" />
<![endif]-->
Is this the best way of doing this or would using javascript be the best practice?
That’s nearly the best practice. You should probably instead be checking for
[if lt IE 9], because IE 9 supports CSS pretty well, but definitely don’t use browser-sniffing JavaScript. That’s almost always the worst solution to a problem.