[CSS] Div Contrainer will nicht wirklich

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [CSS] Div Contrainer will nicht wirklich

    Hi,
    habe 3 Div Container.
    Eines Links, eines in der Mitte und eines Rechts.
    Wenn ich nun aber Rechts ein Container hinzufügen will,
    welche UNTER dem anderen "Rechten" Container ist, geht dies nicht wirklich.
    Es wird der Container rechts neben dem anderen rechten container angeordnet.
    Warum?

    PHP Code:
    #links{
     
    border:1px #999999 solid;
     
    font-size:.9em;
     
    margin:20px;
     
    width:140px;
     
    padding:3px;
     
    float:left;
    }

    #mitte{
     
    border:1px #999999 solid;
     
    background:#fff;
     
    width:550px;
     
    margin:20px;
     
    padding:3px;
     
    float:left;
    }

    #rechts{
     
    border:1px #999999 solid;
     
    margin:20px;
     
    width:140px;
     
    padding:3px;
     
    float:left;


  • #2
    Mach im rechten Container drin nochmal 2 Container und die dann untereinander.

    Comment


    • #3
      Es wird der Container rechts neben dem anderen rechten container angeordnet.
      Warum?
      Entferne float bei #rechts und der nächste div kommt untenran
      Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

      [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
      Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

      Comment


      • #4
        ..oder gibt dem Nächsten div noch ein clear, denn wer floatet, sollte auch clearen...

        mfg

        Comment

        Working...
        X