View Full Version : createElement problem

07-25-2006, 05:50 PM
Hellow again, Forum:

I have a question regarding the .createElement method: consider the following code:

var baseCntr = document.getElementById(this.baseContainer);
headerDiv = document.createElement('div');
headerTable = document.createElement('table');
headerBody = document.createElement('tbody');
headerRow = document.createElement('tr');
headerTable.className ="vmGridTableHeader";

This is the class name being called which is contained in a .CSS file:

font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
font-weight: bold;
color: #000000;
text-align: center;
border-style: solid;
border-color: black;
border-width: 0px;
border-bottom-width: 0px;
background-image: url(/images/windowhdr.gif);

My problem is all of the attributes in the class are, indeed, being applied to the table scructure except background-image. Works fine when applying to a <table class="vmGridHeader".... approach. Anyone have any ideas on this? Thanks.


07-25-2006, 06:58 PM
Please disregard this thread - I found the problem was due to pathing.