goph999
asked on
html, how to position
Is there a document(standard) that describes how to position a html element?
I am little bit confused how different browser can behave differently. Are the browser programmer reading the same standard, or is the standard not unambiguous?
I am little bit confused how different browser can behave differently. Are the browser programmer reading the same standard, or is the standard not unambiguous?
You can use <DIV> po positina any html element, lite that:
<div style="position:absolute;t op:0;left: 0"><img width="1117" height="1517" src="pg_0004.jpg" ALT=""></div>
etc.
<div style="position:absolute;t
etc.
Just to make a comment on npinelo's comment.
The DIV tag is HTML but style="position:absolute;t op:0;left: 0" is CSS.
The DIV tag is HTML but style="position:absolute;t
ASKER
as the question was:
"Is there a document(standard) that describes how to position a html element? "
i am not satisfied with: "if you do that and that, it works"
"Is there a document(standard) that describes how to position a html element? "
i am not satisfied with: "if you do that and that, it works"
goph999, I would then recommend you to read my post with the links. CSS would be the way to go, if you don't go by doing it ever harder with javascript.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
W3Schools is a very commonly used portal for web developers. It is like a dictionary for HTML, CSS, PHP, JavaScript, etc.
Here are some information from Microsoft on HTML and Positioning:
http://msdn.microsoft.com/en-us/library/ms533044(VS.85).aspx#sec_pos
They have to solutions, by script or CSS.
In the link to CSS Positioning they write:
"HTML elements are positioned static by default. A static positioned element is always positioned according to the normal flow of the page."
To position anything more advanced would be dynamic and not static.
I am sorry for not exactly answering your question, but this is the best I can give you.
Here are some information from Microsoft on HTML and Positioning:
http://msdn.microsoft.com/en-us/library/ms533044(VS.85).aspx#sec_pos
They have to solutions, by script or CSS.
In the link to CSS Positioning they write:
"HTML elements are positioned static by default. A static positioned element is always positioned according to the normal flow of the page."
To position anything more advanced would be dynamic and not static.
I am sorry for not exactly answering your question, but this is the best I can give you.
ASKER
from the above link:"Internet Explorer 7 and later. The element is positioned as in absolute positioning, except that it is relative to the browser window rather than the document"
so where is the documentation?? is there none?
so where is the documentation?? is there none?
There are no standard documents describing how the html elements are positioned. Its upto you how you want to position your elements. It also depends on your design.
Try adding some CSS to your code to make it easier.
W3Schools - CSS Tutorial
http://w3schools.com/css/default.asp
W3Schools - CSS Positioning
http://w3schools.com/css/css_positioning.asp