Donate SIGN UP

position:absolute in html

Avatar Image
poltergeist | 14:42 Tue 04th Aug 2009 | Technology
9 Answers
does this work on safari? as my web page looks ok in IE but in safari its all over the place?
Gravatar

Answers

1 to 9 of 9rss feed

Best Answer

No best answer has yet been selected by poltergeist. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
Question Author
or is this css? what ever I use it at the head of my html page and refference it to a div in the body
It's CSS, and it is supported by Safari. And example of it in use can be found here
Question Author
well its just a bit strange as if you go to my web site in safari all the links and pictures are all over the place. The web site is www.matthewrodbourne.com is there a problem with the code?
Question Author
Your page doesn't render properly in IE or Firefox.

Because you've specified absolute for some items and not others (e.g. the advert is absolute, the menu is not), resizing the browser window means that the floating elements can easily move to a position where they obscure, or are obscured by, the fixed elements.

Try viewing it in IE with and without a sidebar, and with the browser set to various sizes and you'll see what I mean.
Question Author
rojash ya I see what you mean...

How can I position with out doing

left:200px; with position absolute? I positioned one by using center. Is there a way of positioning using % of page width so this problem doesnt happen?
You rarely want to use position absolute.

Have a look here:

http://blog.html.it/layoutgala/

The CSS isn't the best, but it's not too bad.

Oh, and 1996 called: it wants its marquee tag back!
Best advice I can give you is to go to W3Schools and follow their advice.

I usually develop using Firefox with the add-ons Firebug and Web Developer. I then detect the browser and adjust for I.E.

1 to 9 of 9rss feed

Do you know the answer?

position:absolute in html

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.