Skip to main content


Introduction: This is the seventh part in my CSS Styling tutorials, in which I will be covering position. What is Position? Position is used to set the behaviour of how the elements display on-screen within the web browser. Structure: position: {type}; Example:
  2. position: fixed;
Values: relative - Takes in to account the elements around it. absolute - Does not take in to account the elements around it, margin and padding go from the edge of the containers or documents. fixed - Only takes in to account the width and height of the browser window. inherit - The value of

Add new comment