For example: <div style="top: Top"/> or <div style.top = Top/> Top of course being the var. Can someone help me with correct syntax?
as far as i know html has no variables.. if you want to use a variable there it will either have to be in your server side language or maybe javascript depending on what you want to do
this would be javascript... client side code which appears to get the width of the client window and multiply it by .25.. what do you want your top variable to be? the top of the client window?
What's with the self closing div. I.E. <div /> AFAIK that makes no sense, /> is only for elements that don't close with separate tags, in this case the </div> tag closes the <div> tag. Anyway, By "var" I guess you mean variable. There are NO variables in HTML, they would be only for scripting / programming languages. As others have mentioned, JS also uses variables as does PHP. Maybe If you told us what you are trying to achieve then you would get a higher caliber of response, at the moment it is hard to distinguish what it is that you want to do, therefore no help can be given. Nick