Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: .innerHTML ignores style


Message #1 by plscribner@w... on Sun, 2 Jun 2002 08:12:38
Exactly right.. <div> works fine.  Thanks again for your assistance.

Thanks also to Majid for a similar response.  Really appreciate your 
taking the time to help.

Peter

> Actually.. good thing you mentioned that, I wasn't thinking of it not
working in terms of HTML.

<span> is an inline element and not a block level element.  hence I don't
think span will actually apply the text-align style just as <span> won't
apply margin styles.

You should probably set the style using a <div> or in the <td> element.

Chad


  Return to Index