1
What is the standard method of positioning elements on a page?
I ask because I had seen in some material that by default the elements on a page (HTML
) have the property position
defined as relative
, but searching I can not find a material to confirm this thesis (I took a look at the W3S and nothing).
answering the question with humor.... one below the other preferably
– Otto
I didn’t get your comment @Otto
– Cold
the standard method for positioning the elements is one below the other .... preferably with identation
– Otto
@Cold is complicated this business of standard, it is better to force the relative "manually" to avoid the inside Bsolute get lost by the page.
– Bacco
So if I put two
div's
, widths of10px
each, and visualize on a screen of 17 inches for example (even maximized window), it will put one underneath the other?– Cold
@Bacco I also prefer to "reinforce", but usually it behaves as
relative
for the remarks I made.– Cold
facepalm..... forget my comments I was joking
– Otto
At good @Otto, after realizing even gave pa laugh bro. : D
– Cold
@Cold try to insert 3 Ivs of different sizes and an Absolute element within the latter, which you will see that the default is not relative :)
– Bacco
Just to reinforce something that’s nailed to gringa and which I strongly agree with: Avoid links to W3S. Their content is very weak. Prefer linking to MDN :)
– William Barbosa
Possible duplicate: http://answall.com/questions/23532/toda-div-tem-posi%C3%A7%C3%A3o-relative
– bfavaretto