|
Post by pm on Sept 28, 2009 11:14:49 GMT -8
Wormo, I'm trying to center my games list at the link below. mentalmetal.proboards.com/index.cgi?action=arcadeplayWhile the code below centers it, it also affects my threads/profile/calendar ect. I must have it written wrong. Can ya help me? <script type="text/javascript"> <!-- // Trying To Center Games List if (location.href.match(/action/) && !location.href.match(/action=arcade\splay/)) document.write('<style type="text/css">body {padding-left: 100px;}</style>'); //--> </script> Thanks man!
|
|
|
Post by Wormopolis on Sept 28, 2009 13:48:10 GMT -8
the way you currently have it written.. you want it to occur everywhere except main page AND arcade page.
if you want the CSS to only be on the arcade page, just do a single loc check:
if (location.href.match(/tion=arcade/))
|
|
|
Post by pm on Sept 28, 2009 14:04:35 GMT -8
Thanks man!
|
|