CSS

Welcome to the portal about CSS.

New Topics

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

CSS: Style for fixed character width font

Is CSS offering any possibility for generally defining a font with a fixed character width for a text? Of course, I could also set the font-family to...

Question | 1 Answer

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...

Tip | CSS Hacks for the Internet Explorer

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>

Popular Topics

Show more

Participate

Everyone can participate in Askingbox. Open your topic directly in this category:

 
If you should have any questions: That’s how it’s done.