Category "html"

XPath, how to select a "checkbox" that is a child to an element with a custom content

I have a task that requires using some XPath, the site is http://todolistme.net/ So, I need to select a checkbox: //input[contains(@type, 'checkbox')] But befor

Responsive Design: Everything shrinks when mobile keyboard is active

There are many screen resolutions in browsers nowadays, so using px in my CSS sizes isn't actually a good idea. I adopted and used vh in substitution for px sin

Display block without 100% width

I want to set a span element to appear below another element using the display property. I tried applying inline-block but without success, and figured I could

Update HTML5 canvas rectangle on hover?

I've got some code which draws a rectangle on a canvas, but I want that rectangle to change color when I hover the mouse over it. The problem is after I've dra

How do I make a table scrollable

Does anyone know a vanilla way of making the body of a table scrollable using only html and css? The obvious solution tbody { height: 200px; overflow-

How to assign custom color to progress bar bootsrap 4

Guys i have progressbar: <div class="progress"><div class="progress-bar" style="width:{{a.49}}%">{{a.49}} %</div> </div> How can i as

CSS to draw slant line border [duplicate]

I have not much experience in web designing, I was just trying to write a css to get the out put similar to this Can anyone help me to achi

Dynamically changing the content of: meta property="og:image"

I want to change the main photo in a web page, I just have the url page. So I decided to use the meta written for Facebook sharing. I want to change the image

Converting a text XHR-Response to arraybuffer

I'm making an XHR request. At the time of making the request, I don't know whether the URL will return an image or not, so I'm setting xhr.responseType="text"

Chrome ignores autocomplete="off"

I've created a web application which uses a tagbox drop down. This works great in all browsers except Chrome browser (Version 21.0.1180.89). Despite both the i

Django retrieve checkbox values sent by Ajax POST request

I am trying to send form data to Django server via Javascript Ajax request specifically checkbox values, but at the server I read None values. here's the server

Form value to be empty if no change by user

I have a form with two inputs: <input type="text" name="keyword" value="Search" onfocus="wipe(this)"/> <input type="text" name="city" value="City" onf

Form value to be empty if no change by user

I have a form with two inputs: <input type="text" name="keyword" value="Search" onfocus="wipe(this)"/> <input type="text" name="city" value="City" onf

Cant link stylesheet

I’m setting up a new website. I launched an Amazon EC2 instance with LAMP using Bitnami and I’m now starting to build the site, however when I try t

How to disable scroll on HTML5 date inputs having a webshim fallback in

I'm trying without success to disable scroll on an HTML5 date input. This input has a webshim fallback, which cause my JS to works with Chrome, but not Firefox.

Is there a java/JS library which can compare two json files and produce comparison result as html?

The idea behind the question is to have some library/tool which can compare two json strings and produce comparison result as html. E.g. the way some online com

<link> vs <a>: when to use one over the other?

I have some confusion between <link> and <a>. I know that in order to add CSS to an HTML document we use the <link> tag, for example: <li

JavaScript, for each hover over change the text color

I have 4 div (colored box) and each div represent a different color. When a user hovers over one of the colored boxes the text to display ("Hello world") should

how to use json file in html code

I have json file mydata.json, and in this file is some json-encoded data. I want obtain this data in file index.html and process this data in JavaScript. But a

Convert HTML5 to Flash

I am using impress.js extensively to create a lot of HTML5 presentations. These presentations need to be displayed on touch-screen kiosks. Unfortunately, the