answersLogoWhite

0

Absolute is used to refer to a specific position on the screen. Relative is for refering to a position relative to a another item. If you wanted something 1 inch from the top and 1 inch from the left, that would be an absolute. If you wanted something 1 inch below the position it would be normally displayed, then that would be relative.

<span style="position:absolute; top:1in; left:1in;">This is absolute</span>

<span style="position:relative; top:1in;">This is relative</span>

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

What is the definition for a relative address in CSS?

Relative addresses exist on servers and in HTML. A webpage can have a relative address linking a stylesheet to it. They do not exist in CSS.


Difference between inline and internal css?

Inline CSS sits within the HTML tag.For example: your text hereWhen using Internal CSS, all the CSS instructions sit in the section between your css here tags.To use Internal CSS you have to tell the page that you want it to use the css whilst Inline CSS is run automatically as the page is read.


How do you fix a span relative to the document but contained in the parent div?

as long as there is no parent elements with their css styled to position:relative. Than you can just change its style to the following: #span { position:absolute; } This will make it absolute to the document or body element if the div or parent element of the span element were to have position: relative, then the span element would be absolute positioned to the div and not the body element


What is the difference between an HTML page and a dhtml page?

DHTML combines HTML, JavaScript, the HTML DOM, and CSS.


Where can you find free css templates?

Online; just type "css templates" into your favourite search engine.


What is the difference between single quotes and double quotes?

in programming, single quotes are for characters, and double quotes are for string, but in php, javascript, html, css i don't see any difference between the two.


Does Internet Explorer 6 support CSS absolute positioning?

Yes, Internet Explorer 6 and later versions support CSS absolute positioning. You can put any element to absolute position using following syntax :You may also use left, top, right, bottom, z-index properties with CSS to get better result.Have a nice day!Pradip


What is the difference between in-line style and the internal sheets?

Inline and internal style-sheets are 2 forms of CSS in HTML file. In-line CSS is used within the code of HTML, while the internal one is used at the beginning.


How do you color the area between margins using HTML or CSS?

You can set the color of margin in CSS. The attribute margin-color is what sets it.


How do you place images in between text frames?

You have to use a Stylesheet (CSS). Or you can type CSS straight into the document.


What relative unit of measure is used in CSS to let elements scale according to the browser's text size?

em.


How do you make Blogger clock follow the page?

You have to position it absolute with css. { position: absolute; top: 10px; left: 30px; } Now, when you scroll down the page, the clock won't disappear.