In how many ways can we position an HTML element? Or what are the permissible values of the position attribute?
Answer / nashiinformaticssolutions
There are mainly 7 values of position attribute that can be used to position an HTML element:
1. static: Default value. Here the element is positioned according to the normal flow of the document.
2. absolute: Here the element is positioned relative to its parent element. The final position is determined by the values of left, right, top, bottom.
3. fixed: This is similar to absolute except here the elements are positioned relative to the <html> element.
4. relative: Here the element is positioned according to the normal flow of the document and positioned relative to its original/ normal position.
5. initial: This resets the property to its default value.
6. inherit: Here the element inherits or takes the property of its parent.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is sql a programming language?
How is HTML5 different from HTML4?
What is the use of an iframe tag?
In an html page form I have one button which makes us to open a new page in 15 seconds. How will you do that?
Why to use pattern attribute in html5?
Does a hyperlink apply to text only?
What is the html tags?
What is a marquee?
What are the reasons for validating a HTML?
Which editors I can use for html development?
Why for attribute is used in html?
What is tr td th in html?