Web Technology20825 marksPositioning
Create an HTML page containing three paragraphs p1, p2 and p3 with some contents. Write internal CSS to set the position of p1 to relative, p2 to float and p3 to absolute.
Create an HTML page containing three paragraphs p1, p2 and p3 with some contents. Write internal CSS to set the position of p1 to relative, p2 to float and p3 to absolute. [5]
- position: relative - element is positioned relative to its normal position in the document flow. - float - used to float an element to the left or right, allowing other content to wrap around it. - position: absolute - element is positioned relative to the nearest positioned ancestor; removed f...