- 2
what is the difference between display:block and display:outline? when i run the code i don't see much difference?
4 Respuestas
+ 2
@ Priyanka, there's no display: outline'. I guess you mean 'inline'.
'display: block' displays an element as block element. And 'display: inline' displays an element as an inline element.
You must post your code here so we can see what went wrong.
+ 1
@ Yanka, what you mean is the effect when the background is fixed while the content moves when you scroll up or down.
body {
background-attachement: fixed;
}
0
when you displays an element in block form all of its contents breaks to display in block format and extends downward as much as it can take while "inline value" do otherwise by making all block contents display in a straight line far as much as it can take
- 3
display:block block this element, he doesn't move when the background be movin'