0

Wotcha, folks.

Any idea why:

body {position:absolute}

doesn't follow down in to the web site itself?

eg.

<img src="piccie" style="position:absolute; left:80px; top:100px">

....works fine, whilst.......

<img src="piccie" style="left:80px; top:100px"

....doesn't.

Will including position:absolute in the 'body' CSS declaration not work with img tags?

Many thanks,

Jack.

3
Contributors
2
Replies
3
Views
12 Years
Discussion Span
Last Post by dexterz
0

Wotcha, folks.

Any idea why:

body {position:absolute}

doesn't follow down in to the web site itself?

eg.

<img src="piccie" style="position:absolute; left:80px; top:100px">

....works fine, whilst.......

<img src="piccie" style="left:80px; top:100px"

....doesn't.

Will including position:absolute in the 'body' CSS declaration not work with img tags?

Many thanks,

Jack.

You have to specify positioning for the different tags in your CSS. So your findings are correct. It doesn't trickle down like you think... and I would make sure to NOT expect it to trickle down in order to accomodate all of the different browsers -- they all treat CSS a little bit differently so make sure your stylesheet is thorough.

0

Try placing the img inside a container. I strongly recommend to read more CSS-P articles.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.