Pulling from an array issues

Discussion in 'JavaScript' started by ryanhennessey, Apr 12, 2012.

  1. #1
    I'm trying to make a simple app using HTML5 so that when I press a button, it will pull a random quote/image from a predefined array. I have this working fine, but my issue is that when it pulls the quote/image from the array, it positions it within my page with the same line breaks as in the array. So, the 6th quote shows up on my page 6 lines lower than the first one, even though they are in the same . Is there some way to stop it from inserting the quotes/images further down? I want them all starting at the same line, and centered.

    [HR][/HR]

     
    ryanhennessey, Apr 12, 2012 IP
  2. tULd0k

    tULd0k Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i did some test on your project, and what i found out there's nothing wrong with your
    JS code, what makes it displays off is your css3 styles, try to remove them and the
    text-align:center and see the result..
     
    tULd0k, Apr 14, 2012 IP