Hackerboard Wiki HaboBlog
Hackerboard bei Facebook Hackerboard bei Google+ Hackerboard bei Twitter

[HaBo]

 
(Web-) Design und webbasierte Sprachen Tipps & Tricks, Designabgleich, HTML & Javascript, Flash, ASP, PHP, Perl/CGI...

Content im Div-Container wird unter der Navigation angezeigt (IE 7)

Diskussion: Content im Div-Container wird unter der Navigation angezeigt (IE 7) im Forum (Web-) Design und webbasierte Sprachen, in der Kategorie Web, Network & Multimedia Palace; Anzeige Hi, dies ist meine erste Homepage mit PHP/CSS, ich hoffe ihr könnt mir helfen. Im Firefox wird alles richtig ...

Antwort
Alt 28.06.08, 23:33   #1 (permalink)
Senior Member
 
Registriert seit: 27.06.04
Cyberm@ster Leistung: Facit NTK
Likes: 0
Standard Content im Div-Container wird unter der Navigation angezeigt (IE 7)

Anzeige

Hi, dies ist meine erste Homepage mit PHP/CSS, ich hoffe ihr könnt mir helfen. Im Firefox wird alles richtig angezeigt, aber der Internet Explorer zeigt den Content-Container unter der Navigationsleiste an... Ich poste mal die CSS-Datei und die Hauptseite (die Homepage ist noch nicht online).

PHP   
PHP-Code:
<html>
 <head>
  <meta http-equiv="content-type" content="text/html" charset=ISO-8859-1">
  <meta name="keywords" lang="fr" content="">
  <title></title>
  <link rel="stylesheet" type="text/css" href="style.css">
 </head>

 <body>

  <div id="sitebox">
   <div id="header">
   </div>

   <ul id="navigation">
    <li><a href="index.php">Accueil</a></li>
    <li><a href="index.php?page=profil">Mon profil</a></li>
    <li><a href="index.php?page=approche">Approche g&eacute;n&eacute;rale</a></li>
    <li><a href="index.php?page=cible">Client&egrave;le cible</a></li>
    <li><a href="index.php?page=legislation">Cadre l&eacute;gal</a></li>
    <li><a href="index.php?page=contact">Contact</a></li>
   </ul>

   <div id="content">
    <?php
        
switch ($_GET["page"])
        {
         case 
profil :         include 'docs/fr/profil.php';
                                 break;
         case 
approche :     include 'docs/fr/approche.php';
                            break;
         case 
cible :        include 'docs/fr/cible.php';
                            break;

         case 
banques :        include 'docs/fr/banques.php';
                            break;
         
/*case editeurs :    include 'docs/fr/editeurs.php';
                            break;*/
         
case etablis :        include 'docs/fr/etablis.php';
                            break;
         case 
futurs :        include 'docs/fr/futurs.php';
                            break;
         case 
particuliers :include 'docs/fr/particuliers.php';
                            break;

         case 
legislation : include 'docs/fr/legislation.php';
                             break;
         case 
contact :        include 'docs/fr/contact.php';
                             break;
         default :            include 
'docs/fr/accueil.php';
   }
  
?>
 </div>

 <div id="footer">
  <?php
      
include 'docs/fr/footer.php';
  
?>
 </div>

 </div>

 </body>
</html>


CSS   
PHP-Code:
body {
    
width100%;
    
colorblackbackground-colorsilver;
    
font-size11ptfont-familyArial,sans-serif;
    
text-align center;
    }

{
    
margin0px 0px 1empadding0px;
    
color:white;
    
font-size11ptfont-familyArial,sans-serif;
    
text-align left;
}

div#sitebox {
    
width660pxmin-height 585px;
    
height auto;
    
margin20px autopadding 20px;
    
text-aligncenter;
    
background-color#333;
    
}

div#header {
    
margin 0px 0px 20pxpadding 0px;
    
border none;
    
backgroundurl("images/header.gif"no-repeat;
    
height 145px;
    }

/*div#header h1{
    margin: 0; padding: 0;

    /*border: none;
    color : white;
    text-align: center;
    font-size: 12pt;

    }*/

ul#navigation {
    
width140px;
    
margin0pxpadding0px;
    
floatleft;
    
border1px dashed silver;
    
background-color#693;/*#69f;*/
    
font-size11pt;
    }

ul#navigation li {
   
margin0pxpadding0px;
   list-
stylenone;
   }

ul#navigation a {
    
padding5px 0px;
    
displayblock;
    
text-decoration:none;
    
color:white
      
}

ul#navigation a:hover {
    
color#333; background-color: white;
    
font-weightbold;
      }

/*div#infobox {
    width: 140;
    margin : 0; padding : 10;
    float: right;
    border : 1px dashed silver;
    background-color : #69f;
    }*/

div#content {
    
width:476px;
    
min-height 300px;
    
height auto;
    
margin0px 10px 0px 160pxpadding10px;
    
border1px dashed silver;
    
background-color#693;
    
}

#content h1 {
    
margin0px 0px 1empadding0px;
    
color:white;
    
font-size12ptfont-familyArial,sans-seriffont-weight bold;
    
text-align left;
    }

#content h2 {
    
margin0px 0px 1empadding0px;
    
color:white;
    
font-size11ptfont-familyArial,sans-seriffont-weight bold;
    
text-align left;
    }

#content ul {
    
list-style inside circle;
    
color white;
    
text-align left;
    }

#content a {
    
colorwhite;
    
text-decoration underline;
    
/*background-image : url('images/link.gif');
    background-repeat : no-repeat;
    padding-left : 18px;*/
}

#content a:hover {
    
color#333;
    
background-color:white;
}

html div#content {
    
height300px;  /* Workaround gegen den 3-Pixel-Bug des Internet Explorer bis Version 6 */
    
}

div#footer {
    
margin 20px 0px 0pxpadding 10px;
    
border none;
    
background-color#693;
    
height 60px;
    }

div#footer p{
    
text-align center;
    
font-size 9pt;
    
font-familyArial,sans-serif;
    
color white;
    } 


// Edit: Zum einen hatte ich vergessen den Doctype anzugeben, zum anderen hab ich mit
Code:
<!--[if ie]>
  <link rel="stylesheet" type="text/css" href="style_ie.css">
  <![endif]-->
ein extra Stylesheet für den IE eingebunden. Jetzt hab ich eine Darstellung mit der ich leben kann.
Cyberm@ster ist offline   Mit Zitat antworten
Antwort
   
- Anzeige -

Werbung ist gerade online    

[HaBo] » Web, Network & Multimedia Palace » (Web-) Design und webbasierte Sprachen » Content im Div-Container wird unter der Navigation angezeigt (IE 7)
Themen-Optionen
Ansicht

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks sind aus
Pingbacks sind aus
Refbacks sind aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
cd/dvd laufwerk wird nur ab und zu angezeigt ToXiCity Hardware Probleme 2 02.01.09 19:28
IIS 6.0 , PHP 4.4.4 - IP wird nicht angezeigt ba2 Internet Allgemein 2 27.10.06 22:25
meine ip wird bei dc++ angezeigt pink (In)security allgemein 3 08.01.06 22:20
Menü unter Navigation Brainscan (Web-) Design und webbasierte Sprachen 7 16.12.01 13:29


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61