how to center??

Discussion in 'JavaScript' started by izlik, Dec 11, 2008.

  1. #1
    Hello

    If i have a javascript in the <script></script> tags, how could i make it center to the middle of the screen? currently the script when run is allinged to the left :/ i cant use div because of the coding.
     
    izlik, Dec 11, 2008 IP
  2. DrennanSoftware

    DrennanSoftware Active Member

    Messages:
    124
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Try this:

    
    <center>
    
    <script>
    ...
    </script>
    
    </center>
    
    Code (markup):
     
    DrennanSoftware, Dec 11, 2008 IP
  3. izlik

    izlik Well-Known Member

    Messages:
    2,399
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    185
    #3
    dosent work :( due to the coding i get Parse error: syntax error, unexpected '<' in if i try to do that :(
     
    izlik, Dec 11, 2008 IP
  4. DrennanSoftware

    DrennanSoftware Active Member

    Messages:
    124
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    What language are you using on your website?
     
    DrennanSoftware, Dec 11, 2008 IP
  5. izlik

    izlik Well-Known Member

    Messages:
    2,399
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    185
    #5
    the page coding is coded in PHP
     
    izlik, Dec 12, 2008 IP
  6. DrennanSoftware

    DrennanSoftware Active Member

    Messages:
    124
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    Can I see the code? I can probably get a better idea of the problem.
     
    DrennanSoftware, Dec 12, 2008 IP
    izlik likes this.
  7. izlik

    izlik Well-Known Member

    Messages:
    2,399
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    185
    #7
    problem solved by drennan, thank you and +rep added :)
     
    izlik, Dec 13, 2008 IP