CSS Generator - Generate your own CSS Style Sheet code Pixels to Ems Conversion Table for CSS A companion reference to the article, The Incredible Em and Elastic Layouts With CSS. The em values in the table assume that the generic browser default setting of 16px font size has not being changed. It also assumes that the <body> has font size set to 1em or 100%. Formula to calculate em equivalent for any pixel value required 1 ÷ parent font size (px) × required pixels = em equivalent Example: 770px wide, centred elastic layout using CSS and ems N.B. 1 ÷ 16 × 770 = 48.125em <html><body><div> … </div></body></html> *I deliberately hooked the formula for the tutorial around 1px, as a value that designers can easily relate to. Required element pixel value ÷ parent font size in pixels = em value So, our required width of 770px in ems can be calculated like this:
Learn Photoshop: All of the Basics for Beginners | Vandelay Desi We frequently publish posts on this blog that feature tutorials for learning how to do various things with Photoshop, but we have rarely focused on just the basics. This post is intended for designers or aspiring designers who either want to get started with Photoshop or have limited experience and are looking to improve. While there are plenty of great learning resources available online, it’s often difficult for beginners to know where to get started because everything seems to be scattered. With this post you’ll find links to plenty of resources to teach you all the basics and fundamentals of Photoshop. Most of the resources and tutorials listed in this post will focus on teaching one particular aspect of Photoshop, such as how to use a specific tool. Intro to Photoshop’s Tools and UI: The resources in this section will serve as an introduction for those who are new to Photoshop. The Photoshop Workspace (video) The Ultimate Guide to Customizing How You Work in Adobe Photoshop CC Filters
CSS Tips I Wish I Knew When I First Started I’ve been working with CSS for quite a while now, and even though it’s relatively easy to learn, there are always new tips and tricks to be found. I’m learning new stuff all the time. I wanted to take a moment to put together this helpful list of CSS tips I wish I knew when I first started. Although many of these tips are common knowledge, I think you’ll find them helpful. At the very least I hope you’ll be nodding your head in agreement. Use Overflow: Hidden; to Clear Floats It wasn’t until recently that my style sheets were littered with unnecessary clearing floats that looked like the following. These clearing floats will work perfectly fine, but they are unnecessary. Group Elements Together One of the mantras of good coding 101 is to keep your code as simple and concise as possible. You can group these elements like so… Comments Are Important Many of the sites that I create are 1-man projects. Add Some Base Styles to the Body This goes back to the code-less principle I discussed earlier.
Advanced CSS Menu Last tutorial, I showed you how to design a watercolor effect menu in Photoshop. This tutorial I will show you how to slice up the menu design (step by step) and put them together with CSS. Most of you probably know how to code a horizontal or vertical CSS list menu. Now let's take it to the next level — code an advanced (un-typical) list menu utilizing the CSS position property. View Demo CSS menu Download Demo ZIP Overview Here are the required graphics to assembe the menu (you can download from the zip). 1. Open the Photoshop file. 2. Turn off the background Layer Group and leave only the menu text layers visible. Create a new file and take note of the file dimension (w x h), in my case the "home" graphic is 144 x 58px. Here is how the hover effect will work. Repeat this step for the other buttons. 3. When you are done with the graphics, let's start coding. #menu Reset the menu to no padding, no margin, and no list-style. #menu span #menu a The key point here is the text-indent property.
CSS 3D Editor Tridiv Making 3D in CSS has never been easier Tweet Tridiv is a web-based editor for creating 3D shapes in CSS. Start using the app See examples Examples iPhone 4S 8 shapes, 148 faces NES 21 shapes, 124 faces Xwing ⚠ 47 shapes, 297 faces Concept, code and design by Julian Garnier.
Sneaking into Future: 25 Ultra Modern Websites Using HTML5 | Gra HTML5, the next major revision of HTML, the language of the internet, is set to revolutionize the way web developers and designers create websites and the way visitors use them. It’s being edited by Ian Hickson of Google and David Hyatt of Apple, two of the web’s greatest creative minds. Besides enabling web developers/designers to use cleaner, simpler, more consistent code, HTML5 will help them break free from the confines of 3rd party proprietary plugins like Adobe Flash. Through HTML5’s canvas element, users will be able to render graphics and images on the fly, again without the need for plugins. 1. Originally from Hong Kong, but now based in the USA, Ella of Ella Design is an award-winning graphic/web designer with over 8 years experience in the industry. 2. Pelletized is the site of Ed Wheeler, Oregon-based graphic/web designer and HTML/CSS developer extraordinaire. 3. 4. Donkey Magic is Richard Stephenson’s blog. 5. 6. letscountthedays 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17.
Multiple Backgrounds and Borders with CSS 2.1 – Nicolas Gallagher — Blog & Ephemera Using CSS 2.1 pseudo-elements to provide up to 3 background canvases, 2 fixed-size presentational images, and multiple complex borders for a single HTML element. This method of progressive enhancement works for all browsers that support CSS 2.1 pseudo-elements and their positioning. No CSS3 support required. Support: Firefox 3.5+, Safari 4+, Chrome 4+, Opera 10+, IE8+. How does it work? Essentially, you create pseudo-elements using CSS (:before and :after) and treat them similarly to how you would treat HTML elements nested within your target element. To provide multiple backgrounds and/or borders, the pseudo-elements are pushed behind the content layer and pinned to the desired points of the HTML element using absolute positioning. The pseudo-elements contain no true content and are absolutely positioned. What effects can be achieved? Most structural elements will contain child elements. Example code: multiple background images Each pseudo-element then has a repeated background-image set.
Beautiful CSS3 Search Form Lately I've been playing around with CSS3 and discovered some new CSS tricks. Did you know you can make a round circle with border-radius and create inner shadow effect with box-shadow inset? Check out this beautiful search form demo that I've created with CSS gradient, border-radius, and box-shadow. It displays perfect in CSS3 browsers and degrades gracefully in non-CSS3 browsers. View Demo Search Form Round Circle Trick You can create a round circle by specifying a very large value with the border-radius property. Inner Shadow Effect Specifying inset values with the box-shadow property to create a inner shadow effect. Search Form Example The following search form demo is created with CSS gradient, border-radius, and box-shadow with inset values (view the demo with Chrome 4+ or Firefox 3.5+).
After: float Continuing in my series of “why is this so hard in CSS or HTML?” type articles, here I want to discuss the process of dealing with floated elements. Before I get started, let me just disclaim: I’m not talking here about using CSS float as an approximation forlayout structure, things like columns. In this other article, I cover what the differences are, IMO, between layout and positioning. With that distinction in my mind, I will be talking here about positioning using floats, floating an element (left or right), with other inline content (text, images) flowing around it. But we’re not talking about layout structuring here. What’s the floating problem? Put simply, if you want to take an element and float it around some other content, that floated element no longer takes up any vertical space, so if it happens to be bigger than the container would otherwise be sized by its other content, then it overflows, rather than stretching the parent. Example: Very cool! Hello, this is some text The “fix”
Flash and Standards: The Cold War of the You’ve probably heard that Apple recently announced the iPad. The absence of Flash Player on the device seems to have awakened the HTML5 vs. Flash debate. Apparently, it’s the final nail in the coffin for Flash. The arguments run wide, strong, and legitimate on both sides. However, the issue is larger than which one is better. Ceasefire#section1 Both the standards community and the Flash community are extremely good at sharing knowledge and supporting the people within their respective groups. As new technologies emerge, their following naturally starts small. The same thing is happening today. The antagonistic nature of this debate is destroying the industry. We don’t have a single “Flash developer” at Big Spaceship. A line in the sand#section2 The problem with rallying behind a technology is that it traps us within the confines of its constraints. Technologies aren’t inherently bad or good. Case in point: Loading. Doomed to repeat the past#section3 Worth fighting for#section4 People.