HTML and CSS Reference
In-Depth Information
</div>
</div>
</body>
</body>
</html>
</html>
The style="position: absolute; top: 50px; left: 50px;" code is an example of in-
line CSS in an HTML page. It tells the browser to render the content at the absolute position
of 50 pixels from the top of the page and 50 pixels from the left of the page.
WARNING
This <div> might position the Canvas in the web browser, but it will not help us when we try to cap-
turemouseclicks ontheCanvas. In Chapter 5 ,wewill discussawaytobothposition theCanvas and
capture mouse clicks in the correct locations.
Search WWH ::




Custom Search