1. Hello!

    First of all, welcome to MapleLegends! You are currently viewing the forums as a guest, so you can only view the first post of every topic. We highly recommend registering so you can be part of our community.

    By registering to our forums you can introduce yourself and make your first friends, talk in the shoutbox, contribute, and much more!

    This process only takes a few minutes and you can always decide to lurk even after!

    - MapleLegends Administration-
  2. Experiencing disconnecting after inserting your login info? Make sure you are on the latest MapleLegends version. The current latest version is found by clicking here.
    Dismiss Notice

Mobile site big

Discussion in 'Closed/Resolved' started by lokmo, Jun 17, 2015.

  1. lokmo
    Offline

    lokmo Mano

    12
    10
    11
    Jun 15, 2015
    Male
    7:15 PM
    jormakarva
    Assassin
    38
    Not sure if this is the right place.
    [​IMG]
    Can you make that video smaller? Annoys me :D otherwise mobile site works fine.
     
  2. Robert
    Offline

    Robert Chronos

    83
    89
    98
    May 7, 2015
    Male
    Amsterdam, Netherlands
    6:15 PM
    Robert
    Cleric
    46
    Quest
    It's because the iframe has a static width and height.

    HTML:
    <iframe width="560" height="315" src="https://www.youtube.com/embed/U3exSnfRaYE" frameborder="0"></iframe>
    You could probably fix this by doing:

    HTML:
    <div class="yt-container">
        <iframe src="https://www.youtube.com/embed/U3exSnfRaYE" frameborder="0"></iframe>
    </div>
    
    CSS:

    .yt-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    }
    .yt-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    }

    See this fiddle as well:
    http://jsfiddle.net/not430hj/
     
    Last edited: Jun 17, 2015
    • Like Like x 2
  3. Robert
    Offline

    Robert Chronos

    83
    89
    98
    May 7, 2015
    Male
    Amsterdam, Netherlands
    6:15 PM
    Robert
    Cleric
    46
    Quest
    Fixing the background is easy as well,

    Background on mobile devices:

    CSS:

    Code:
    background-image:url(http://maplelegends.com/static/images/bg.png);
    background-attachment: fixed;
    background-position: 50% 0%;
    background-repeat: repeat-y;
    -webkit-background-size: cover;  
    -moz-background-size: cover;   
    -o-background-size: cover;   
    background-size: cover;
    
     
    Last edited: Jun 19, 2015

Share This Page