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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DIV tag

Status
Not open for further replies.

FranckM

Programmer
May 8, 2002
76
CA
I know there's a way of using the DIV command to place images pixel by pixel. What is the command?

Thanks for answering.
 
Can you explain a little bit more what you are trying to do??



É

endamcg-logo1b.gif

 
<div style=&quot;position:absolute;top:##px;left:##px&quot;><img src=&quot;pic.gif&quot;></div>

 
<div></div> allow you to add Cascading Style Sheets to them either by using the style=&quot;&quot; attribute or by giving it a id or class.

You could use no divs at all and give an ID attribute directly to your image and reference it that way :

<style>
#myElement { position:absolute; left:10px; top:10px; }
</style>

<img id=myElement src=mySrc.png>

<!-- note this would work with a DIV too -->

<div id=myElement>here is my Div</div>

Hope this helps. Gary Haran
 
Yeah it does. I used the div tag to set the coordiantes of a table. This works in IE but not in netscrape 4.7. My app needs to be workin in both 4.7 sand IE 6. One solution I was thinking off would have me require the browser's space available to view a page. Is is possible to get the height and width of the browser to then give dynamic number for position of the table or picture?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top