Quantcast
Channel: Active questions tagged html - Stack Overflow

Holberton checker fails “thumbnailElement is declared and assigned by ID”...

I’m working through a Holberton School web project.In behavior.js I need to toggle a thumbnail’s size when it’s clicked.The task says:Modify the click event in behavior.js to include an if...else...

View Article


$.parseHTML().error() is not a function error when dynamically creating DOM...

I'm creating img elements using $.parseHTML(), from a dynamic stringso I need to check if the img was successfully created with the given srcps: the image is hosted on the same server not an external...

View Article


How to use slider arrows to activate Twitter Bootstrap tabnav controls

I asked this question before and you guys helped me, everything works beside that the Navtab which is active isn't highlighted.For Example if I Press Tab 2, the tab is highlighted and the slider will...

View Article

Page Formatting Drop-Down

I have recently started working on a project for a new webpage. My only problem is that on some web browsers (Apple Safari, Mozilla Firefox) the text and images are shifted of way to far to the left. I...

View Article

Get img thumbnails from Vimeo?

I want to get a thumbnail image for videos from Vimeo.When getting images from Youtube I just do like this:http://img.youtube.com/vi/HwP5NG-3e8I/2.jpgAny idea how to do for Vimeo?Here is same question,...

View Article


Input[file] .click() not working in Firefox KeyboardEvent

When pressing CTRL + O it should trigger the input of type file by fileInput.click() - which opens the File-Open-Dialog (just as clicking on <input type="file" /> by hand).Now in most Browsers my...

View Article

Is there a way for JSDoc comments to be visible in HTML files?

I'm not sure how to get the code snippet for this question as I don't know how to specify the filename of the JavaScript file, but here goes.I have a JavaScript file, "scripts.js" that includes //...

View Article

Where can I find a list of all special HTML characters? [closed]

I'm in the process of adding various physics equations to a website. There are several special characters I've needed to add, and I haven't been able to find some of them (for instance, I need to add a...

View Article


Change date input triangle to a calendar icon

Right now I'm focusing on getting the input[type="date"] in Google Chrome to display a calendar icon (.png) instead of the downwards triangle that it uses by default. I've tried to do something with...

View Article


JS regex to match a username with specific special characters and no...

I am pretty new to this reg ex world. Struck up with small task regarding Regex.Before posting new question I have gone thru some answers which am able to understand but couldnt crack the solution for...

View Article

How to replace +91 using regex pattern?

Get from https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_replace2Now I want to change +91 in a string. From https://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_replace2<!DOCTYPE...

View Article

Image may be NSFW.
Clik here to view.

Angular mat-form-field not resizing in flex-box

I am trying to use Angular material form field along with flex-box, but unable to make them shrink on screen resize, i am sure i am missing some flex-box property or style, please help me in fix this...

View Article

Use of RFB or RDP for a single GUI application

I’d like to be able to create a GUI that can be viewed over the network by a remote client.One approach is to code the whole GUI in HTML5 and run it from a server such as Apache; the main difficulty...

View Article


What is meant by fallback color in CSS

I want to know the meaning of fallback color? By Googling I came to know that a fallback color is the one which will display and replace the color format when the format given is not supported by the...

View Article

How to check if an elements class name and change it using js [duplicate]

I want to change a class name of an element so that I can be able to change iconsHtml:<i class="fa-solid fa-bars" id="bars"></i><script type="text/javascript" charset="utf-8">...

View Article


Image may be NSFW.
Clik here to view.

Prevents dragging slider with mouse when selected as text in Chrome

Consider the following example as displayed on Windows in the Chrome browser.<input type="range">Select the range slider using one of the following methods:Method #1: Click inside the code...

View Article

can't be dragged in Chrome [duplicate]

Sometimes in Chrome dragging the <input type="range"> slider doesn't work, the slider freezes.I figured out that this happens when that DOM element is selected by the user, which often isn't...

View Article


Ionic 7 with Angular makes only UI changes when Debbuger ist runing

I have an ion-select which should contain an ion-icon at the end. The icon should change depending on whether the ion-select is open or closed.Problem:My icon changes correctly when the ion-select is...

View Article

Image may be NSFW.
Clik here to view.

No option "Open with" when right clicking in VS Code (Liveserver is installed)

When right clicking in a HTML file in VS Code, I can't find the option to run the file.I already did it before, but then, I coded using php, Python and Java on VS Code, and now I cannot anymore.

View Article

Image may be NSFW.
Clik here to view.

CSS grid for database items

I tried to make elements from my database in grid sequence using css, but all items are moved to the left instead of grindI tried all ways to grid the items but it all flopped.This is my JavaScript...

View Article

Image may be NSFW.
Clik here to view.

bootstrap relative footer goes up when zoom out window

I've got a site (asp.net and bootstrap) the problem is that I have a relative positioned footer that goes up when I resize the window (or when see from mobile device) I can add margin to the content of...

View Article


How do I use localStorage to save a shopping cart in JavaScript? [duplicate]

I’m building a simple shopping cart website as a beginner project, and I want to use localStorage so that the user’s cart items are not lost when the page is refreshed.So far, I understand how to add...

View Article


HTML file input with pure css [closed]

I'm trying to stylize a file input to look better. I watched a bunch of tutorials but they always use "display:none" in the input and stylize the label to look like a button. This works nicely but this...

View Article

Image may be NSFW.
Clik here to view.

swiper.js w/ coverflow causing 'mouse' problems?

<html><head><style> .swiper-slide { width: 75px !important; cursor: no-drop; }</style><link rel="stylesheet"...

View Article

PHP Procedural To OOP

I'm trying to convert my procedural code to oop.<?php $dbc = get_dbc(); $info = mysqli_query($dbc, "SELECT info_id, info_title FROM text") or die("Error: ".mysqli_error($dbc)); while ($info_row =...

View Article


I'm trying to add an overlay as a page border on my site, but it won't align

screenshot of the current homepage. the overlay is JUST off.So as I described, this overlay just won't fit the screen no matter what I do!Here's my code for putting it on the page:.letterbox {...

View Article

Stop server side execution until user input and post back that value in...

I have button called Done with Onclickevent Done().protected void Done(object sender, EventArgs e){ private void Process(MyClass c, Mywebservice webservice) {...

View Article

Apply css just to number and symbols

Apply css just to digitsHow to apply CSS only to numbers in paragraph? (without <span>)How to apply css to only numbers in a text inside/or any <p><p> element?When we look at the...

View Article

Image may be NSFW.
Clik here to view.

Background color on text element to be as wide as max line length

Hello!I'm finding trouble to make the green background area width to be the same as the text line max width (first line of purple background).Green background is parent div, purple background is h3...

View Article



Image may be NSFW.
Clik here to view.

Emojis turning into weird symbols

I published a site to heroku; all emojis turned into strange symbols:my pc:heroku:This is the html part:<div class="description"><p>🍬 Well, I see you have discovered Candy Lounge!...

View Article


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