Archive for the 'CSS' Category

CSS Adjacent-Sibling Selector

CSS
CSS Adjacent-Sibling Selector

Most CSS selectors are well known, but there are some interesting selectors that are not common used, like the adjacent-sibling selector. An adjacent sibling selector will select the sibling immediately following an element, with the same parent. In this example, I will show you how to use the adjacent-sibling selector to style this list.

Read more...

CSS Positioning

CSS
CSS Positioning

There are many ways to position your elements in CSS. Relative positioning, absolute positioning or a combination of both. I’ll explain those ways with some clear examples.

Read more...

CSS Hacks inside CSS

CSS, Featured
CSS Hacks inside CSS

Some browsers don’t support CSS as well as others. Some designs require CSS-hacks to assure browser compatibility. I think that the most used CSS hack must be the use of Conditional Comments, but the major disadvantage of Conditional Comments is that they require to change the HTML file. Sometimes it’s not possible or not convenient [...]

Read more...