Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jul 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    createElement problem

    Hellow again, Forum:

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

    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:

    Code:
    .vmGridTableHeader{
    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.

    --Shawn

  • #2
    New Coder
    Join Date
    Jul 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Please disregard this thread - I found the problem was due to pathing.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •