2013-08-09 4 views
0

J'essaie un guide de YouTube, mais je ne peux pas afficher les éléments right_aside et left_aside sur mon écran. J'ai cherché des heures maintenant, et je ne peux pas trouver le problème. Ai-je manqué quelque chose?Éléments hors côtés ne montrant pas

Ceci est mon HTML:

<!DOCTYPE html> 
<html lang="en"> 

    <head> 
     <title>my websitebeta</title> 
     <meta charset="utf-8"> 
     <meta name="keywords" content=""> 
     <meta name="description" content=""> 
     <link rel="stylesheet" type="text/css" href="indexStyle.css" /> 
    </head> 

    <body> 
     <header id="main_header"> 
      <div id="second_header"></div> 
     </header> 
     <menu id="main_menu"></menu> 
     <div id="main_wrapper"> 
      <table width="100%" cellpadding="0" cellspacing="0" border="0"> 
       <tr> 
        <td valign="top" width="180"> 
         <aside id="left_aside"></aside> 
        </td> 
        <td> 
         <section id="main_content"></section> 
        </td> 
        <td valign="top" width="180"> 
         <aside id="right_aside"></aside> 
        </td> 
       </tr> 
      </table> 
     </div> 
     <footer id="main_footer"></footer> 
    </body> 

</html> 

Ceci est mon CSS:

*{ 
    padding: 0px; 
    margin: 0px; 
} 
body{ 
    color:#000; 
    font-size: 15px; 
    font-family: Arial, Helvetica, sans-serif; 
    background: #FFF; 

} 
#main_header{ 
    width:100%; 
    height:100px; 
    background: #F90; 

} 
#second_header{ 
    min-width:960px; 
    height:60px; 
    padding:20px; 
    margin:0px auto 0px; 

} 
#main_menu{ 
    width: 100%; 
    height: 40px; 
    background: #09F; 

} 

#main_wrapper{ 
    min-width:1000px; 
    margin-top: 0px; 
    margin-bottom: 0px; 

} 
#left_aside{ 
    width: 180px; 
    min-height:700; 
    background: #9f0; 
} 

#main_content{ 
    margin:0px 20px 0px; 
    min-height:700; 
} 
#right_aside{ 
    width: 180px; 
    min-height:700; 
    background: #f00; 
} 
#main_footer{ 
    width: 100%; 
    height: 50px; 
    background: #09F; 
    margin: 0px; 
} 
+1

Vous n'avez aucune unité pour votre min-height –

+0

Quelques suggestions pour votre question: Quel navigateur? Qu'attendez-vous par rapport à ce que vous voyez? – Mayo

+0

Vous utilisez des tables pour créer la mise en page Je vous recommande d'utiliser divs à la place – 1ry

Répondre

1

On dirait que vous avez oublié le px après votre min-height dans les deux apartés gauche et à droite.

Il devrait ressembler à: min-height:700px;

Bonne chance!

+0

Bon oeil :) +1. – Shivam

+0

Merci beaucoup! tu as un bon oeil. –

+0

Pas de problème - si j'ai aidé s'il vous plaît upvote la réponse et cliquez sur la coche pour accepter! :) –