Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

1 Neutral

About smus

  • Rank

Recent Profile Visitors

8,665 profile views
  1. Got it: ul:nth-child(2) li:nth-child(even){ background-color: #996666; } 2 is because there is another <div></div> tag before all the <ul>s. So, in this case, first <ul> is the second child of the <body>
  2. You just need to deactivate what is written for :hover in CSS file. Try looking for it inside your style.css file for your active WP theme. It should be in the WP theme folder
  3. <ul class="cards"> <li class="two heart"></li> <li class="five diamond"></li> <li class="ten heart"></li> <li class="jack club"></li> <li class="queen spade"></li> <li class="king diamond"></li> <li class="ace heart"></li> <li class="six heart"></li> <li class="seven diamond"></li> <li class="eight spade"></li> <li class="nine club"></li> <li class="three club"></li> &l
  4. Since there is no 'NodeJS/MongoDB' discussion section I decided to post my question to 'JavaScript'. I am trying to start the server by running mongod.exe, and by doing the same thing using cmd. I want to start the server and use it with a tool called Robo 3T to manipulate NoSQL databases. There is no active connection can be seen in Robo 3T after I start mongo. Can anyone explain what I am supposed to do? What is the correct way to run MongoDB on Windows?
  5. document.getElementById("demo").innerHTML = days + "d " + hours + "h " + minutes + "m <span style='color:red'>" + seconds + "</span>s "
  6. Have you tried an <object> tag as a container for your page?
  7. Yes, you can, by using pure CSS (not necessarilly with W3.css). Try something like this: <style> .label:after{ content:'text I want to change'; } .label:hover:after{ content:'changed text'; } </style> <body> <p>text <span class="label"></span> text</p> </body>
  8. The page already goes with <style>section{display:none}</style> written in it. Adding and removing classes won't influence it. I also tried section.style.display='unset' which provides the same result as 'initial', and section.style.display=' ', but it does not work at all. As it is discussed here: https://stackoverflow.com/questions/18534561/what-is-use-of-initial-value-in-css 'initial' only resets to a CSS default, not to a browser default. And they only plan to add something in CSS4. While we are waiting the only reasonable way I thought about is to check each element
  9. Very helpful, thanks! display = "initial" works, however, it changes the style not to display = "block" (which is default one for <section> tag), but to display = "inline". I wonder what the result would be if we do the following: <style> section{display:none} </style> <script> document.getElementsByTagName('section')[0].style.display = 'block' document.getElementsByTagName('section')[0].style.display = 'initial' </script> will it switch back to display = 'inline'? If so, why?
  10. For example, an element's default value is 'inline'. It was as 'display:block' on my page, but now it is hidden by 'display:none'. I want it back to visible again, but to its default state. I tried element.style.display = "", element.style.display = "auto", as well as element.style.removeProperty = "display", as it is described here: https://stackoverflow.com/questions/21457904/change-element-display-none-back-to-default-style-value-js But it could not be changed from 'display:none' (only by using 'display:block') There is an official list of default style properties, like, for
  11. Server settings, try absolute address
  12. For the default value, you should simply add value="yourdefaultvalue" to your input tag. What do you want to display "LHS,RHS" in your code, when datalist is set to "initial or awlays"?
  13. var pageBreak = document.getElementById("pageBreak") All var declarations must be inside the function
  14. vmars316, not working at all or with errors? Looks like collectedTextareas variable was not initialized
  15. Thanks very much for the idea! Used this function for sorting the array: function arraysort(s) length = ubound(s) for i = 0 to length for j = 0 to length if s(i)<s(j) then t = s(i) s(i) = s(j) s(j) = t end if next next arraysort = s end function
  • Create New...