title: VBA - returning CSS formatting values with Internet Explorer
body: <p>I try to check whether element in the table has float: left or float: right property to determine what element it is related to. Unfortunately </p>
  
  <p><code>.getAttribute("Style")</code> </p>
  
  <p>works only for inline HTML styling, not CSS. My code below doesn't work as getAttribute returns [object MSStyleCSSProperties].</p>
  
  <pre><code>Dim htmlele As IHTMLElement
  Dim PopUpWindow As Object
  
  For Each htmlele In PopUpWindow.document.getElementsByTagName("tr")
      If InStr(htmlele.getAttribute("Style"), "float: left;") &lt;&gt; 0 Then
         'do stuff
      End if
  Next htmlele
  </code></pre>
  
  <p>Is there a way to work with CSS through VBA at all?</p>