tagged [css]

CSS filter: make color image with transparency white

CSS filter: make color image with transparency white I have a colored png image with transparency. I would like to use css filter to make the whole image white but leave the transparency as it is. Is ...

14 Jun at 20:40

Prevent flicker on webkit-transition of webkit-transform

Prevent flicker on webkit-transition of webkit-transform > [iphone webkit css animations cause flicker](https://stackoverflow.com/questions/2946748/iphone-webkit-css-animations-cause-flicker) For so...

23 May at 12:10

CSS selector based on element text?

CSS selector based on element text? Is there a way to select an element in css based on element text? ie: That probably doesn't work. Edit: Also only need to support Chrome.

31 Jan at 07:10

How to select label for="XYZ" in CSS?

How to select label for="XYZ" in CSS? I wish to select the label based on the `'for'` attribute to make layout changes.

21 Apr at 11:0

How to use CSS to surround a number with a circle?

How to use CSS to surround a number with a circle? I would like to surround a number in a circle like in this image: ![Number in Circle Image](https://i.stack.imgur.com/GvOrl.png) Is this possible an...

14 Dec at 12:40

How to select an element with 2 classes

How to select an element with 2 classes i have this elements I want apply to element with class a and b the color #666. How can I do this with CSS?

10 Mar at 08:14

What is this CSS selector? [class*="span"]

What is this CSS selector? [class*="span"] I saw this selector in Twitter Bootstrap: Does anyone know what this technique is called and what it does?

10 Feb at 19:18

How to skip first child?

How to skip first child? I don't want to apply css on first `One` I need just opposite of `:first-child`.

23 Jan at 21:56

Select second last element with css

Select second last element with css I already know of :last-child. But is there a way to select the div: NOTE: without jQuery, only with CSS

21 Dec at 23:59

How can I get a specific number child using CSS?

How can I get a specific number child using CSS? I have a `table` whose `td`s are created dynamically. I know how to get the first and last child but my question is: Is there a way of getting the seco...

18 Jul at 10:26

Is there a CSS selector for text nodes?

Is there a CSS selector for text nodes? What I would like to do (not in IE obviously) is: Which would give a text node a margin. (Is that even possible?) How would I get the text node with CSS?

30 Mar at 06:39

How to float 3 divs side by side using CSS?

How to float 3 divs side by side using CSS? I know how to make 2 divs float side by side, simply float one to the left and the other to the right. But how to do this with 3 divs or should I just use t...

18 Mar at 16:59

Rotate and translate

Rotate and translate I'm having some problems rotating and positioning a line of text. Now it's just position that works. The rotation also works, but only if I disable the positioning. CSS: The html ...

17 Jul at 08:58

Select every Nth element in CSS

Select every Nth element in CSS Is it possible to select, say, every fourth element in a set of elements? Ex: I have 16 `` elements... I could write something like. is there a better way to do this?

25 Aug at 02:43

CSS Cell Margin

CSS Cell Margin In my HTML document, I have a table with two columns and multiple rows. How can I increase the space in between the first and second column with css? I've tried applying "margin-right:...

24 Sep at 09:35

How to draw a checkmark / tick using CSS?

How to draw a checkmark / tick using CSS? How to the tick symbol using CSS? The symbols I find using [Unicode](https://en.wikipedia.org/wiki/Check_mark#Unicode) isn't aesthetically-pleasing. Icon font...

6 May at 09:46

CSS Circle with border

CSS Circle with border Every guide I find has the line and fill the same colour. All I want is a circle with a red line and white fill. I have tried: But cannot get the red border?

22 Oct at 09:37

How to get CSS to select ID that begins with a string (not in Javascript)?

How to get CSS to select ID that begins with a string (not in Javascript)? If the HTML has elements like this: How do I match all of those id's starting with "product"? I've seen answers that do this ...

16 Jul at 14:11

How to import Google Web Font in CSS file?

How to import Google Web Font in CSS file? I'm working with a CMS which I only have access to the CSS file. So, I can't include anything in the `` of the document. I was wondering if there was a way t...

15 May at 12:46

Difference between style = "position:absolute" and style = "position:relative"

Difference between style = "position:absolute" and style = "position:relative" Can any one tell me the Difference between `style = "position:absolute"` and `style = "position:relative"` and how they d...

12 Aug at 14:24

Can the :not() pseudo-class have multiple arguments?

Can the :not() pseudo-class have multiple arguments? I'm trying to select `input` elements of all `type`s except `radio` and `checkbox`. Many people have shown that you can put multiple arguments in `...

26 Aug at 10:35

Using :before and :after CSS selector to insert HTML

Using :before and :after CSS selector to insert HTML I'm wondering if the following is possible. I know it doesn't work, but maybe I'm not writing it in the correct syntax. Any way of doing this?

16 Mar at 12:49

How can I add white space before an element's content using CSS?

How can I add white space before an element's content using CSS? None of the following code works: How do I add white space before an element's content? Note: I need to color the and the for semantic ...

1 Oct at 15:15

Select element based on multiple classes

Select element based on multiple classes I have a style rule I want to apply to a tag when it has classes. Is there any way to perform this without JavaScript? In other words: I want to apply my style...

7 Jan at 09:12

Style child element when hover on parent

Style child element when hover on parent How to change the style of child element when there is hover on parent element. I would prefer a CSS solution for this if possible. Is there any solution possi...

30 May at 13:31