Quantcast
Channel: Active questions tagged html - Stack Overflow
Browsing index pages (79152 articles)
↧

Center a div without using flex

I created a banner with a text and two buttons. I used Inline-block element to align the elements as I do not want to use flex. The left padding on the banner is set correctly but not the right one. I...

View Article


Image may be NSFW.
Clik here to view.

Angular template only renders when I save it in VS Code [closed]

I updated my website to Angular 22 and, after some adjustments to the code, I have the site running with the routing working again.The issue I face is that when I load a page that's supposed to fetch...

View Article


How can I customize keyboard behaviour in HTML menus?

Is there an API that lets me decide how selecting via keyboard works in an HTML menu, or a way to hint about localization to the user agent?The desired behaviour is often locale-dependent: for...

View Article

How should I prevent HTML injection in user input added to a C# HTML email?

I am generating HTML emails in a C# application, and some of the values added to the email are user-controlled.For example:values.Add("Body", $"{CurrentItem.Date:dddd, dd MMMM yyyy}<br />" +...

View Article

What is the most secure way to embed a PDF (preview) into a website?

AimJust embed a PDF (preview) into a website. This is very likely a well-known use case.Given I have this use case for showing a PDF preview, I am searching for a solution. And yes I know e.g. MDN...

View Article


Adding Header and Footer only on few Pages when printing Html

Hi I'm working on generating a pdf from html using browser's print functionality in react.This is the components of html : const coverPage = `<div class="coverPage"></div>`; const...

View Article

Making fixed header and scrollable content

Plz I want to ask how to make the following:Fixed background for all (header & content) >>> I made it well.Fixed header while the content scrolls >>> I made it well.But the issue...

View Article

How can we make a navigation bar? [closed]

How can I make a navigation bar when anyone scroll the page the navigation bar's background color changes from transparent to white and navigation link's color change from white to black?

View Article


Flexbox with multiline text ellipsis

I've been using the white-space: no-wrap, text-overflow: ellipsis, and overflow: hidden CSS properties to create ellipsis truncation for multiline text. However, this doesn't work when using...

View Article


How to toggle class using pure javascript in html

I have a <div>, and I want to toggle its classes on hover.Here is my code:function a(){ this.classList.toggle('first');...

View Article

Adjusting the space between elements set by justify-content space-between

Is there any way to reduce the space in justify-content:space-between?There is too much space between elements. space-around is no solution either, so I was wondering if maybe I can for example say...

View Article

How to animate multiple lines of marquee text separately in JavaScript?

So, I wrote something in JavaScript that is supposed to recreate the non-standard and deprecated <marquee> tag. This is what I got so far:// Grab the JavaScript marquee text and container...

View Article

Is there any kind of accessibility headers in browsers e.g. sign language

Most browsers share the user defined language with the websites they display (e.g. in JavaScript: navigator.language || navigator.userLanguage).But what if your native language is, for example, sign...

View Article


How to change background color of mat-form-field only in disabled mode?

I am trying to change the background color of the mat-form-fields on for those who are disabled. By after a good look I cannot figure how to do it. Below is my code for the same:HTML<div...

View Article

Make HTML element disappear with CSS animation

I want to know if there is a way to make an HTML element disappear with an animation of CSS. So when the element gets removed from the page by some script, an animation shall display before the element...

View Article


html text input onchange event

is there a way to implement a text change event to detect text change on an HTML input text field? It's possible to simulate these using key events (key press etc), however, it's really not performant...

View Article

Handling of enter key in an HTML5 dialog

I've implemented an HTML5 dialog, and as long as the user interacts with the buttons (which emit "close" events), it works fine.But suppose you press the Enter key. The dialog also closes. I've...

View Article


Remove borders from Kendo Grid

I have a Kendo Grid that has a toolbar and pager and I am trying to remove the borders from the grid that are associated with those items. So I only want the border to be around the grid itself, from...

View Article

How do I align a `position: absolute` `span` by its baseline/cap?

I want to align a span to the bottom-left- or top-right-hand corner of a div. I could do this:.container { position: relative; width: 100px; height: 100px; border: 1px solid currentColor;}.bottom-left...

View Article

How to override CSS for Dark/Light Mode Toggle?

I am trying hard to use W3Schools Dark Mode Toggle for my web site but what happens is that the background of my web site doesn't change.This is my Test Web site Page in which only stars could change...

View Article
Browsing index pages (79152 articles)


Latest Images