[Solved] Css is not working with my html code

[ad_1] So the following code is doing a property of css on span is what I believe, so .property1 is not a id so you need to call it by span class like below. Remember if you need to call it by ID then you need to use #property1 not .property1 .property1 { color: #0dc3ff; … Read more

[Solved] How to individually increase or decrease a value using jquery

[ad_1] DEMO $(document).ready(function () { $(“.quantity-adder .add-action”).click(function () { if ($(this).hasClass(‘add-up’)) { var text = $(this).parent().parent().parent().find(“[name=quantity]”, ‘.quantity-adder’) text.val(parseInt(text.val()) + 1); } else { var text = $(this).parent().parent().parent().find(“[name=quantity]”, ‘.quantity-adder’) if (parseInt(text.val()) > 1) { text.val(parseInt(text.val()) – 1); } } }); }); I added the .parent() so that then find the proper text to increase 7 [ad_2] … Read more

[Solved] HTML CSS hover not working

[ad_1] Add the style to the css, and .Menu should be .menu .Menu { width: 100%; height: 50px; position: fixed; background-color: #35f5ca; top: 0; left: 0; } .title { font-family:”Sans-Serif”; position:fixed; top: 1%; left: 0; vertical-align: middle; font-size: 150%; color: white; } .icon { transition: all 0.5s; width:40px; height:40px; position:fixed; right: 5px; top: 0.5%; opacity: … Read more

[Solved] Using HTML and Javascript I want the solution [closed]

[ad_1] You are new to the community and asked for very basic example. From next time onwards, please show us your work before seeking help. var checkbox = document.querySelector(‘.js-disableCurrentAddress’); var currentAddr = document.querySelector(‘.js-currentAddress’); checkbox.addEventListener(‘change’, handleDisable); function handleDisable() { if (checkbox.checked) { currentAddr.setAttribute(“disabled”, “disabled”); } else { currentAddr.removeAttribute(“disabled”, “disabled”); } } <input type=”text” class=”js-currentAddress” placeholder=”current”> <input … Read more

[Solved] Would your website perform better if you created stylesheets for each screen size, rather than using a feature such as Bootstrap?

[ad_1] A quick test case shows that Chrome, at least, fetches all the stylesheets no matter what the media query says. This isn’t really surprising as users can resize windows. It holds true for device-width as well though. So there are no savings at all since all the stylesheets are downloaded. This comes with the … Read more

[Solved] Pick the first letter and put it above the content group

[ad_1] Fairly simple with jQuery – see the code comments for explanation. // shorthand for on document load $(function() { // a variable to store our current first letter var currentFirstLetter; // for every child of mylist $(‘.mylist’).children().each(function() { // take the first character of its content var thisLetter = $(this)[0].innerHTML.substr(0,1).toLowerCase(); // if its different … Read more

[Solved] Inline Html Elements

[ad_1] <!DOCTYPE html> <html> <body> <div>Text Here <button id=”button” style=”float: ‘right'”>Click Me!</button> </div> </body> </html> The code above works. You’ve missed the ”. Edited – added – It does work when you apply other styles, for instance: <html> <body> <div style=”color:blue;text-align:center; background-color:red”>Text Here <h1 style=”color:blue;text-align:center”>This is a header</h1> <button id=”button” style=”float: ‘right'”>Click Me!</button> </div> </body> … Read more

[Solved] why my css is not working with bootstrap ?

[ad_1] If you’re using bower, try adding the bootstrap dependency to your bower.json file as such: “dependencies”: { “angular”: “~1.3.3”, “bootstrap”: “~3.2.0″ }, and add the following to your index.html file (<link> in head and <script> with your other script tags at the bottom): <link href=”https://stackoverflow.com/questions/27298717/bower_components/bootstrap/dist/css/bootstrap.css” rel=”stylesheet”> <script src=”bower_components/bootstrap/dist/js/bootstrap.js”></script> Don’t forget to bower install in … Read more

[Solved] Change DIV Image Style with Javascript

[ad_1] I think it’s much better if you use classes for this purpose. Please, try this solution: <style> .img { max-width: 100%; max-height: 100%; width: auto; height: auto; } .changesize { max-width: 40%; max-height: 40%; } </style> <div id=”win” class=”img”>xyz</div> <script> document.getElementById(“win”).className = “changesize”; </script> Hope it helps. [ad_2] solved Change DIV Image Style with … Read more

[Solved] CSS HTML 1 big square box divide into 4 box with full background image, hover to certain box will change background image [closed]

[ad_1] Your best bet is to start with CSS grid. I’ve but together a minimal example here to show you how it would work. <div class=”grid”> <div> hi </div> <div> hi </div> <div> hi </div> <div> hi </div> </div> Then for your css: div.grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 8px; } div div … Read more

[Solved] Extract information from html page using css selector

[ad_1] You can use the following Nodes = document.querySelectorAll(“.bloco-dados li”) Data = [] // new array for (I = 0; I < Nodes.length; I++) { DataName = Nodes[I].firstChild.innerText // <b> tag is the first child node of <li> tag DataName = DataName.substr(0, DataName.length – 1) // Remove last character (the colon) DataValue = Nodes[I].lastChild.innerText // … Read more

[Solved] Creating the same kind of navigation with HTML & jQuery [closed]

[ad_1] The key is: scrollPosition. The Result you want to achieve is a bit too much to explain every single action you have to take. Here is an example of what you are looking for: FadeIn on scroll $(document).ready(function() { /* Every time the window is scrolled … */ $(window).scroll( function(){ /* Check the location … Read more

[Solved] How to make a text box change depending on a dropdown menu

[ad_1] This code shows how you can accomplish what you seek. As others have mentioned, it’s not exactly the most secure / efficient way to do this, especially if you’re dealing with real money, but all you have to do to get this to work is add jquery to your html file with <script src=”http://code.jquery.com/jquery-latest.min.js”></script> … Read more