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 |
What is html directive?
What is semantic elements?
Which tag is used to insert images into your web page?
What is a header in code?
In how many ways can we position an HTML element? Or what are the permissible values of the position attribute?
What is bom in html?
Why should I care if my document is in correct HTML? It displays all right on my browser.
if i have a parent sequence with the property set- exit on success, n the try sequence block set to exit on success, n the catch sequence block too set to failure, what is the result?
What is attribute minimization in html?
Can I open external css file in browser?
What is tag facebook?
What is htmlentities?