Jump to content
  • 0

Налезают div блоки


Dim
 Share

Question

Здравствуйте. Проблема такая, есть код. При изменении размеров страницы картинка из блока listImg налезает на другие блоки, как этого избежать.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<title>Untitled Document</title>
<style type="text/css">
#list {
width: 50%;
margin:0 auto;

}

#listImg{
background-color:#FF6;
width:16%;
float: left;

}
#listRight {
margin-left:16%;

}

#listTitle {
background-color: #FFF;

}

#listDscrpt {
margin-top:2px;
background-color:#0F0;

}
</style>

</head>
<body>


<div id='list'>
<div id="listImg" align="center"><img style=" vertical-align: sub" src="0001.jpg" width="100" alt="Image" /></div>

<div id='listRight'>
<div id='listTitle'><p>Text</p>
</div>

<div id='listDscrpt'>Text
</div>
</div>
</div>


</body>
</html>

Edited by Dim
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
Здравствуйте. Проблема такая, есть код. При изменении размеров страницы картинка из блока listImg налезает на другие блоки, как этого избежать.

Попробуйте ставить размеры не в процентах а фиксированный т.е. px и т.д.

Link to comment
Share on other sites

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