Category "html"

Override the -webkit-search-cancel-button

I'm trying to override the small (x) that appears in the search bar, to have it do more than clear the search Currently this is my search bar: HTML: <input

How to send form data to API post via JavaScript

I have a form in my project and when it is submitted I need to send the data to an API and receive the response to check if there's an errors the html <form

Adsense without Java Script

Hey I am thinking of adding Adsense to my website but the issue is that most of my users have non JavaScript phones. The code I receive from Adsense is complet

Create a GIF from an HTML animation

THE PROBLEM I've created an HTML animation using google web designer, then I need to export my project as a GIF. Google web designer doesn't provide any tool to

Adding HTML via JS to a specific child-Element

I have a very specific situation where I have ~50 child-divs which I cannot influence directly, that is, I cannot add classes or ids to one specific child-div n

ERROR TypeError: Cannot read property 'slice' of undefined---Typescript

how are you? I have one problem 'slice' of undefined in my project. I use autocomplete material https://material.angular.io/components/autocomplete/examples M

render html strings in flask templates [duplicate]

I'm building a web page to show articles. In my database, I have to attributes, one of which is used to put Markdown code and the other to s

How to create a paginated screen in the Freemarker language

I have a page where the news is displayed and I have below 2 buttons next and previous. The problem is: on click of next button news gets loaded as a continuous

How to center content in a Bootstrap column?

I am trying to center column's content. Does not look like it works for me. Here is my HTML: <div class="row"> <div class="col-xs-1 center-block"&g

CSS line-clamp not working in safari (on Mac)

I have 2 problems with the display of line-clamps in Safari browser. First of all the codesnippet: .clamp-3-lines{ overflow: hidden; text-overflow: elli

Subresource integrity for images and other media?

Subresource integrity seems to be an awesome stopgap allowing to use third-party controlled HTTP-served resources in a secure way. However the spec considers HT

How to wrap text around image in Bootstrap 5

I want my text to wrap around my image. Right now I'm using the Bootstrap 5 grid system. But this is not giving me the result I want. I've tried using 'float: r

How to fit a paragraph element inside its parent container?

I'm having this problem: Here is the code: <header class="fu-main-body-adress"> <h3>Address</h3> <p><a href="#" target="_

How do I compare two dates in HTML? [duplicate]

This is my code: <input type="date" name="startDate" id="startDate" /> <input type="date" name="endDate" id="endDate" /> I want s

How do I make two Bootstrap cols the same height?

I have a simple layout like this: <div class="row"> <div class="col-xs-6"> </div> <div class="col-xs-6"> </div> &

Why is my Div transition not resetting on mobile

I have set up a div to move up from outside the bottom of the page when hovered over. This works fine in firefox "responsive design mode", when i try it on And

Problems to represent a Tree using PrimeNG

I have a question about representing a tree with PrimeNG. I would like to test the representation of the tree before filling it with data from a JSON file. So I

active anchor tag background color

I have jsp page built with struts2 tiles which has vertical Menu on the left hand side. Upon selecting a Menu I want to keep the background of the selected menu

Contenteditable div with selectAll on focus not working entirely

I have some divs in a table like this one: <div contenteditable="true" onfocus="document.execCommand('selectAll',false,null)">Something</div>

Should I use .innerText or .value in JavaScript?

There's a problem I've encountered but can't find explanation so far. The code is as follows: let textbox = document.getElementById("textbox"); let result =