Quantcast
Channel: Code Chewing » CSS 3
Browsing latest articles
Browse All 10 View Live

CSS Child Selectors

Note: These CSS child selectors won’t work in IE 6. ul :first-child This translates to find the first child of the ul list, meaning the first <li>. If you don’t include the space after the ul...

View Article



CSS Type Selecter

Note: Type Selectors don’t work in Internet Explorer. They may work in IE9, but not tested it out yet. For example, select the first/last paragraph from inside the sidebar div: #sidebar p:first-of-type...

View Article

CSS Generated Content

Add CSS generated content. You can automatically add something (in this case a “) before every paragraph with a class of heSaid like so: p.heSaid:before { content:'"'; } And add the speech mark at the...

View Article

Animation & transition effects with CSS3

Here’s some really impressive CSS3 transition and animation hover effects (http://tympanus.net/Tutorials/OriginalHoverEffects/index.html) Remember, they won’t work in older browsers, and IE9 and below...

View Article

Create a fade out and in animation effect on links with CSS

For those browsers that will understand this CSS3 technique, you can add a subtle fade in and out animation effect on links. a { -webkit-transition:color .4s linear; color:#000; } a:hover {...

View Article


Keep track of what CCS3 & HTML5 stuff you safely can use

Safe HTML5 and CSS3 usage http://html5please.us See also the below website for CSS3 techniques, with a clear break down of when to use the preceeding -moz- or -webkit- with certain CSS rules for...

View Article

CSS first-line selector

You can use CSS to select and style just the first line of an element, like a paragraph. And it will style just that element differently. This is great for an indtrouction paragraph or a subtitle for a...

View Article

Creating CSS Shapes

Here is a great collection of pure CSS Shapes: http://css-tricks.com/examples/ShapesOfCSS/ Some do use CSS3 techniques that don’t work in older version of IE9, but it’s very eye opening what you can do...

View Article


Create a Sass Mixin for styling placeholders in CSS

If you’re using Sass to create your CSS stylesheets, and you need to style the placeholder text, you don’t want to manually type the vendor prefixes each time. Instead, this is what Sass Mixins are...

View Article


Using box-sizing CSS for fluid & percentage width layout

When aligning HTML elements, such as column grid layouts, using % based widths, you can stumble into issues when using padding and border properties for those columns. However, with the box-sizing...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images