Jump to content

Funce

Moderator
  • Posts

    602
  • Joined

  • Last visited

  • Days Won

    19

Posts posted by Funce

  1. Hi Sabrine!

    When posting code try using the code block feature so we can read it easier. (Try editing your post)

    XcQfW3F.png

    Perhaps a more step-by step approach would be in order.
    Are you in some way confused by any of these sections?
    Do any of these sections not function as you thought they would?

  2. This seems.... specific. Are you looking for a shorthand notation?

    Or does this relate to another project. Happy to go through any part of how the CSS works in this case.

     

    I'm not aware of any alternate forms of styling with attributes/pseudo-selectors.

  3. Hi ShipMate,

    There isn't very many tools that can tell you what's wrong with an HTML document short of matching beginning and ending tags. Your source tag is self-terminating, you don't need </source>

    The only thing left to do is make sure there is CharleyFox.jpg inside your /images folder.

    • Like 1
  4. You could create a function to check if the number can be converted.

    function isNumeric(n) {
      return !isNaN(parseFloat(n)) && isFinite(n);
    }

    Then all you need to do is

    if(isNumeric(someNumber)) {
      //You have a number
    } else {
      //You don't have a number
    }

    Implement parseInt as required.

    Use console.log as specified in your post.

    • Thanks 1
  5. Hi ShipMate, 

    Using the poster attribute does sound like the best fit, as you say.

    I see where your error is, you've got two video tags in that bit of code. You'll need to combine them. The source tag is also self-closing.

    <div style="text-align: center;"><br />
      <video width="500" controls="" poster="/images/CharleyFox.jpg">
        <source src="Rommel-Attack.mp4" type="video/mp4" />
      </video>
    </div>

    What happens when you try the above code?

     

    Also, if you'd like to paste code on the forums, its best if you use the code blocks so that it doesn't get eaten by the formatter.

    XcQfW3F.png

    • Like 1
  6. Sorry, I don't have the Safari browser, I wouldn't be able to know exactly what's happening.

    Perhaps its something similar to Firefox, The uh rotation of inner-card isn't being accurately reflected on flip-card-front and flip-card-back.

    Maybe if you moved the rotation from inner-card to the front and back, you may have more luck? Can't test it myself, so you might need to do it a bit of experimentation.

  7. Try using a code block, so you can get colours and so your code doesn't get eaten by the formatting machine.

    XcQfW3F.png

    So for this, all you would need to do is move that CSS code to an external stylesheet.

    your_stylesheet.css

    * {
      box-sizing: border-box;
    }
    
    .column {
      float: left;
      width: 33.33%;
      padding: 5px;
    }
    
    /* Clearfix (clear floats) */
    .row::after {
      content: "";
      clear: both;
      display: table;
    }

     

    and then link to that stylesheet with the <link> tag.

    <link rel="stylesheet" type="text/css" href="your_stylesheet.css">

     

     

  8. What's the erroneus output?

    Do you end up needing monaco _ senegal?

    Triple quotes (""") in python include everything inside them. This includes newline (\n) characters. To ignore the new line character, you need to place a backslash(\) before you go to your new line. Example below

    countries = """algeria spain armenia barbados chile ecuador ghana jamaica luxemborg kuwait monaco \
    senegal turkey"""

     

    Also try using the codeblock feature so we can see the code without needing to download it.

    XcQfW3F.png

    A lot of the time we notice what's wrong before even needing to run it.

  9. 57 minutes ago, bmills773 said:

    I tried that and it made a broken video. I'm using this for work and the application that I have to us is ckeditor 

    I can put that exactly in my browser, and I get an autoplay with sound.

    Can I see what you're broken video version is?

  10. 4 hours ago, bmills773 said:

    I'm trying to embed a youtube video and have it autoplay with sound. I seem to only be able to have it play with sound but no autoplay or autoplay with no sound.

    this is the code i'm using to autoplay with no sound

    <p><iframe allowfullscreen="" frameborder="0" height="315" include="" src="https://www.youtube.com/embed/tRPYE1jRMDQ?rel=0;&amp;autoplay=1&amp;mute=1" width="560"></iframe></p>
     

    Just take out &amp;mute=1 from the end of your URL.

×
×
  • Create New...