How can I add a gradient overlay to an image that is set in a style attribute in css?

HTML
I have a div that contains a thumbnail image of an article. I would like to add a gradient overlay to this image. My problem is that the gradient is...
3 years ago

Add class dynamically to values based on symbols

HTML
I wanted to add class dynamically if the integer is positive or negative.. I tried by calling a function from the HTML but that dosen't seem to be a r...
3 years ago

Change template dynamic

HTML
I have something like this <script id="template1" type="text/html"> <h3>Template 1</h3> <button id="templButton" data-bind="cli...
3 years ago

How to add button to caculator

HTML
I've got to do calculator and want to add to it a couple of buttons. For now, I'm fighting with a percent button. I copied the logic of a button with...
3 years ago

Extract src link from IMG tag with specific class name with Regular Expression

HTML
When we have: <img src="http://example.com/myimageurl.jpg" /> <img class="my-image-class" src="http://example.com/myimageurl2.jpg" /> W...
3 years ago

Horizontal scroll in DIV with many small DIV's inside (no text)

HTML
Objective I have a main DIV with fixed height and width, and in that I want have lots of small DIV's to float freely. I have more small DIV's than ca...
3 years ago

Preventing image distortion when displayed as flex?

HTML
I'd like for an image to only display when the viewport size is less than 768px; when less than 768px, the image should span the entire width of the w...
3 years ago

How to detect if JavaScript is disabled?

HTML
There was a post this morning asking about how many people disable javascript. Then I began to wonder what techniques might be used to determine if th...
3 years ago

how to switch to another view using css class on click in angularjs using ngclass

HTML
I want to change the middle view of the current view when the links are clicked. one link is to view the iphone and the other one is to view the table...
3 years ago

Ordered list alignment with counter-increment

HTML
I have a simple ordered list which is not aligned properly if list item has long text. https://jsfiddle.net/rkmv3rn3/6/ .page-left-bar { widt...
3 years ago

sprintf url formatting in javascript

HTML
how do i write a function in javascript that can get the current url eg: http://www.blahblah.com/apps/category.php?pg=1&catId=3021 and depending...
3 years ago

Why is bootstrap form and pannel overlapping?

HTML
I am using bootstrap and I have a div panel and after it a form, and I have this same structured element twice. The form and the panel dive after it a...
3 years ago

PHP Sessions Dies on next page

HTML
I have a login page wich sends a variable to another page verifying if login is true (1) or false (0). I can echo $_SESSION['logon'] on page1 but just...
3 years ago

Is there an alternative to HTML?

HTML
Is there a language I can use to write my website's HTML, which: converts to HTML without having to write the HTML directly has all the power of HTM...
3 years ago

What is the easiest way to break input boxes into columns?

HTML
I'm having trouble finding a simple way to break input boxes into columns. If I have: First Name Last Name Email Phone Message How can I make it so ...
3 years ago

Datatables hide columns if user doesn't have the rigth role in Spring security

HTML
I have to hide some columns of my datatable if the user isn't ADMIN. In HTML I have this code <table id="fleetsTable" class="table table-borde...
3 years ago

Shrink anchor around centered block

HTML
How can I shrink an anchor (green border) around a centered image of arbitrary (not specified) width? In other words, I want the seconds box with the ...
3 years ago

Isolate a required field validator?

HTML
I have two search buttons on a page, one linked to a dropdown list and one linked to a dropdown list with a textbox for more search criteria. I have r...
3 years ago

CSS code inside my media query is ignored

HTML
I am trying to pad a <p> left only at a certain screen size. I have the following CSS and HTML: float-left-icon { padding-left: inheri...
3 years ago

twitter-bootstrap/HTML/CSS : How can I make space between two buttons in same div?

HTML
I have jsfiddle here : http://jsfiddle.net/hhimanshu/sYLRq/4/ Required I need some space between both the buttons. What is the best way to ac...
3 years ago