Category "html"

How to close the new html <dialog> tag by clicking on its ::backdrop

I didn't find any built in solution or workaround for closing the html5 <dialog> element by clicking on its background(::backdrop), although it's clearly

How to know if my radio button is checked? AngularJS

guys I did a code for knowing if my checkbox is checked and works fine: HTML: <div ng-app> <div ng-controller="UserController"> <ta

<%= stylesheet_link_tag "application", :media => "all" %> <----- This piece of code is not allowing my ROR application to load locally

After installing Twitter bootstrap, I ran 'Rails server' and now the application will not load. This is the error cannot load such file -- less (in C:/Sites/c

JavaScript runs in Firefox, but not IE or Chrome?

I have the following JavaScript in my site : $(function() { var $cells = $("td"); $("#search").keyup(function() { var val = $.trim(this.value)

Fire Button click event during onsubmit

I want to fire a click event during the onsubmit of form. In button click event I used a url which it has to redirect. I don't want to use the form's 'action" t

Page break inside avoid in flex not working as expected

I have a container which contains several divs which 2 column layout. I want the divs to printed in the new page when I convert to pdf. I have gone through few

How to prevent scaling of a web page

I am designing a web page that occupies only 80% of the horizontal space. On restoring the browser, the web page scales down automatically which makes it look v

Why do child divs extend beyond their parent div?

I feel stupid asking this but this is a very simple problem that don't understand how to solve. In the code below, why are the container, main, and secondary d

how to get the text-underline from strapi articles to my gatsby frontend

I'm working on a support site with strapi(backend) and gatsbyjs/react (frontend). I am trying to retrieve from my admin strapi the text I have underlined and di

Can/should HTML5 Web Workers use CORS for cross-origin?

I ran into an interesting problem while creating a hosted API that relies on web workers. I was hoping to get a little community feedback on it. My server is s

Javascript Validation for all field with Required attribute

I've searched high and low for the answer to this but can't find it anywhere. I have a form which has the HTML 'required' attributes and it does a fine job of

CSS Media query not showing/hiding scrollbar

@media is giving me some problems... I can' seem to figure out how to get it to work. I would like to show the scrollbars if the height/width matches the query.

ol list counter reset based on start property using jquery

I need to make a jquery script that can take the OL start properly and transform it into a css based counter. So for a html like this: <ol > <li>F

Two buttons one form

<?=form_open('blog/register');?> <table> <tr> <td><label for="register_name">User

How to read line by line of a text area HTML tag

I have a text area where each line contains Integer value like follows 1234 4321 123445 I want to check if the user has really enetered vali

IE issues with 'focus' event

I have an app that must run in IE 7/8(compat). (I know, right?) The app includes the following functionality.... If I click on a dropdown list, the list checks

Using Tailwind prose on dark background makes text look too dark

Using Tailwind prose on dark background makes text look too dark without manual configuration TLDR; How do I get prose to work on a dark background? I have a Si

How to make HTML element resizable using pure Javascript?

I was wondering how we can make a HTML element like <div> or <p> tag element resizable when clicked using pure JavaScript, not the jQuery library or

Saving ArrayBuffer in IndexedDB

How can I save binary data (in an ArrayBuffer object) into IndexedDB? The IndexedDB spec doesn't mention ArrayBuffer - does that mean that is not supported (a

videojs youtube plugin MEDIA_ERR_SRC_NOT_SUPPORTED when updating src dynamically

So I have created a simple video playlist which works great with videos that I am hosting but I get the above error when loading a youtube video src. Onclick I