Category "html"

Stylesheet not loaded because of MIME-type

I'm working on a website that uses gulp to compile and browser sync to keep the browser synchronised with my changes. The gulp task compiles everything properl

Vue.js 2 - Remove initial margin from body tag

My apologies if this is a stupid question, I'm still pretty new to Vue. I created a Vue (with the command vue init webpack <project-name>) project and sta

How to add class name to an existing tag in php

I have a hidden tag in html code: <p class="class1">something<p> and php code: if(SomeCondition){ select element by DOM and add class "active" so

Pandoc Markdown: ignore text in PDF (but include in HTML) Updated?

This question of how to include text that will appear in html but not pdf has been answered twice (LaTeX multicolumn block in Pandoc markdown and Pandoc markdow

how to change anchor tags position, when I hover over it?

How to change position of anchor tags on hover? I have tried many things like setting position to relative and then using top,bottom,left and right, setting the

Textarea 100% height inside td by css

I want this textarea to be fit inside the table row, by its height & width, so I have used height: 100%; width 100%; on textarea and my decided height width

Javascript and JQuery not working properly in my website project

Js and jquery are not working properly, the menu-toggle button does not work in responsive mode. the carousel (using slick) is not working properly in full page

Make YouTube video autoplay using React

I am trying to make my video autoplay using react. adding autoplay=1 as a parameter doesn't work. Any suggestions?` Here is my code. <div className="vide

Bootstrap 5 Carousel Slide Indicator Not Working

Currently, I am working on a carousel for a revamp of my mom's website, and everything besides the functionality of the slide indicator is working. Whenever you

A click in iOS Safari triggers a "hover state" on element underneath where you tapped

On iOS Safari 11, if I have a <div> positioned over an element that has a :hover effect, and the <div> has an event that makes it disappear when cli

How to add a line break in Rmarkdown code?

I have an rmarkdown document with this: `r {"### MyHeading"}` I would like to add a line break after this (no text, just an empty line). How can I accomplish

Get values in JSON object from html input text and label

I have a HTML by which currently getting the values of input elements in loop in an array. But now I want this in json object with its label. Below is my html

simple task javascript buttons in html

Can someone please help me make a button which prints thank you when clicked? I know there are lots of ways to do this but in my circumstance, I need to use an

Class isn't changing color on hover on the whole paragraph element

I've got an issue while I'm trying to change my <p> colour in hover. The non-hover colour works with the class, but in hover, only the fa icon changes col

How fix div which includes span tag for responsive?

I found a neon graphics format and I want to use it. It looks exactly what I want, but not responsive .When it goes into phone mode, the text goes out of the p

Keep prefix even if dropSpecialCharacters is true with ngx-mask

<input matInput prefix="+55" mask=" (00) 00000-0000" [dropSpecialCharacters]="true" type="text" formControlName="phone" name="phone"> With this code I'm

Pulling company name from webpage within <a> tag

I am trying to streamline my data collection by using Python 3.7 and BeautifulSoup to pull company name, if that company is approved or other, and if they are m

How to reset a date in Firefox input[type=date]?

Firefox v57.0.1 supports the attribute "date" for the HTML input tag. I would like in jQuery to reset the date value when the user click on a radio button like

Stop safari from sharing canonical url

I recently noticed that the safari share sheet sends the canonical url when a user uses it to share a webpage. Is there a way to overwrite that behaviour via h

VS Code: Lit custom element not rendering properly

I've copied/pasted the code from lit.dev's playground page to troubleshoot and attempt to get Lit running in VS Code before working on my own project. I was abl