© Adrian W. West 2016

Adrian W. West, Practical Web Design for Absolute Beginners, 10.1007/978-1-4842-1993-5_20

20. Positioning Elements on a Web Page

Adrian W. West

(1)Colyton, UK

Elements can be positioned accurately on a web page by using CSS styling. The two types of positioning are Absolute positioning and Relative positioning. You used absolute positioning in many of the previous projects; this enabled you to locate an element (such as the header text) at a fixed position relative to the top and left edges of a browser’s viewport. Relative positioning moves an element from where it would normally appear on the page. Several other positioning techniques are also described in this chapter.

This chapter contains the following sections:

  • Absolute ...

Get Practical Web Design for Absolute Beginners now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.