Skip to main content


Introduction: This is the fourth part in my CSS Styling tutorials, in which I will be covering Borders. Order: Borders around elements come between the elements margin and padding. So, if the element has padding, the border will be away from the element whereas if the element only has margin, the border will be next the element but away from other elements. Basic Structure: The basic border attribute takes three arguments; Width, Type, Colour. The below code would give a solid white border that is 5 pixels width...
  2. border: 5px solid #ffffff;
Or this code would give a dashed

Add new comment

File attachments