Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 164
  • Last Modified:

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?
0
goph999
Asked:
goph999
1 Solution
 
nordtorpCommented:
HTML itself does not provide any good methods for positioning.

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
0
 
npineloCommented:
You can use <DIV> po positina any html element, lite that:

<div style="position:absolute;top:0;left:0"><img width="1117" height="1517" src="pg_0004.jpg" ALT=""></div>

etc.
0
 
nordtorpCommented:
Just to make a comment on npinelo's comment.

The DIV tag is HTML but style="position:absolute;top:0;left:0" is CSS.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
goph999Author Commented:
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"
0
 
nordtorpCommented:
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.

0
 
goph999Author Commented:
yes i have read W3Schools - CSS Tutorial, but is it the official document?
0
 
nordtorpCommented:
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.
0
 
goph999Author Commented:
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?
0
 
darkappleCommented:
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.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now