Jump to content
  • 0

растягивание по вертикали


B@M
 Share

Question

В общем не могу растянуть слой по вертикали

CSS

#d1{width:700px;
position: absolute;
background-image:url(images1.gif);
background-repeat:repeat-y;
margin-left:20%;
padding-left:12px;
height:100%;
}
#d2{ height:100%;
width:650px;
background-image: url(images2.gif);
background-repeat:repeat-y;}

HTML

<div id="d1">
<div id="d2"> content </div></div>

в Opera работает а с IE не получется что я делаю не так.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Ленитесь пользоваться гуглем

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<title></title>
<style type="text/css">
/*<![CDATA[*/
html, body {
margin: 0;
padding: 0;
height: 100%;
}

#d1{
width:700px;
position: absolute;
background-image:url(images1.gif);
background-repeat:repeat-y;
margin-left:20%;
padding-left:12px;
height:100%;
background-color: #FF9900;
}
#d2{
height:100%;
width:650px;
background-image: url(images2.gif);
background-repeat:repeat-y;
background-color: silver;
}
/*]]>*/
</style>
</head>

<body>
<div id="d1">
<div id="d2"> content </div></div>
</body>

</html>

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 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