Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

positioning

Status
Not open for further replies.

atferraz

Technical User
Aug 23, 2003
129
PT
Hello

Have an image in a iframe and need to positioning it right on the middle.

Html code:
<img src=”xpt.jpg” class=”img”>

css code
.img{position:relative;left:auto;top:auto}

thanks anyone.
 
Code:
<img src=&quot;xpt.jpg&quot; class=&quot;img&quot; align=&quot;right&quot;>

You need it positioning right on the middle?
You mean you want it in the center of the page??

Code:
<img src=&quot;xpt.jpg&quot; class=&quot;img&quot; align=&quot;center&quot;>

??
 
i'd place it in a div
<div align=&quot;center&quot;>

or specify the styels for the iframe

iframe.xyz {text-align:center;}

something like that...






<!--#sig value=''É'' url='' -->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top