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

Home Forums JavaScript Devise Alignment issues for fade in/out jQuery

  • This topic is empty.
Viewing 6 posts - 16 through 21 (of 21 total)
  • Author
  • #203952

    Couple of neat things you won’t be able to use with an older version but it’s not the biggest deal. I did notice it wasn’t very recent, forgot to mention that.

    Did you wrap your code in a $(function() { ... });?

    Using height: auto seems to work for the proportions…

    Jeni B

    Thanks Shikkediel. I did wrap my code properly, sorry I didn’t reflect that in my post.

    So I had tried using both

    width: auto;
    hight: auto

    and still no luck.

    This helped with the proportions of the picture when sizing up (not down) but it threw the alignment off again…

    #content img
    display: block;
    max-height: 100%;
    max-width: 100%; position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    overflow: hidden;

    Jeni B

    Got it!!!! The key was


    Can’t thank you enough for your help!



    No problem, thought it was just a typo by the way (‘hight’ maybe) :


    But as long as you solved it anything goes. Didn’t see the script inside the HTML before by the way.

    Speaking of typos, you may want the correct the ‘welcome’…

    Jeni B

    Oops, got that fixed. Thanks. I have the

    <script type=”text/javascript”> just before the $(function() {

    Isn’t that correct?

    Love the idea about having images fade in and out, but don’t have the time to mess with it at the moment. I’ll work on it some time when I have a chance.


    I think something got lost when I only posted part of the code that would need to be changed. Should work like this, looks like a solution to not see the first page getting shown too (timeout works after redirect) :


    Try the back button…

Viewing 6 posts - 16 through 21 (of 21 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.