Jump to content
  • 0

Как сделать чтобы DIV выравнивался по ширине?


antonP
 Share

Question

Как сделать чтобы DIV растягивался в ширину по мере написания в н?м контента...

в IE работает правильно а в Mazille не тянется

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<head>
<style type="text/css">

#d1{width:1%; border:#f00 solid 1px}

</style>
</head>
<body>
<div id="d1">приветприветпривет</div>
</body>
</html>

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

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