• About positioning items, best way for me is:
    element {
    position: absolute or relative;
    margin: auto;
    left: value%;
    right: value%;
    bottom: value%;
    top: value%;
    }

    If no value put 0.

    #CSS
    About positioning items, best way for me is: element { position: absolute or relative; margin: auto; left: value%; right: value%; bottom: value%; top: value%; } If no value put 0. #CSS
    Yay
    1
    0 Komentarze 0 Akcje 5K Widoki 0 Recenzje
  • 0 with no %
    0 with no %
    Haha
    1
    0 Komentarze 0 Akcje 1K Widoki 0 Recenzje
  • Is something in this that:

    C ==> HTML
    C++ ==> CSS

    #CODE
    Is something in this that: C ==> HTML C++ ==> CSS #CODE
    Pride
    1
    0 Komentarze 0 Akcje 4K Widoki 0 Recenzje
  • About thing what will be on TOP at website it's CSS:

    element {
    z-index: value;
    }

    value = number

    This is super!

    #CSS
    About thing what will be on TOP at website it's CSS: element { z-index: value; } value = number This is super! #CSS
    Yay
    1
    0 Komentarze 0 Akcje 5K Widoki 0 Recenzje
  • About priority in CSS it's

    element {
    example: something !important;

    it's about !important if there is other code for this somwhere and need to be rewrited in CUSTOM CSS or something.

    #CSS
    About priority in CSS it's element { example: something !important; it's about !important if there is other code for this somwhere and need to be rewrited in CUSTOM CSS or something. #CSS
    0 Komentarze 0 Akcje 5K Widoki 0 Recenzje
  • And if this !important dosen't work and it's like this for real sometimes.

    Then need to input CSS style in HTML tag in way:

    <div class="mydiv" style="attribute: value; attribute: value;">

    And remember to put this ; at the end even for one CSS in HTML style.

    #HTML and #CSS
    And if this !important dosen't work and it's like this for real sometimes. Then need to input CSS style in HTML tag in way: <div class="mydiv" style="attribute: value; attribute: value;"> And remember to put this ; at the end even for one CSS in HTML style. #HTML and #CSS
    Yay
    1
    0 Komentarze 0 Akcje 6K Widoki 0 Recenzje
  • About onclick in JavaScript for multiplay functions:

    <div onclick="func1();func2();">someting</div>

    Then need to be this ; for each

    #JavaScript #onclick
    About onclick in JavaScript for multiplay functions: <div onclick="func1();func2();">someting</div> Then need to be this ; for each #JavaScript #onclick
    0 Komentarze 0 Akcje 4K Widoki 0 Recenzje
  • For sound when something is pressed:

    <script>
    function backspin(url) {
    var ourAudio = document.createElement('audio'); // Create a audio element using the DOM
    ourAudio.style.display = "none"; // Hide the audio element
    ourAudio.src = "https://cdefgahc.com/wav/front.wav"; // Set resource to our URL
    ourAudio.autoplay = true; // Automatically play sound
    ourAudio.onended = function() {
    this.remove(); // Remove when played.
    };
    document.body.appendChild(ourAudio);
    }
    </script>

    For PHP file and with no<script></script> for CUSTOM JavaScript if you have.

    And I use onclick for that:

    backspin();

    #JavaScript #onclick #sound
    For sound when something is pressed: <script> function backspin(url) { var ourAudio = document.createElement('audio'); // Create a audio element using the DOM ourAudio.style.display = "none"; // Hide the audio element ourAudio.src = "https://cdefgahc.com/wav/front.wav"; // Set resource to our URL ourAudio.autoplay = true; // Automatically play sound ourAudio.onended = function() { this.remove(); // Remove when played. }; document.body.appendChild(ourAudio); } </script> For PHP file and with no<script></script> for CUSTOM JavaScript if you have. And I use onclick for that: backspin(); #JavaScript #onclick #sound
    Yay
    1
    0 Komentarze 0 Akcje 10K Widoki 0 Recenzje
  • Than as you can know we can have both vibration and sound for button.

    #multifunc with onclick JavaScript.
    Than as you can know we can have both vibration and sound for button. #multifunc with onclick JavaScript.
    Haha
    1
    0 Komentarze 0 Akcje 8K Widoki 0 Recenzje
  • For vibration I use:

    var elem = document.getElementsByTagName('a');
    for(var i = 0; i < elem.length; i++) {
    elem[i].addEventListener('click', function(){

    navigator.vibrate(100);

    }, false);
    }

    var elem = document.getElementsByTagName('button');
    for(var i = 0; i < elem.length; i++) {
    elem[i].addEventListener('click', function(){

    navigator.vibrate(100);

    }, false);
    }

    var elem = document.getElementsByTagName('i');
    for(var i = 0; i < elem.length; i++) {
    elem[i].addEventListener('click', function(){

    navigator.vibrate(100);

    }, false);
    }

    var elem = document.getElementsByTagName('img');
    for(var i = 0; i < elem.length; i++) {
    elem[i].addEventListener('click', function(){

    navigator.vibrate(100);

    }, false);
    }

    var elem = document.getElementsByTagName('svg');
    for(var i = 0; i < elem.length; i++) {
    elem[i].addEventListener('click', function(){

    navigator.vibrate(100);

    }, false);
    }


    function vibrate() {

    navigator.vibrate(100);
    }


    This is AUTO and MANUAL onclick

    #JavaScript #vibrations #CODE
    For vibration I use: var elem = document.getElementsByTagName('a'); for(var i = 0; i < elem.length; i++) { elem[i].addEventListener('click', function(){ navigator.vibrate(100); }, false); } var elem = document.getElementsByTagName('button'); for(var i = 0; i < elem.length; i++) { elem[i].addEventListener('click', function(){ navigator.vibrate(100); }, false); } var elem = document.getElementsByTagName('i'); for(var i = 0; i < elem.length; i++) { elem[i].addEventListener('click', function(){ navigator.vibrate(100); }, false); } var elem = document.getElementsByTagName('img'); for(var i = 0; i < elem.length; i++) { elem[i].addEventListener('click', function(){ navigator.vibrate(100); }, false); } var elem = document.getElementsByTagName('svg'); for(var i = 0; i < elem.length; i++) { elem[i].addEventListener('click', function(){ navigator.vibrate(100); }, false); } function vibrate() { navigator.vibrate(100); } This is AUTO and MANUAL onclick #JavaScript #vibrations #CODE
    0 Komentarze 0 Akcje 6K Widoki 0 Recenzje