Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    17
    Member #
    38140

    Need help making webpage background image RESPONSIVE

    Hey folks.. if anyone could help me with this, that would be great..
    i searched google and got a bit lost..

    My page Laughengine.com displays inconsistently on different
    screens/devices, and i need to edit my HTML CSS code (posted below)
    to make the background image "RESPONSIVE."
    (I brand new to html, fyi

    Much thanks for any help!!



    <!DOCTYPE HTML>
    <html>
    <style>
    html,body{
    margin:0px auto;
    background: url('webpage JPEG.jpg') no-repeat fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    }
    </style>
    <body>
    <audio autoplay loop controls>
    <source src="MP3.mp3" />
    <source src="M4A.m4a" />
    <source src="OGG.ogg" />
    <source src="PCM.wav" />
    </audio>
    </body>
    </html>
    Last edited by Dmiraie; Jan 11th, 2014 at 06:42 AM.

  2.  

  3. #2
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."

  4. #3
    Junior Member
    Join Date
    Jan 2014
    Posts
    17
    Member #
    38140
    cool, thanks that worked pretty well..!

    do you know, is there a way to edit the position/size of the audio controls
    built into HTML 5?

    and has anybody figured out how to autoplay audio on apple mobile devices yet?

    much thanks!

  5. #4
    Senior Member Ronald Roe's Avatar
    Join Date
    Mar 2011
    Location
    Oklahoma City
    Posts
    3,141
    Member #
    27197
    Liked
    959 times
    There isn't a way to manipulate the controls themselves without overly complicated shadow DOM manipulation. You can, however build your own controls and control the audio with them using JavaScript. Go here in a Webkit-based browser (Chrome, Safari, etc). The controls you see on the page are simple HTML/CSS that control a hidden audio element using some fairly simple jQuery .click(); functions.
    Ron Roe
    Web Developer
    "If every app were designed using the same design template, oh wait...Bootstrap."


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Tags for this Thread

All times are GMT -6. The time now is 11:17 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com