CSS
Welcome to the portal about CSS.New Topics
CSS: Why is DarkGray brighter than Gray?
The CSS standard defines the color "Gray" darker than "DarkGray", while "LightGray" is, as expected, lighter than these other two colors. How can...
Info | 0 Comments
CSS Hacks for the Internet Explorer
In this tip I would like to introduce you to the CSS hacks for the Internet Explorer, with which different CSS rules can be defined for different...
Tip | 1 Comment
HTML: ID and CLASS - What is the difference?
Elements within an HTML document can have both an ID and a class. So, for example, <h1 id="idname"> or <h1 class="classname">. Now...
Question | 1 Answer
CSS: Display li elements side by side
I would like to format the li elements of a ul list with CSS so that they appear next to each other instead of under each other. Sense of the thing...
Question | 1 Answer
CSS for <sub> and <sup>
I know the HTML tags <sub> and <sup> to low note or high note a text in HTML. But what is the CSS for this? Are there also certain CSS...
Question | 3 Answers
CSS: Meaning of font-family : serif or sans-serif
From time to time, I am looking in some CSS code for learning purposes and I have often seen "serif" or "sans-serif" as a value for the property...
Question | 1 Answer
Show more
New Answers and Comments
Guest: Of course it works with a class: a.class:hover:after { color: #93c21b !important; } You have to write everything together without the...
Question | CSS: :hover for :before and :after
Guest: ...unfortunately it does not work with a class at the beginning: .class a:hover:after { color: #93c21b !important; } That has no effect at...
Question | CSS: :hover for :before and :after
Computer Expert: I want to note several things about this tip. At first these hacks are nice and good, but I would not use them in practice. Instead, I'd rather...
Stefan Trost: There is a clear difference between ID and CLASS: an ID is unique, but a CLASS is not. This means that each HTML element may have only one unique ID...
Question | HTML: ID and CLASS - What is the difference?
Stefan Trost: The li elements are block elements by default and are therefore displayed one below the other. With display: inline or display: inline-block you can...
Question | CSS: Display li elements side by side
Computer Expert: Generally, I am not a friend of realizing the HTML tags sub and sup with CSS. Finally, sub and sup are tags that have a special meaning such as h1,...
Question | CSS for <sub> and <sup>
Show more
Popular Topics
CSS: :hover for :before and :after
Question | 3 Answers
Darken Background of a Website (Gray Out Effect)
Tutorial | 0 Comments
CSS: Reset property "position"
Question | 1 Answer
CSS: Underline Links only when Mouse Cursor is over them
Question | 1 Answer
CSS: Style for fixed character width font
Question | 1 Answer
CSS: Display li elements side by side
Question | 1 Answer
CSS: 100% width minus fixed number of pixels
Question | 1 Answer
Participate
Everyone can participate in Askingbox. Open your topic directly in this category: