forgot password?


   
 
Conditional Comments not working in IE!?!?!?!!?? 
Posted: 20 March 2008 11:12 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  4
Joined  2008-03-20

I’m using the following bit of code inside of my page.  I have two columns of equal size floating inside of a div id="main content”.  The two columns have fixed sizes so there should be a 20px “gutter” in the middle if floating them both left and right respectively.  Funny thing is that it was working for a sec, then I must have messed something up, cause it’s not working now.  I imagine it’s something simple I’m overlooking… I’m hoping a few more eyes are better than the two I’ve been using for the past hour or so.

<HTML>
<
HEAD>
<
TITLE>website</TITLE>
<
META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

<
STYLE TYPE="text/css">
<!--

#header {
    
position:relative;
    
width:940px;
    
height:164px;
}

#sidebar {
    
position:relative;
    
floatleft;
    
width:200px;
    
height:1186px;
}

#main-content {
    
background-colorgreen;
    
position:relative;
    
padding20px;
    
float:right;
    
width:700px;
    <!--
[if IE]>width740px;<![endif]-->
    
height2000px;
}
     
#topsection {
          
position:relative;
          
width:700px;
          
height:255px;
          
margin-bottom20px;
     
}
      
     
#section-bar {
          
position:relative;
          
width:700px;
          
height:29px;
          
margin-bottom20px;
     
}
      
     
#content-column1 {
              
background-colorblue;
                 
position:relative;
                
clearboth;
                
floatleft;
          
width:340px;
          
height:755px;
     
}
      
     
#content-column2 {
               
background-colororange;
                
position:relative;
                
floatright;
          
width:340px;
          
height:755px;
     
}
         
         
#row {
         
margin-bottom20px;
         
}
         
         
#pic {
                 
background-colorgreen;
                 
floatleft;
                
width110px;
         
}
         
         
#description {
                 
background-colorred;
                 
floatright;
                
width210px;
         



#footer {
    
position:relative;
    
width:940px;
    
height:150px;
}

-->
</
STYLE>

</
HEAD>
<
BODY STYLE="background-color:#FFFFFF; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px;">
<
DIV ID="" align="center">
         
       <
DIV ID="header">
                   <
IMG SRC="images/header.gif" WIDTH=940 HEIGHT=164 ALT="">
       </
DIV>
         
         <
DIV ID="content" style="width: 940px;">
                 
              <
DIV ID="sidebar">
                    
                <
IMG SRC="images/sidebar.gif" WIDTH=200 HEIGHT=1186 ALT="">
          
                    </
DIV>
                    
          <
DIV ID="main-content">
                
                            <
DIV ID="topsection">
                       <
IMG SRC="images/topsection.gif" WIDTH=700 HEIGHT=255 ALT="">
              </
DIV>
              
              <
DIV ID="section-bar">
                       <
IMG SRC="images/section-bar.gif" WIDTH=700 HEIGHT=29 ALT="">
              </
DIV>
              
              <
DIV ID="content-column1"
                            </
DIV>
              
              <
DIV ID="content-column2"world
                            
</DIV>

          </
DIV>
                    
     </
DIV>
         
     <
DIV ID="footer">
          <
IMG SRC="images/footer.gif" WIDTH=940 HEIGHT=150 ALT="">
     </
DIV>
         
</
DIV>
</
BODY>
</
HTML>

Any ideas?

Thanks

Profile
 
 
Posted: 28 March 2008 07:32 AM   [ Ignore ]   [ # 1 ]  
Newbie
Rank
Total Posts:  26
Joined  2008-03-05

Would like to see a link to the site in question?
Try this instead

#main-content {
    background-colorgreen;
    
position:relative;
    
padding20px;
    
float:right;
    
width:700px;
    
height2000px;
}

html #main-content { width: 740px; }

Also why do you have height @ 2000px;

 Signature 

The Share Some Foundation
Gourmet Kettle Corn Popcorn

Profile