Jump to content
  • 0

Резиновый сайт на div'ах


Webscripter
 Share

Question

У меня такой макет:

image.png

Вот код, который я набрал:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>...</title>
<style>
body {
margin: 0px;
}
#container {
display: inline-block;
}
#wrap {
display: inline-block;
margin: 10px;
padding: 5px;
background: yellow;
}
#header {
height: 50px;
background: green;
}
#content {
float: left;
min-width: 200px;
background: orange;
}
#right {
float: left;
background: #a5a530;
}
</style>
</head>
<body>

<div id="container">
<div id="wrap">
<div id="header">Header</div>
<div id="content">Flash</div>
<div id="right">Menu</div>
</div>
</div>

</body>
</html>

Но даже то, что у body стоит display: inline-block не сберегает страницу от того, что правая колонка при уменьшении размеров окна съезжает вниз. min-width у body ставить нельзя, т. к. в правой части должно располагаться flash-приложение, размеров которого я знать не могу, а следственно, и что подставлять в min-width тоже. Как решить такую проблему?

Заранее благодарен.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy