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!

can layers be aligned to the right?

Status
Not open for further replies.

debrac

IS-IT--Management
Jan 9, 2001
48
AU
how do i align layers to the right of a page?
 
yes...this works in IE:

function alignElementRight(obj)
{
obj.style.left = window.document.body.offsetWidth-parseInt(obj.style.width)-19
//dont know why i needed the -19,debrac, maybe padding or margins?
} jared@aauser.com
 
guess you're the only guy to know it's -19 and not -17 or -8 s-) ... where do you have all these infos ??? !!!
 
iza, I just tested it until I found the right #.
debrac, it cna be done in NS, but I don't have the time to do it right now - I'm sorry! :) - maybe someone else will do it, or you cna check back l8r or tommorow jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top