Answers for "html attribute dynamic value"

0

html attribute dynamic value

<div style="width: expression(document.body.clientWidth/2+'px'); background-color: yellow">

  <img src="myimage.gif" style="width: 120px; height: 150px; position:absolute; left: expression(document.compatMode=='CSS1Compat'? (document.documentElement.clientWidth-120)/2+'px' : (body.clientWidth-120)/2+'px'); top:
expression(document.compatMode=='CSS1Compat'? (document.documentElement.clientHeight-150)/2+'px' : (body.clientHeight-150)/2+'px');" />
Posted by: Guest on November-14-2020

Code answers related to "html attribute dynamic value"

Browse Popular Code Answers by Language