View Single Post
Old 12-11-2012, 02:31 PM   PM User | #1
durangod
Senior Coder

 
Join Date: Nov 2010
Posts: 1,177
Thanks: 214
Thanked 31 Times in 30 Posts
durangod is on a distinguished road
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]-->

thanks


i just tried this no good, the content is all over the place lol


Code:
        <!--[if IE]>
             <td width="150px" style="padding:30px 0px 0px 30px;">
           <![endif]-->

           <!--[if !IE]>
             <td width="150px" style="padding:20px 0px 0px 20px;">
           <![endif]-->

Last edited by durangod; 12-11-2012 at 02:53 PM..
durangod is offline   Reply With Quote