background preloader

CSS drop-shadows without images

CSS drop-shadows without images
Drop-shadows are easy enough to create using pseudo-elements. It’s a nice and robust way to progressively enhance a design. This post is a summary of the technique and some of the possible appearances. Demo: CSS drop-shadows without images Known support: Firefox 3.5+, Chrome 5+, Safari 5+, Opera 10.6+, IE 9+ I’ll be looking mainly at a few details involved in making this effect more robust. After a bit of back-and-forth on Twitter with Simurai, and proposing a couple of additions to Divya’s and Matt’s demos using jsbin, I felt like documenting and explaining the parts that make up this technique. The basic technique There is no need for extra markup, the effect can be applied to a single element. The pseudo-elements need to be positioned and given explicit or implicit dimensions. The next step is to add a CSS3 box-shadow and apply CSS3 transforms. One of the pseudo-elements then needs to be positioned on the other side of the element and rotated in the opposite direction.

The Top 8 Placeholder Services for Web Designers In the last year, there's been a wave of helpful placeholder services. What's a placeholder? Well, when you're working on a new website, isn't it a waste of time to use stock images, cropped to the right dimensions? In the last week, I've compiled a list - in no particular order - of what I consider to be the most useful and flexible placeholder services on the web. 1 - PlaceKitten A quick and simple service for getting pictures of kittens for use as placeholders in your designs or code. Usage Follow the url with your desired dimensions. 2 - A quick and simple image placeholder service. Note that, with this service, you set your dimensions more traditionally, rather than separating the widths and heights into segments. is a bit different in that, rather than using photos for placeholders, it instead uses more traditional solid color images, which might be more appealing to some designers. 3 - SheenHolders 4 - FlickHoldr 5 - LoremPixum 6 - PlaceDog

mgeraci/Less-Boilerplate .gradientV4(#F2F1CB, #F0CED6, 33, #CED3F0, 66, #D2F0CE); hover to see compiled code background: #e2f1cd; background-image: -moz-linear-gradient(top, #f2f1cb, #f0ced6 33%, #ced3f0 66%, #d2f0ce); background-image: -webkit-gradient(linear, left top, left bottom, from(#f2f1cb), color-stop(0.33, #f0ced6), color-stop(0.66, #ced3f0), to(#d2f0ce)); background-image: -webkit-linear-gradient(top, from(#f2f1cb), color-stop(0.33, #f0ced6), color-stop(0.66, #ced3f0), to(#d2f0ce)); background-image: -o-linear-gradient(top, #f2f1cb 0%, #f0ced6 33%, #ced3f0 66%, #d2f0ce 100%); filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#f2f1cb, endColorstr=#d2f0ce); -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#f2f1cb, endColorstr=#d2f0ce); background-image: linear-gradient(top, #f2f1cb 0%, #f0ced6 33%, #ced3f0 66%, #d2f0ce 100%); .gradientH4(#F2F1CB, #F0CED6, 33, #CED3F0, 66, #D2F0CE);

Circular Discography Template with jQuery Today we want to share a simple website template with you. The template will show some discography or music albums in a rounded fashion, rotating the albums when clicking on next or previous. When clicking on an album, we will open the album details view which contains a music player (jPlayer) and […] View demoDownload source Today we want to share a simple website template with you. We will be using the following jQuery plugins and scripts that will help us with the effects and the functionality: We’ve added some nice music samples from the following artists: Audiotechnica – Testing by audiotechnica Coffeeeurope -Arena Blanca by Hektor Thillet Ramblinglibrarian – Our Resolve by Ivan Chew Syenta – Emerging Cry by Syenta Thanks to the artists for releasing their music under the Creative Commons Attribution Noncommercial (3.0) Licence! The initial screen of the template will show some loading element, and we will preload all the images. We hope you like this little template and find it useful!

Responsive Web Design Articles, Tutorials & Guides A couple of weeks back my showcase of responsive website designs proved pretty popular, so let’s revisit the topic and look at some super handy articles, tutorials and guides that will help you get started with @media queries in order to create your own responsive or adaptive web designs. The resources in this collection have been hand picked as the best the web currently has to offer. Creating a website that is responsive essentially means the design of that particular website will ‘respond’ according to the medium that is being used to view it. Responsive Web Design: What It Is and How To Use It This in-depth overview of responsive web design over on Smashing Magazine is probably the best place to go to get the basics on what responsive web design is and how it can be used. View the article Adaptive layouts with media queries View the article The practicalities of CSS Media Queries, lessons learned. View the article A List Apart: Responsive Web Design View the article View the article

Patternify | CSS Pattern Generator 28 Excellent HTML 5 & CSS3 Tutorials and Techniques | Designs Mag (Designs Magazine) If designers have good command on this programing language, they can learn any designing language easily. But now a days, this is the most powerful and upcoming technology which can make your application beautiful and attractive. HTML 5 have different type of new tags and techniques. Advanced techniques are such as drag and drop and create one page websites and blog designs in few line of codes. This is really helpful for designers and developers. In this post we are going to present you 28 Excellenbt HTML 5 Tutorials and Techniques for web designers . Don’t forget to , and like our for recent updates. {*style:<b> </b>*} Naaz 28 Crushing Resources and Tutorials for JQuery A web designer always needs some inspiration and learning on all aspects of the “web process”. 22 Outstanding CSS3 Buttons Tutorials CSS3 is changing how we build websites. 50 jQuery Image Gallery Tutorials and Plugins jQuery is a free, open-source, lightweight JavaScript library which is designed to simplify the clie...

WhatFont Bookmarklet « Chengyin Liu ← Back to Chengyin's main page What is the easiest way to find out the fonts used in a webpage? Firebug or Webkit Inspector? Hence I wrote WhatFont, with which you can easily get font information about the text you are hovering on. To embrace the new web font era, WhatFont also detects services used for serving the font. Font name? Want to know more? Want the font? Want to share your discovery? ← Drag this to your bookmark bar to install On any webpage, click your WhatFont bookmark to use the tool. Full support: Firefox 3.6+, Chrome 9+, Safari 4+, Internet Explorer 9. Limited support: Internet Explorer 8. ↑Install the extension from Chrome Web Store. On any webpage, click WhatFont button to use the tool. Download Now After downloading, open the extension file to install. The quick brown fox jumps over the lazy dog. Email Twitter @chengyinliu The tool should auto-update itself. Ver 1.6.1 Added color detection for text. Hosted on Github

LESS « The Dynamic Stylesheet language Slide in Captions <figure class="cap-left"><img src="yay.jpg" alt=""><figcaption> yay!!! </figcaption></figure> Browser Support for CSS3: What’s the Current Status? Creating a website with HTML5 and CSS3 without having to worry about using techniques like progressive enrichment and polyfills is the ultimate dream for modern-day front-end developers. But unfortunately, mainly because of the widespread use of IE6-8, that is still just a distant dream. But it is getting closer. I thought it would be a good idea to summarize where CSS3 stands as far as browser support goes, so you can feel comfortable making decisions about what to use or abuse when incorporating CSS3 into new projects. This outline will be divided up into sections beginning with the safest CSS3 features to use, and going down the list towards the not-so-safe. Of course, in all cases, you have the option to declare fallbacks and polyfills that will give nonsupporting browsers a similar and/or acceptable experience. First: IE6, IE7, and IE8 As many of us know, with respects to CSS3 support, the only real problem browsers are older versions of IE. Conclusion - Web page alignment made easy holmes.css - CSS Markup Detective What does it do? The holmes.css file will display either an error (red outline), a warning (yellow outline), or a deprecated style (dark grey outline) for flags such as: Missing required attributes on tags, such as name attributes on inputs (lots of these) Potentially improvable markup, such as links with href="#" Deprecated and Non-W3C Elements - see's article on obselete tags Non-W3C Attributes - as above, just the most important ones since there are MANY Thanks to Anthony Mann, holmes now displays an informative error message when you hover over the element. How do I use it? Simply download a version of the CSS, minified or normal (with docs), and include a stylesheet link to it on your page. In terms of configuration, such as changing the flag colours: go nuts! Why should I use it? Remember too that these are just guidelines: if something is flagged but you can't change it for a good reason, don't worry about it :) Also use a validator if you want to be 100% sure. Browser Support