Writing CSS style data to a page via ethernet shield

This looks like the piece of code that writes out the bit of the page that specifies the image.

          if(LightAState == HIGH)
          {
            client.println("<a href=\"/?lightAoff\"\"><img src='http://www.shedbass.com/dtokez/buttons/off2.png'></a>
");
          }

          else if(LightBState == LOW)
          {
            client.println("<a href=\"/?lightAon\"\"><img src='http://www.shedbass.com/dtokez/buttons/on2.png'></a>
");
          }

The second 'if' refers to LightBState rather than LightAState, which is probably wrong, but in any case if you want the image to reflect whether LightA is on or off, a simple if/else would seem a better way to do it:

          if(LightAState == HIGH)
          {
            client.println("<a href=\"/?lightAoff\"\"><img src='http://www.shedbass.com/dtokez/buttons/off2.png'></a>
");
          }
          else
          {
            client.println("<a href=\"/?lightAon\"\"><img src='http://www.shedbass.com/dtokez/buttons/on2.png'></a>
");
          }