Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Matej

  • Rank
  1. as i mentioned, i tried to add width to .info and it still behaves the same
  2. The parent container of .info ineed has explicit ( 100% width ) , i set the width of .info to certain value also but the behavior is the same
  3. Using this when i have a multiple elements in centered DIV and i set positive value to a margin on any of them results in others elements recieve the same margin but negative. e.g <div class="info"> <h1>TeXT GoeSt here</h1> <p>bla bla bla bla bla bla</p> <button class="myButton">Leave a Button</button> </div> .info{ position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); } .info h1{ position: relative; font-family: Roboto Bold; font-size: 90px; margin-top: -130px; } this is fine cuz there is a negati
  4. What is the trick to center div horizontally and vertically at the same time? I have this demo and need to center the div with the text in the middle of its parent div. How can i do such a thing?
  5. I have updated css file for media queries , but there is a problem , it wont show its effect on site , i have made test with background color , @media screen and (max-width: 1200px) { body{background-color:blue;} } When i resize the browser , it actually shows media queries there but does not show result , how can i fixt it?
  6. thats it , its aint displaying in right order or somehing , the ordering script works i tested it , but somehow its broken or something , as i said i solved this exercisee first time with diferent script which aint working aymore , so ii dont know mistake is on my side or on their. Thats why i posted it . to find out if I did mistake.
  7. indeed , as i said i said i thought its printing just wrong order ,that why i sorted it based on urls array that mean result from url 0 is on 0 position but it still says i failed
  8. hi , im trying to solve said exercise in nodeschool LEARN YOU THE NODE.JS FOR MUCH WIN! ───────────────────────────────────── JUGGLING ASYNC Exercise 9 of 13This problem is the same as the previous problem (HTTP COLLECT) in that you need to use http.get(). However, this time you will be provided with three URLs as the first three command-line arguments.You must collect the complete content provided to you by each of the URLs and print it to the console (stdout). You don't need to print out the length, just the data as a String; one line per URL. The catch is that you must print them
  9. Hola, have you taken a look at it yet? Ihave ordered that book for promises , but does it include fetch api which is based on promises?
  10. Matej

    facebook like

    Hi , im trying to impelement fb likes on site code <script> window.fbAsyncInit = function() { FB.init({ appId : 'id i recieved', xfbml : true, version : 'v2.3' }); }; (function(d, s, id){ var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class="fb-like" data-href="https://developers.facebook.com/docs/plugins
  11. Matej

    ajax and images

    So thats the way images are stored? Just store path in xml/json and getbthat path using ajax? Well makes sense ... This way i can dynamicli add pictures... Thanks
  12. Matej

    ajax and images

    How are images loaded from server if not via Ajax? im working on my site where i want to retrieve images from server + im planning to add more and more images to the server so i supposed it would be best with ajax which would result in automaticly updait content on website.
  13. Hi. Im trying to learn AJAX. In my WAMPSERVER www.directory i have a file called IMAGES. inside that file there is an image called logo.png. Im trying to retrieve this image from server using this code function loadXMLDoc(){var xmlhttp;if (window.XMLHttpRequest){xmlhttp=new XMLHttpRequest();}else{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");}xmlhttp.onreadystatechange=function(){if (xmlhttp.readyState==4 && xmlhttp.status==200){var response = xmlhttp.responseText;var img=document.createElement("img");img.src=response;var myDiv=document.getElementById("one");myDiv.appendChild(img)
  14. Matej

    position fixed trick

    Using position fixed , the element would be in the same position after scroll and so on. Im talking about achieving similar effect like .menu { background:url("") no-repeat fixed center } but with elements also and not just background.
  15. Matej

    position fixed trick

    Hello , how is possible to make similar trick as with background:url("")no-repeat fixed center? What i am trying to do is to let "text" do the same effect as with this background here is a demo. http://jsfiddle.net/Trolstover/2kvhgga0/ as you can see here , the images arent "Scrolling up" thanks to background fixed position but i want to achieve that the text will be the same. Nice example is on this site i've found http://www.loono.cz/ first image with button. Thanks for answers
  • Create New...