0/160

css Questions

votes
Mathew MacLean   2018-05-30 10:43

Is it possible to apply CSS to half of a character?

What I am looking for: A way to style one HALF of a character. (In this case, half the letter being transparent) What I have currently searched for and tried (With no luck): Methods for styling ...
Tamas Koos   2018-06-04 05:00

CSS grid - remove elements with jQuery so they don't take up space

So I have a css grid layout with "boxes" inside, that I filter with a text input and javascript. How can I hide the filtered out elements so that they don't even take up space within the grid (so the ...
Alorain   2018-06-04 07:51

Materialize js doesn't work on first load

I am trying to make a Vue.js SPA chat app and I have problem with Materialize CSS and JS. JS doesn't work on first load and to make it work I have to reload the page. Not sure where the problem is ...
Charlie McShane   2018-06-04 08:33

Creating a “prev/next” for li list

I'm creating an li list which is generated by a PHP repeater that grabs the Wordpress' blog posts and places the titles in a full li list. However, I'm trying to code it so only the first seven li's ...
Mehul Jariwala   2018-06-04 10:30

new Image() how to give CSS in that i want to give image padding

var loadedImg3 = new Image(); loadedImg3.onload = function() { outerWheel.wheelImage = loadedImg3; } loadedImg3.src = "circle3....
JBradwell   2018-06-06 20:22

Selecting and manipulating CSS pseudo-elements such as ::before and ::after using jQuery

Is there any way to select/manipulate CSS pseudo-elements such as ::before and ::after (and the old version with one semi-colon) using jQuery? For example, my stylesheet has the following rule: ....
Robert MacLean   2018-06-06 23:01

How to remove close button on the jQuery UI dialog?

How do I remove the close button (the X in the top-right corner) on a dialog box created by jQuery UI?
Craig   2018-06-07 00:10

Using jQuery to center a DIV on the screen

How do I go about setting a <div> in the center of the screen using jQuery?
Alex   2018-06-07 04:52

How can I remove a style added with .css() function?

I'm changing CSS with jQuery and I wish to remove the styling I'm adding based on the input value: if(color != '000000') $("body").css("background-color", color); else // remove style ? How can I do ...
mkoryak   2018-06-07 19:56

How to apply !important using .css()?

I am having trouble applying a style that is !important. I've tried: $("#elem").css("width", "100px !important"); This does nothing; no width style whatsoever is applied. Is there a jQuery-ish way ...