css problem

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • css problem

    Hallo,

    Unzwar habe ich ein 2 Spalten Design in HTML5.
    Leider habe ich das Problem das sich, sobald die Rechte Splte größer als die Linke ist sich der Text in der Rechten spalte unter die Linke schiebt.
    Ich habe nun alles versucht und komme nicht weiter.

    Könntet ihr mir dabei helfen?

    Quellcode

    1. <div class="s_container">
    2. <section class="left_box">
    3. <aside>
    4. <ul>
    5. <li>text</li>
    6. </ul>
    7. </aside>
    8. </section>
    9. <section>
    10. <h2>{$NAME} </h2>
    11. <form method="post" action="contact.php">
    12. <fieldset>
    13. <legend>{$LANG.YOU_COSTUMER}</legend>
    14. <div>
    15. <label for="name" accesskey="U">{$LANG.NAME}</label>
    16. <input name="name" type="text" id="name" required="required" />
    17. </div>
    18. <div>
    19. <label for="street" accesskey="U">{$LANG.STREET} <small>(optional)</small></label>
    20. <input name="street" type="text" id="street" />
    21. </div>
    22. </fieldset>
    23. <input type="submit" class="send" name="send" value="{$LANG.SEND}">
    24. </form>
    25. </section>
    26. </div>
    Alles anzeigen


    Quellcode

    1. .s_container {
    2. position:relative;
    3. margin:0 auto;
    4. width:960px;
    5. padding-top: 40px;
    6. }
    7. .s_container label {
    8. display: inline-block;
    9. float: left;
    10. height: 1em;
    11. line-height: 1em;
    12. padding: 6px 5px 0;
    13. width: 155px;
    14. margin: 5px 0;
    15. clear: both;
    16. }
    17. .s_container input, .s_containert textarea, .s_container select {
    18. width: 220px;
    19. padding: 5px;
    20. color: #666;
    21. background: #f5f5f5;
    22. border: 1px solid #ccc;
    23. margin: 5px 0;
    24. font: "Lucida Grande", "Lucida Sans Unicode", Arial, sans-serif;
    25. -webkit-border-radius:5px;
    26. -moz-border-radius:5px;
    27. border-radius:5px;
    28. vertical-align: top;
    29. transition: all 0.25s ease-in-out;
    30. -webkit-transition: all 0.25s ease-in-out;
    31. -moz-transition: all 0.25s ease-in-out;
    32. box-shadow: 0 0 5px rgba(81, 203, 238, 0);
    33. -webkit-box-shadow: 0 0 5px rgba(81, 203, 238, 0);
    34. -moz-box-shadow: 0 0 5px rgba(81, 203, 238, 0);
    35. }
    36. .s_container textarea {
    37. width: 414px;
    38. }
    39. .s_container legend { padding:7px 10px; font-weight:bold; color:#000; margin-bottom:0 !important; margin-bottom:20px; }
    Alles anzeigen
    Bilder
    • design.png

      13,59 kB, 1.460×268, 324 mal angesehen