background preloader

CSS

Facebook Twitter

@Font Face | CSS @Font Face | CSS 3.0 @Font Face. Pure CSS Menu.com : Free CSS Drop Down Menu Generator. Make CSS3 buttons that are extremely fancy - The Official Posterous Tech Blog. Design Rant p.2. Vegetables are good for you. It's an onion. Really, truly, this approach has saved me great trials when explaining things to people: your code is an onion. Here's what I'm talking about. Because of the multi-viewer nature of the web you don't know what people are going to use to read your message. Cel phone display, or voice browser, or PDA, or Macintosh. Even within the last catagory the machines may be running browsers of different capabilities.

The code is made so your message is written once yet read in many different formats. Notice how often I need to say "read" and "view"? So look at your code as an onion. I'll explain this in detail, but I think I better take a moment to deal with a contentious subject called, 'Separating Style from Content' This phrase is a semantic minefield. Let's change the wording and see if it helps. In code terms, data is what goes in your HTML. This is not, in any way, a belittling of style. 3D Cube using 2D CSS transformations. The impression of a three dimensional cube can be created using modern CSS techniques, without the need for JavaScript, imagery, canvas or SVG. Using the proprietary transform property to skew and rotate shaded rectangles, individual cube faces can combine to form a 3D object. Currently only supported in recent WebKit and Gecko based browsers, most importantly Firefox 3.5+ -moz-transform (documentation) and Safari 3.2+ -webkit-transform (documentation).

To demonstrate the power of this effect a second experiment with multiple cubes and proprietary WebKit transitions is also available. Results A 3D cube created with CSS Supported browsers: Safari 3.2+, Google Chrome, Firefox 3.5+ Altered CSS slightly to use skew(x,y) rather than skewY, the latter of which is not supported in Safari 3 / Chrome. Using newly released (currently only in Webkit Nightly releases) 3D transforms, a 3D rotating cube with fixed perspective is possible.

Exper­i­ment updated. How To Now for the fun bit. My New Best Friend: CSS Generated Content | Viget Inspire. I’ve become obsessed with generated content lately. In an effort to use fewer and fewer images, I’ve started to use generated content more since more browsers support it (IE8+, FF3+, Safari 4+, Chrome 4+). The following are a couple of examples I have built for a project to streamline my pages.

Triangles in CSS? This is a really zoomed in view of the design; the tricky part was the little triangle shadow on the right hand side. Instead of adding an additional element and using an image, I just used generated content and a little bit of CSS trickery. All I needed to create was a triangle with CSS, which is pretty easy to implement using borders. View Demo Be Creative with Characters Smiley The design called for a smiley or frown face to denote whether the item was in stock. View Demo Arrows No background image needed here; there is an arrow character we can use.

View Demo Tricky Shadows This one was tough. View Demo Conclusion. Extreme Programming Rules. Planning User stories are written. Release planning creates the release schedule. Make frequent small releases. The project is divided into iterations. Iteration planning starts each iteration. Managing Give the team a dedicated open work space. Set a sustainable pace. A stand up meeting starts each day. The Project Velocity is measured.

Move people around. Fix XP when it breaks. Designing Simplicity. Choose a system metaphor. Use CRC cards for design sessions. Create spike solutions to reduce risk. No functionality is added early. Refactor whenever and wherever possible. Clean CSS - A Resource for Web Designers - Optmize and Format your CSS. Tools | Mouseover DOM Inspector v2.0 Help. Overview The Mouseover DOM Inspector, or MODI for short, is a favelet (also known as a bookmarklet) that allows you to view and manipulate the DOM of a web page simply by mousing around the document. Browsers currently supported are Firefox, Mozilla, Netscape 8, Opera 7.5+ and MSIE6+ on all of their respective Operating Systems.

To begin using the Mouseover DOM Inpsector, simply add the following link to your bookmarks by right clicking and selecting "Add to Favorites" or "Bookmark this Link" or whatever the nomanclature of your browser of choice. Should you encounter problems with this software, please contact me and let me know the URL you were on, the browser and operating system, if you are using a preference file along with the url to that preference file and as detailed a description as you can with what you were doing when the problem occured.

Suggestions for improvement and functionality enhancements are also welcome. Keyboard Commands Cycle hightlighting preference. Freeze Mode Bugs? CSS Help Pile Directory: Scribble View - Artypapers. IE6 Three Pixel Gap. I've provided advanced CSS consulting for Milo and many other big sites. Hire me to help you too. Big John's CSS Webinars! Let Big John (yours truly) teach you about CSS in a setting where you can actually ask questions. Besides upcoming webinar dates, you can also download recorded versions of previous webinars (some free, some for sale). This bug is only in IE6 and below. Please look closely at the test box to the left. Now see how in the black bordered paragraph the 3px space is still there. But just what is in the <p>? Only text, which also means 'line boxes'; invisible 'anonymous' boxes that contain inline text, images, and anything else that is declared 'inline'.

So apparently IE is adding 3px of space to the end of the line boxes in this demo if they touch the float. Be aware that the paragraphs' left margin extends behind the float, reaching all the way to the left side of the brown container box, just as with the black bordered paragraph in the demo. Here's the tricky part Details. CSS Image Maps - Flickr-like Technique? Skip to Example An alternative to image-only CSS maps has been published.

If you're looking for an easier way of creating image maps involving a single image, you may be interested in reading CSS Image Maps, Redux Below is a sample image map that's built entirely using CSS and XHTML. While I've added support for Javascript (item titles are simply displayed beneath the image), I've disabled it in this example -- I've run into a bit of a problem when JS is enabled and CSS is disabled (more details below). The initial idea for this came from a blog posting I read over at Gina Trappini's blog, Scribbling.net. I then found a link to The Daily Kryogenix site (via Gina's post) that led to an image map that made use of ligher DHTML, and made use of the <title> tag to display notes about a hotspot. In the end, I decided to make use of Doug Bowman's Sliding Doors technique combined with a definition list (<dl></dl>).

What I did was build the image map in Photoshop. Translations: CSS tests and experiments. Forms: checkbox and radio button. What is the difference in the web form elements checkbox and radio button, what are the possibilities to modify their appearance by using the attributes and CSS properties, or why it is not possible to remove the border of checkbox, are going to be answered in this article. Further, experimental muliple state checkbox, based on current HTML text box is demonstrated. These elements are distinct by their shape. Checkbox is square, radio buttons are circular. Application of CSS styles can not change the basic shape of the elements, it would lead to user confusion. Live form which follows is appended by corresponding CSS code and is intended for comparison of live form in your actual browser with screenshots from other browsers. Browsers render described elements as bitmaps.

The following screenshots display previous forms in different browsers, both in Windows and in Android. Top two rows of screenshots display the elements in unaffected state, without the use of cascading style sheets. CSS - Contents and compatibility. What Are CSS Sprites? > A Quick Example: Button Rollovers. Fitted Doors NO Images.

Pre 2006 copyright © stu nicholls - CSS play Information Another one based on sliding doors this one uses NO images so it can be INFINITELY resized. It also allows the use of the whole tab for a hover effect. It uses a definition list to hold the menu and the curved corners are produced using styled spans. Works in IE5.01, IE5.5, IE6, Opera 7.5, Mozilla, Firefox and NN7.1. Update 1st June 2004 The third menu added, just for Ryan, to show how you could mix single and double line tabs. Update 10th April 2005 Probably easier to use the 'Snazzy Menu'. Update 21st August 2006 Rewritten to make this work in Opera v9.01 Copyright You may use this method on your personal 'non-profit' web site without seeking my permission.

Commercial usage is also permitted without seeking approval, but I would ask that a donation is considered to support my work on CSSPlay. CSS3.com – A comprehensive CSS 3 reference guide, tutorial, and blog | CSS3.com. CSS For Bar Graphs. Having a working knowledge of XHTML and CSS when developing applications is a big help in knowing what can be done client-side and what should be generated server-side. Recently we’ve had to tackle some interesting visualizations which we coded in XHTML and CSS. The method we used, while fairly simple, was a big help to the engineer and created a very flexible and inexpensive solution. We thought we would share our solution and code in case anyone else ran against similar situations. Update I posted a live example page with everything in tact. Basic CSS Bar Graph This is a simple bar graph we developed for a tool we’re releasing shortly for our client. Complex CSS Bar Graph This is a more complex visualization, yet still following the same basic idea.

Vertical CSS Bar Graph In this third example, we utilize the same principle vertically and reproduce it multiple times to create a more complex graph. We hope you enjoyed our examples and find new uses and variations for the concept. Centered Tabs with CSS. Doug Bowman’s Sliding Doors is pretty much the de facto way to build tabbed navigation with CSS, and rightfully so – it is, as they say, rockin’ like Dokken. But since it relies heavily on floats for the positioning of its tabs, we’re constrained to either left- or right-hand navigation. But what if we need a bit more flexibility? What if we need to place our navigation in the center? Styling the li as a floated block does give us a great deal of control over margin, padding, and other presentational styles.

Humble Beginnings Do an extra shot of ‘nog, because you know what’s coming next. <div id="navigation"><ul><li><a href="#"><span>Home</span></a></li><li><a href="#"><span>About</span></a></li><li><a href="#"><span>Our Work</span></a></li><li><a href="#"><span>Products</span></a></li><li class="last"><a href="#"><span>Contact Us</span></a></li></ul></div> Our first step is sexy, no?

Now the fun stuff. Inline Elements, Padding, and You So how do we give our links some dimensions? All set.