If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

applying the if IE conditional statement

Hi i have a problem where FF displays different on doing padding than does IE so i think i need to do the if IE statement.

I the past i have used the if ie inside of the head before on a html, file but this is going inside a php file.

Code:

<!-- for ie this works -->
<td width="150px" style="padding:30px 0px 0px 30px;">
<!-- for FF this works -->
<td width="150px" style="padding:20px 0px 0px 20px;">
<!-- and so i need to apply this but not sure of the proper placement,
do i just put it as is anywhere in the html or does it need to go inside
a style anchor or do i need to wrap a style with this. Just not sure. -->
<!--[if IE]>
<![endif]-->

IE uses the same padding as all the other browsers when in standards mode - so if it is not then you either don't have a doctype or IE isn't recognising it properly. No browser specific coding is ever required for padding when your page is correctly coded.