Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS [Solved] Beginner: CSS Layout problem

  • This topic is empty.
Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #161510
    chrisburton
    Participant

    @blyk Can you elaborate on your issue? What is the problem you are having now?

    #161511
    blyk
    Participant

    what I ment that I had tried both the option but none of them worked. I have used one of them at a time.

    #161512
    blyk
    Participant

    @chrisburton

    When I tried running the javascript offline, as you can see in my previous reply to Paulie_D, it has stopped working I mean none of the scripts run other than css.

    #161513
    chrisburton
    Participant

    @blyk Can you put the site in a zip file and upload it?

    #161516
    blyk
    Participant
    #161517
    chrisburton
    Participant

    The problem is that, first, you were running your script before jQuery.

    Wrong:

    <script type="text/javascript" src="js2014.js"></script>
    <script type="text/javascript" src="jquery.min.js"></script> 
    

    You need to call jQuery before your script

    Correct:

    <script type="text/javascript" src="jquery.min.js"></script> 
    <script type="text/javascript" src="js2014.js"></script>
    

    Second, your script was trying to run before the elements were being rendered. Therefore, putting the scripts before the closing of the body tag (</body>) solved the problem.

    Updated Files: http://cloud.chrisburton.me/Tf0z

    #162001
    blyk
    Participant

    @chrisburton: Thank you so much now it works. I just started playing with js & jq and trying some baic stuffs. Thanks again :)

Viewing 7 posts - 16 through 22 (of 22 total)
  • The forum ‘CSS’ is closed to new topics and replies.