• inline-block vs float

    Posted: 2 years ago in Tutorials

    With display:inline-block finally ready for everyday use across the most popular browsers (in all honesty, it has been for a while now), I quickly hit a pretty big dilemma. When comparing inline-block to floats, it wasn’t immediately clear what the exact differences were and what method to prefer. I looked online but couldn’t find a source listing the difference between the two. Guess that’s a good reason for keeping a blog then.

    Note that inline-block still needs fixes in IE6 and IE7 (more about that later this week) and isn’t supported in FireFox versions prior to FF3. There is a -moz fix if you still want to support these browsers though. Apart from those (easy to fix) issues, you can play around with it all you like…

    VN:F [1.9.13_1145]
    Rating: -1 (from 3 votes)
  • CSS3 support in Internet Explorer 6, 7, and 8

    Posted: 2 years ago in Tools

    IE-CSS3 is a script to provide Internet Explorer support for several of the popular new styles available in the upcoming CSS3 standard. How it works, if you view the page in Internet Explorer, some of the elements will be rebuilt by the script in Vector Markup Language VML, an IE-specific vector drawing language. VML supports things that are missing from IE’s CSS implementation like rounded corners and blur effects…

    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • cssSandpaper – a CSS3 JavaScript Library

    Posted: 2 years ago in Tools

    The cssSandpaper JavaScript library looks at the stylesheets in an HTML document and, where possible, smooths out the browser differences between CSS3 properties like transform, opacity, box-shadow and others. This script is not only useful for developers who want to support CSS3 in IE which doesn’t support it in IE natively but in other browsers which implement their own vendor-specific variants of these properties…

    VN:F [1.9.13_1145]
    Rating: +1 (from 1 vote)
  • CSS Specificity And Inheritance

    Posted: 2 years ago in Tutorials

    Understanding a few often overlooked CSS concepts is important. The concepts may be hard to grasp and look boring at first, but understanding them and knowing how to take advantage of them is important.

    Two of these concepts are specificity and inheritance. Not very common words among Web designers, are they? Talking about border-radius and text-shadow is a lot more fun; but specificity and inheritance are fundamental concepts that any person who wants to be good at CSS should understand. They will help you create clean, maintainable and flexible style sheets. Let’s look at what they mean and how they work…

    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Creating a Realistic Looking Button with CSS3

    Posted: 2 years ago in Tutorials

    I had previously created the Cadmus “post” button in Photoshop and it was essentially three images for the different states. I wanted to use this style for all our buttons, but doing it with single images is not a good idea. So I set about creating the same style of the buttons with CSS3. And this is what I ended up with…

    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Create Windows 7 start menu using CSS3 only

    Posted: 2 years ago in Tutorials

    I am fascinated with how much you can do with so little using CSS3. Many user interface elements that require images in order to have appropriate visual appearance now can be styled only with CSS3. In order to prove that I assigned myself a task to create Windows 7 start menu only with CSS3 (and some icons)…

    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • Detecting device size & orientation in CSS

    Posted: 2 years ago in Tutorials

    Gone are the days when we could safely assume that most our site visitors would have at least a 1024px-wide screen resolution. With smartphones and tablet computers on the rise, you visitors could also be browsing the web with screen widths ranging from 320px upwards. Does your site look good on a 768px-wide canvas? That’s how people will see it using a portrait-oriented iPad.

    Time to revisit that old stylesheet of yours and give it a face-lift. Let’s jump straight into examples…

    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  • CSS3 Background-Clip & @Font-Face

    Posted: 2 years ago in Tutorials

    With no clear purpose or plan, I’ve resolved to experiment with CSS3 on a regular basis. Some of these note-posts may be more useful and practical than others, but the only way to know for sure is to learn by doing. That being said, here is another experiment with background-clip: text and @font-face via Typekit…

    VN:F [1.9.13_1145]
    Rating: +1 (from 3 votes)
  • How to Dynamically Highlight Content Like Wikipedia Using CSS3

    Posted: 2 years ago in Tutorials

    If you’ve ever clicked on a footnote link in a Wikipedia article, you’ve probably noticed that two things happen: 1 the link brings you to the footnote section at the bottom of the page; and 2 the selected footnote is highlighted with a different color. In a list of footnotes, this feature makes it easy for the reader to visually access the appropriate footnote.This is a neat little technique that is accomplished easily using the CSS3 :target pseudo-class selector. Unfortunately, this is another CSS3 feature that has no support in Internet Explorer, and so has been largely overlooked up to this point but there are solutions for IE…

    VN:F [1.9.13_1145]
    Rating: -1 (from 1 vote)
  • Rounded corners on images, CSS-only

    Posted: 2 years ago in Tutorials

    Admit it, even though rounded corners are widely seen as overused, you love playing with border-radius. A common complaint is that you can’t use that CSS3 property on images. Define any value, and the images will still display as nature intended: straight corners.

    For a project I’m working on, it would’ve been really nice having certain images displayed with rounded corners, so I started looking at the options…

    VN:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
Page 22 of 80« First...10...2021222324...304050...Last »