background preloader

53 CSS-Techniques You Couldn't Live Without - Smashing Coding

Advertisement Many companies try to create a great experience for customers. But few are willing to make the changes required to deliver on that promise. CSS is important. Over the last few years web-developers have written many articles about CSS and developed many useful techniques, which can save you a lot of time – of course, if you are able to find them in time. Let’s take a look at 53 CSS-based techniques here at Smashing Mag you should always have ready to hand if you develop web-sites. 1. 2. 3. 4. 5 Powerful Tips And Tricks For Print Style Sheets7 5. Generated content was first introduced in the CSS2 specification. 7. 8. 9. 10. Stephen Shaw introduces a technique for perfect horizontal and vertical centering in CSS, at any width or height. 11. 12. 13. 14. 15. 16. The web is growing up. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52.

Most used CSS tricks Earlier before I have written an article about current best CSS hacks which you can see here And now here’s the list of today’s most used CSS tricks – tips. I have added image examples for most of them because of critics on CSS hacks article. If you think I have missed any please let me know 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12.

tommoor/tinycon A List Apart: Articles: Sliding Doors of CSS A rarely discussed advantage of CSS is the ability to layer background images, allowing them to slide over each other to create certain effects. CSS2’s current state requires a separate HTML element for each background image. In many cases, typical markup for common interface components has already provided several elements for our use. Article Continues Below One of those cases is tabbed navigation. What if we could take the exact same markup from the tabs above, and turn them into something like this: With simple styling, we can. Where’s the Innovation? Many of the CSS-based tabs I’ve seen suffer from the same generic features: blocky rectangles of color, maybe an outline, a border disappears for the current tab, a color changes for the hover state. Prior to a more widespread adoption of CSS, we started seeing a lot of innovation in navigation design. Pure text navigation is much easier to maintain and loads more quickly than text-as-image navigation. Tab Creation#creation

10 Useful Usability Findings and Guidelines - Smashing UX Design Advertisement Everyone would agree that usability is an important aspect of Web design. Whether you’re working on a portfolio website, online store or Web app, making your pages easy and enjoyable for your visitors to use is key. Many studies have been done over the years on various aspects of Web and interface design, and the findings are valuable in helping us improve our work. Here are 10 useful usability findings and guidelines that may help you improve the user experience on your websites. 1. A study by UX Matters found that the ideal position for labels in forms is above the fields. Tumblr features a simple and elegant sign-up form that adheres to UX Matter’s recommendation. Positioning labels on the left also poses another problem: do you left-align or right-align the labels? 2. People instinctively notice other people right away when they come into view. Eye-tracking heat map of a baby looking directly at us, from the UsableWorld study. And now the baby is looking at the content.

Css Slideshow jQuery performant : SlideMe novembre 8th 2013 Vous recherchez un slideshow performant, moderne et responsive : […] récupération de données avec Ontrack avril 16th 2013 Si cela ne vous est jamais arrivé de perdre […] Pack noël et icons gratuites décembre 20th 2012 Allez c’est bientôt Noël et vous avez surement besoin […] Really Simple Slideshow plugin jQuery août 22nd 2012 Voici Really Simple Slideshow un nouveau venu dans le […] Boosteo création de site Web sur Lyon août 17th 2012 A découvrir sur Lyon, Boosteo vous propose son expérience […] Roudabout carrousel jQuery juillet 16th 2012 Voici aujourd’hui Roundabout petit plugin jQuery surpuissant pour faire […] RefineSlide slideshow 3d jQuery juillet 13th 2012 RefineSlide est un nouveau petit plugin jQuery ultra léger […] Freshy icons jeu d’icones gratuit mai 12th 2012 Voici un nouveau jeu d’icones joliment fait par un […] 350 icones gratuites avril 20th 2012 Après quelques mois de dur labeur nous revoilà avec […] Slidorion accordéon avec slider jquery

CSS Layout - 100% height Min-height The #container element of this page has a min-height of 100%. That way, if the content requires more height than the viewport provides, the height of #content forces #container to become longer as well. Relative positioning Because #container has a relative position, #footer will always remain at its bottom; since the min-height mentioned above does not prevent #container from scaling, this will work even if (or rather especially when) #content forces #container to become longer. Padding-bottom Since it is no longer in the normal flow, padding-bottom of #content now provides the space for the absolute #footer. Scale the text size a bit or resize your browser window to test this layout. Back to CSS Examples

Mastering CSS, Part 2: Advanced Techniques and Tools - Smashing Coding Advertisement CSS is one of the most basic building blocks of modern web design. It creates the structure and style that surrounds your content and is capable of making your site a joy to use or a pain in the neck. Mastering CSS is one of the most important things a web designer can do, and has really become an essential criteria for being a successful designer. In Part 1: Styling Design Elements we covered the basics of web design with CSS. 1. CSS can be used to build calendars, timelines, and even “tables” (or charts). CSS/jQuery Sequential List Have you ever had to manually code something that is sequential? Date displays with sprites This tutorial explains how to achieve an original date display using CSS sprites. Pure CSS Timeline A great tutorial for creating a clean-looking timeline for your site using straightforward CSS and HTML markup. A CSS-based Timeline Another tutorial for creating a timeline with CSS. 2. iPhone CSS Techniques 3. 4. 5. CSS image replacement with… images! 6.

50+ CSS Techniques Designers Should Know 118 Flares Twitter 9 Facebook 0 Google+ 0 StumbleUpon 109 Pin It Share 0 118 Flares × CSS (Cascading Style Sheets) is just an important part of Web Designing. Without CSS, Websites can look untidy as it used to happen before. Navigation Matrix Reloaded Advance CSS Menus Block Hover Effect for a List of Links Cross Browser CSS SlideShow Hoverbox Image Gallery CSS Tabs Make Clickable Areas Bigger CSS-Based Forms: Techniques CSS Based Image Maps Sliding Photograph Galleries CSS For Bar Graphs Control Tabs Some styles for your Pagination No JavaScript LightBox Using CSS Drop shadow on an image CSS Shadows Styling blockquotes with CSS Glowing Tabs Menu Image Replacement for Buttons Cross Browser Multi-Page Photograph Gallery Footer Stick CSS Star Rating Part Redux Zebra Table with JavaScript and CSS Animated Navigation Menu using CSS CSS Photo Zoom Link Thumbnail CSS Popup Image Viewer Tree Like Navigation Using CSS CSS gallery layout—smells like a Table CSS Map Pop CSS Gradient Text Effect Sticky Footer Whatever: Hover

Powerful CSS-Techniques For Effective Coding | CSS Advertisement Sometimes being a web-developer is just damn hard. Particularly coding is often responsible for slowing down our workflow, reducing the quality of our work and sleepless nights with pizza and coffee laying around the laptop. One year ago we’ve published the post with 53 CSS-Techniques You Couldn’t Live Without where we provided references to the most useful CSS-techniques which are often used in almost every project. In this post we present 50 new CSS-techniques, ideas and ready-to-use solutions for effective coding. Thanks to all developers who contributed to the CSS-based design over the last year. CSS-Techniques 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 13 Awesome Javascript CSS Menus 13 “fresh” JavaScript+CSS-based navigation menus in a brief overview. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. Further Techniques 44. 45. 46. 47. 48. 49. 50. It's done.

Guide to CSS Font Stacks: Techniques and Resources - Smashing Coding Advertisement CSS Font stacks are one of those things that elude a lot of designers. Many stick to the basic stacks Dreamweaver auto-recommends or go even more basic by just specifying a single web-safe font. But doing either of those things means you’re missing out on some great typography options. Creating Your Own Font Stacks There are a huge variety of font stacks recommended. First of all, make sure you always include a generic font family at the end of your font stacks. Third, make sure you pay attention to the scale of the fonts in your stack. Common Font Stacks A lot of designers out there have taken a crack at creating ideal font stacks. Better CSS Font Stacks Unit Interactive published an article last summer with a collection of “better” CSS font stacks. Here are some listed for body text: For headlines: Georgia, Times, ‘Times New Roman’, serifPalatino, ‘Palatino Linotype’, ‘Hoefler Text’, Times, ‘Times New Roman’, serifTahoma, Verdana, GenevaTrebuchet, Tahoma, Arial, sans-serif

CSS demonstrations Below is a list of CSS demonstrations that range from the simplest for beginners, to the most complex for advanced users. If you do not find what you are looking for then please contact me with your requirements and I will let you know if it is possible using just CSS. Avatar ParadeSimple image display using :hover. What's on TVAnother method of displaying images using :hover. A photograph galleryA photo gallery using thumbnail images. A photograph gallery - with links » 20-02-2009A photo gallery using thumbnail images amd linking to large images. A photograph gallery - using <object> » 06-06-2009A photo gallery using the object element. A mixed gallery - using <object> » 22-06-2009A mixed gallery using the object element. Photo Gallery Mk.IIA photo gallery with horizontal scrolling. A gallery using :target » 25-11-2011A gallery using :target with no browser window jump and no cycling back though the image using the 'back' button. Sliding photo-galleriesCompressed images that expand on :hover.

Type is the backbone of good web design Ever since launching my Information Portfolio, BrianHoff.net, I’ve received many emails with similar variations to the question “How do I become better with typography on the web?” or “Why does your type look nice on your site?” Below are a few techniques I generally go with when styling my type and aspects I considered and incorporated while designing BrianHoff.net. Line height First off if you are not specifying your type size in ems you should be. “The results show that, across all browsers, text at the medium browser setting is rendered identically to text set in pixels. Another reason I set my type in ems is because it’s easy to find a good line height, which I usually set as 1.5em. Your CSS should look something like this: All caps and small caps Whether you are dealing with print or web, a string of capital or small capped letters should have some additional letterspacing. I’ve always used a 1px letterspacing for most all caps and small cap type — it’s a nice balance on the web. Layout

Related: