1

sketch

Hey, I have a big problem with my container-sketch. How can I realize this ? When I set the width from the two navigations (blue container) there are under the logo (red container). The two navigation will run across the screen, right next to the logo. If I resize the browser window, the two navigations should NOT slide under the logo. Has anybody a example for me ?

<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;
        }

        .nav-sub {
            background: blue;
        }

    </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>

Patrik
  • 1,119
  • 5
  • 18
  • 37

2 Answers2

1
.header{
 min-width:320px;  
}

check example

Arthur Halma
  • 3,943
  • 3
  • 23
  • 44
1

Try adding width to the nav-main and nav-sub

See http://jsbin.com/isuxu4 for a demo

Clyde Lobo
  • 9,126
  • 7
  • 34
  • 61