Quantcast
Channel: Active questions tagged html - Stack Overflow
Browsing all 72330 articles
Browse latest View live
↧

How to replace for loop for while loop? [closed]

Here is my code. My teacher says I'm not supposed to use a for loop and that I should replace it with a while loop. How do I do that?Thank you.var futureValue = investment; for (var i=1; i <= years;...

View Article


How to group html table rows

I have HTML table which I am rendering from JSON data through vue.js, I want to group my table row and print some total and console which are common with there sum of amount respectivellyHere is my...

View Article


Cannot get two specific widgets to appear in the same html doc (knitted from...

I am trying to knit two widgets or plots (a chord diagram and a sankey diagram) together in the same html document, and I am quite confused as to why they do not appear in the resulting html. Either...

View Article

Image may be NSFW.
Clik here to view.

Text highlight based on input term behaves unexpectedly

This is how the html paragraph format looks like before the search term entered.After entering the term it loses the initial format (returns plain text) and duplicates the p text by the number of...

View Article

Why won't this table use the specified dimensions?

I'm trying to have a very big table with fixed cell widths and the parent container overflowing. Here is a fiddle where I want the container to overflow. Why is it not working and how to do it...

View Article


Trying to access a model object inside a script tag

I'm using Asp.Net Core and trying to reference the model from inside a script tag:<div> <script> function calcprices() { @Model.Price = document.getElementById("price").value; }...

View Article

How to set width of ngb Dropdown Menu inherited from parent ngb Dropdown...

Since I have to use property container="body" ->https://github.com/ng-bootstrap/ng-bootstrap/issues/1012 My dropdown is attached to the body(correct me if i'm wrong...). So it means I can't inherit...

View Article

How to create next and previous pages button on WordPress?

This is my code so far. I also want to make sure that it checks if a next/previous page exists, if it doesn't, the button should be hidden.<div class="row" data-component="grid"> <div...

View Article


Use of html form with JS frameworks offering reactivity and view models

What is the use of the html form element in today's world of modern web app development with reactive and view model based JS frameworks? The data submission from the client to the server happens via...

View Article


scroll to a div element with using javascript

i know there are some topics for this problems...whatever i try i could not handle it...first of all i am a wordpress user and installed a wcfm marketplace plugin... i suppose that for some reasons...

View Article

Image may be NSFW.
Clik here to view.

How to Fix Sidebar Error Using JavaScript

function sidebarSticky() { let sidebar = document.getElementById("sidebar"), sidebarHeight = sidebar.offsetTop + sidebar.clientHeight; function process() { let windowHeight =...

View Article

search filter only perform search on particular page number and not on all...

I implemented search filter and pagination both but the problem is that the search filter only search the divs that are present on the particular page number , not on all the divs that are present as...

View Article

Equal width sidebar columns with CSS Grid

Is it possible to have both left and right columns have the same width while the middle column takes the remaining space? I don't want to set percentages like grid-template-columns: 20% 60% 20%,...

View Article


Local Storage vs Cookies

I want to reduce load times on my websites by moving all cookies into local storage since they seem to have the same functionality. Are there any pros/cons (especially performance-wise) in using local...

View Article

Why is the inline style not getting applied? [closed]

.main { width:100%; height:100%; display:inline-block; } .leftdiv { padding:0px; color:red; background-color:green; display:inline-flex; } .rightdiv { padding:15px; color:yellow; background-color:grey;...

View Article


SCSS - Attribute selector value gets quoted

Here's the SCSS:@mixin bg($i) { /*...*/ } select { $i: 0; @while $i <= 10 { &[value="#{$i}"] ~ .container { background-image: bg($i); } $i: $i + 2; } } where bg($i) refers to a function that...

View Article

textarea not updating after user changed it

I have a textarea like this:<textarea id="text">some text</textarea> It can be updated by the user as you would expect. But when I try to load the content in javascript, it still shows the...

View Article


Image may be NSFW.
Clik here to view.

Two css hovering effects in one, how two effects are linked with each other?

How to make two css code linked with each other?For example: An icon which is flipping when hovering it but it is also slightly going up with its white background. You can see in this website...

View Article

Image may be NSFW.
Clik here to view.

amCharts tooltip is showing only on DateAxis but not ValueAxis

I'm using amCharts and I'm making a XY Chart with multiple series, the tooltip shows ony when the X Axis type is DateAxis but not working when it's ValueAxisvar dateAxis = chart5.xAxes.push(new...

View Article

extract text from second div by text beautifulsoup

A have below html code. Need to extract text4 based on "text3" value<div class="main"> <ul> <li> <div class="1"> text1 </div> <div class="2"> text2 </div>...

View Article
Browsing all 72330 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>