Skip to main content

Home/ CSS Evangelist/ Group items tagged css tricks

Rss Feed Group items tagged

Vernon Fowler

On :target | CSS-Tricks - 0 views

  • I'd use these rules-of-thumb for when :target is a good choice: When a "state" is needed When the jump-down behavior is acceptable When it's acceptable to affect the browser history
Jonathan Mike

CSS3 Rounded Image With jQuery - 0 views

  •  
    The CSS 3 Trick with jQuery to make rounded image
Frederik Van Zande

Agile Ajax: Hacking transparent PNG support into IE6 with IE PNG Fix, CSS and jQuery (p... - 0 views

  •  
    esterday's post showed how to hack the :first-child pseudo-class into IE6 with jQuery and CSS. Continuing with that theme, today and tomorrow we'll show how to enable transparent PNG support in IE6
Zulkarnain K.

Creating Triangles in CSS - 13 views

  •  
    when a browser draws the borders, it draws them at angles. This technique takes advantage of that. One side of the border is colored for the color of the arrow, and the rest are transparent. Then you set the width of the border to something large
Vernon Fowler

Centering in the Unknown | CSS-Tricks - 0 views

  •  
    "If we set up a "ghost" element inside the parent that is 100% height, then we vertical-align: middle both that and the element to be centered, we get the same effect."
Vernon Fowler

Meet the Pseudo Class Selectors | CSS-Tricks - 0 views

  • You probably wouldn't want to drop cap every single paragraph on the page, but just the first one, so, p:first-child:first-letter { }
Vernon Fowler

list-style | CSS-Tricks - 0 views

  • The list-style-position property defines where to position the list marker, and it accepts one of two values: "inside" or "outside". These are demonstrated below
Vernon Fowler

Box Sizing | CSS-Tricks - 0 views

  • -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ -moz-box-sizing: border-box; /* Firefox, other Gecko */ box-sizing: border-box; /* Opera/IE 8+ */
Vernon Fowler

word-break | CSS-Tricks - 0 views

  • It's often used in places with user generated content so that long strings don't risk breaking layout.
Vernon Fowler

Sass Style Guide | CSS-Tricks - 0 views

  • List @extend(s) First
  • List "Regular" Styles Next
  • List @include(s) Next
  • ...9 more annotations...
  • All Vendor Prefixes Use @mixins
  • Global and Section-Specific Sass Files Are just Table of Contents In other words, no styles directly in them. Force yourself to keep all styles organized into component parts.
  • If you find yourself using a number other than 0 or 100% over and over, it likely deserves a variable.
  • List Vendor/Global Dependancies First, Then Author Dependancies, Then Patterns, Then Parts
  • In Deployment, Compile Compressed
  • Comments get stripped when compiling to compressed code, so there is no cost.
  • Partials are named _partial.scss
  • Variablize All Colors Except perhaps white and black.
  • In your global stylesheet, @import a _shame.scss file last.
‹ Previous 21 - 40 of 71 Next › Last »
Showing 20 items per page