0

doing this stuff in js and the css doesn't affect the tags in the js writeln

js: document.writeln("<table><tr><td>Nom</td><td>Pr&eacute;nom</td><td>Code Permanent</td><td>Login</td></tr></table>");

css: table, td, tr{border:2px, double;}

i know this is simple, what am i missing ?

oh yeah, it's an external js file, if that changes anything.

thx

Dark

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by DarkMonarch
0

i made some changes and here worked perfectly...

<html>
<head>
    <style>
        table, tr{border: 1px dashed black; background-color:#CCC;}  /* TABLE'S AND ROWS'S CSS... */
        td{background-color: black; color: white;}  /* CELLS'S CSS */
    </style>
</head>

<body>
    <script type="text/javascript">  
        document.write("<table><tr><td>Nom</td><td>Pr&eacute;nom</td><td>Code Permanent</td><td>Login</td></tr></table>")
    </script>
</body>


</html>

Edited by Dani: Formatting fixed

0

i don't know why i used boder only!
i used border-weitgh for the tickness and boder-style for the double and now it works.

beats me, it's near 2am, maybe that's the problem

thx for the reply buddy

Dark

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.