tagged [css]

How to display an unordered list in two columns?

How to display an unordered list in two columns? With the following HTML, what is the easiest method to display the list as two columns? Desired display: The solution needs to work with Internet Explo...

How to apply CSS page-break to print a table with lots of rows?

How to apply CSS page-break to print a table with lots of rows? I have a dynamic table in my web page that sometimes contains lots of rows. I know there are `page-break-before` and `page-break-after` ...

Using the last-child selector

Using the last-child selector My goal is to apply the CSS on the last `li`, but it doesn't do that. How can I select the last child?

24 Feb at 19:59

Imitating a blink tag with CSS3 animations

Imitating a blink tag with CSS3 animations I really want to make a piece of text blink the old-school style without using javascript or text-decoration. No transitions, only *blink*, *blink*, *blink*!...

19 May at 10:36

Apply style to only first level of td tags

Apply style to only first level of td tags Is there a way to apply a Class' style to only ONE level of td tags?

8 May at 05:18

How can I center an absolutely positioned element in a div?

How can I center an absolutely positioned element in a div? I want to place a `div` (with `position:absolute;`) element in the center of the window. But I'm having problems doing so, because the . I t...

25 Jul at 09:50

Is there a jQuery-like CSS/HTML selector that can be used in C#?

Is there a jQuery-like CSS/HTML selector that can be used in C#? I'm wondering if there's a jQuery-like css selector that can be used in C#. Currently, I'm parsing some html strings using regex and th...

CSS Progress Circle

CSS Progress Circle I have searched this website to find progress bars, but the ones I have been able to found show animated circles that go to the full 100%. I would like it to stop at certain percen...

How to specify table's height such that a vertical scroll bar appears?

How to specify table's height such that a vertical scroll bar appears? I have a table with many rows on my page. I would like to set table's height, say for 500px, such that if the height of the table...

2 Jan at 22:50

How to style readonly attribute with CSS?

How to style readonly attribute with CSS? I'm currently using readonly="readonly" to disable fields. I'm now trying to style the attribute using CSS. I've tried using but it is not working for some re...

8 Apr at 19:56

Sass and combined child selector

Sass and combined child selector I've just discovered Sass, and I've been so excited about it. In my website I implement a tree-like navigation menu, styled using the [child combinator](https://develo...

17 Dec at 22:35

CSS rule to apply only if element has BOTH classes

CSS rule to apply only if element has BOTH classes Let's say we have this markup: Is there a way to select only the `` which has BOTH `abc` and `xyz` classes (the last one) AND override its inline wid...

17 Sep at 00:53

CSS Child vs Descendant selectors

CSS Child vs Descendant selectors I am a bit confused between these 2 selectors. Does the selector: select all `p` within a `div` whether or not it's an immediate descedent? So if the `p` is inside an...

12 Feb at 02:0

What CSS selector can be used to select the first div within another div

What CSS selector can be used to select the first div within another div I have something like: What is the css selector for the second div (1st div within the "content" div) such that I can set the f...

8 Aug at 21:4

What is the difference between Normalize.css and Reset CSS?

What is the difference between Normalize.css and Reset CSS? I know what CSS Reset is, but recently I heard about this new thing called Normalize.css What is the difference between the [Normalize.css](...

19 May at 02:39

Looping Animation of text color change using CSS3

Looping Animation of text color change using CSS3 I have text that I want to animate. Not on hover, for example but continually changing slowly from white to red and then back to white again. Here is ...

25 Jan at 02:32

How to create a css rule for all elements except one class?

How to create a css rule for all elements except one class? I have created a CSS stylesheet for my project. Is there any way I can create a css rule that applies to all table elements EXCEPT table ele...

17 Jul at 23:19

Float right and position absolute doesn't work together

Float right and position absolute doesn't work together I want a div to be always at the right of its parent div, so I use `float:right`. It works. But I also want it to not affect other content when ...

26 Jul at 20:58

Using CSS :before and :after pseudo-elements with inline CSS?

Using CSS :before and :after pseudo-elements with inline CSS? I'm making an HTML email signature with inline CSS (i.e. CSS in `style` attributes), and I am curious as to whether it's possible to use t...

Changing CSS for last <li>

Changing CSS for last I am wondering if there is some way to change a CSS attribute for the last `li` in a list using CSS. I have looked into using `:last-child`, but this seems really buggy and I can...

17 May at 14:11

How to use jQuery to wait for the end of CSS3 transitions?

How to use jQuery to wait for the end of CSS3 transitions? I'd like to fade out an element (transitioning its opacity to 0) and then when finished remove the element from the DOM. In jQuery this is st...

CSS Pseudo-classes with inline styles

CSS Pseudo-classes with inline styles Is it possible to have pseudo-classes using inline styles? --- Example: I know the above HTML won't work but is there something similar that will? P.S. I know I s...

How to select all checkboxes with jQuery?

How to select all checkboxes with jQuery? I need help with jQuery selectors. Say I have a markup as shown below: ```

What is the mouse down selector in CSS?

What is the mouse down selector in CSS? I have noticed that buttons and other elements have a default styling and behave in 3 steps: normal view, hover/focus view and mousedown/click view, in CSS I ca...

23 May at 13:47

Can I target all <H> tags with a single selector?

Can I target all tags with a single selector? I'd like to target all h tags on a page. I know you can do it this way... but is there a more efficient way of doing this using advanced CSS selectors? e....

5 Sep at 14:18