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!

Changing text positions

Status
Not open for further replies.

AntiEarnie

Technical User
May 2, 2002
215
US
Hi, I was hoping someone might have an idea on this. I am trying to place text at several set spots on a asp page. Some of them are going to be a little above or below the normal row size in html. I have seen where you can the position properites to place images in set postions and was wondering if this can be done with text also? Any help would be greatly appreciated.
 
positioning can easily be done with a little CSS. try this and see if it is what you are looking for
<HTML>
<HEAD>
<TITLE>Example 6</TITLE>
</HEAD>
<STYLE TYPE=&quot;text/css&quot;>
#first {position: absolute; top: 80; left: 60}
#second {position: absolute; top: 120; left: 200}
#third {position: absolute; top: 140; left: 180}
</STYLE>
<BODY>
<DIV ID=first>
<B>This is the first layer. It's in the middle.</B><BR>
</DIV>
<DIV ID=second>
<B>This is the second layer. It's behind the first layer.</B><BR>
</DIV>
</BODY>
</HTML>
admin@onpntwebdesigns.com
 
sorry didn't clean that up before I psoted it. this is all that is needed. (grabed it from my layers reference folder) after I reread it I can see why it may be confusing and misleading

<HTML>
<HEAD>
<TITLE>Example 6</TITLE>
</HEAD>
<STYLE TYPE=&quot;text/css&quot;>
#position1 {position: absolute; top: 80; left: 60}
#position2 {position: absolute; top: 120; left: 200}
</STYLE>
<BODY>
<DIV ID=position1>
<B>position 1 text</B>
</DIV>
<DIV ID=position2>
<B>position 2 text</B><BR>
</DIV>
</BODY>
</HTML>


admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top