Ich habe es jetzt gelöst bekommen
Die Lösung heißt min-width
Vielen Dank für eure Hilfe
Die Lösung heißt min-width
Code:
<html lang="en"> <head> <meta charset="utf-8" /> <title>New</title> <style type="text/css"> .logo { float: left; width: 260px; height: 50px; background: green; } .nav-main { background: red; min-width:500px; } .nav-sub { background: blue; min-width:500px; } </style> </head> <body> <div class="header"> <div class="logo"> .logo </div> <div class="nav-main"> .nav-main </div> <div class="nav-sub"> .nav-sub </div> </div> </body> </html>
Kommentar