W3C home > Mailing lists > Public > www-html@w3.org > May 2005

CSS Positioning

From: Nick Mitin <nickm@tbms.ru>
Date: Tue, 24 May 2005 12:10:11 +0400
To: <www-html@w3.org>
Message-ID: <E1DaUUa-00076l-EN@bart.w3.org>

I'm developing a system of html elements positioning according to their
coordinates. Let's say the browser window is a form and elements are
controls:
Everything was cool until I started developing a container for the element.
The problem is that if I use <DIV> as a container positioning is not working
as I expect. So the question is how one can position elements inside the
absolutely positioned element
<html>
<style type="text/css">
..first {
  position: absolute;
  top: 100px;
  left: 100px;
}
..second {
  position: absolute;
  top: 100px;
  left: 300px;
}
..third {
  position: absolute;
  top: 10px;
  left: 10px;
}
</style>
<body>
<div class="first">
  <div class="third">
  </div>
</div>
<div class="second">
  <div class="third">
  </div>
</div>
</body>
</html>

 Is not working as expected.
Received on Tuesday, 24 May 2005 08:56:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:19:04 UTC