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.

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.

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.