Quantcast
Channel: Web Development, Search Engine Optimization, Social Media Marketing Guru » Article
Browsing latest articles
Browse All 70 View Live

Tricky Textarea Pulltab

In desktop Safari, Chrome, Firefox, and Opera-under-Presto, (not IE, not mobile anything) <textarea>s have a little resizer nugget in the bottom right corner. Textareas are for writing in, so if...

View Article



There’s more to the CSS rem unit than font sizing

Many web designers and developers are familiar with the CSS rem length unit. But, you may not know that it has a couple of handy alternate uses. In this post, I’ll describe how to use the CSS rem unit...

View Article

Hang On Placeholders

The way that placeholder text works on inputs and textareas is either that 1) the placeholder text disappears immediately when the empty input is focused or 2) the placeholder text stays until actual...

View Article

Let’s Say FeedBurner Shuts Down…

A lot of us around here have blogs and a lot of us use FeedBurner to "host" our RSS feeds. I thought it was worth talking about what might happen if we lose FeedBurner, which seems especially likely...

View Article

Slide In (as you scroll down) Boxes

I was playing with my new Nexus 7 (I really wanted to own a real Android device) and I noticed a neat little effect in the Google+ app that comes with it. As you swipe down, new modules of content...

View Article


Brand New Series in The Lodge: Building a Mobile-First WordPress-Powered...

I finished up a brand new series in The Lodge! It's all about building a website from scratch. My friend Jeff, the ceramic artist's website, to be specific. It is a 40-video series that goes from a...

View Article

Poll Wrapup: How Much Effort Do People Put Into Alt Text?

From over 16,000 people surveyed, more than half (54%) say they "do some" when it comes to alt text for images that are important to content. The example provided did provide insight into the content...

View Article

Repoll! Whose Responsibility is “Mobile” Design?

In this first time ever in CSS-Tricks history, we're going to re-run the same poll we've ran in the past. Now, more than five years after the original poll, we're going to ask: What is your opinion as...

View Article


Pop Hovers

POP has these cool hovers in the boxes that make up their homepage. The boxes have a white background by default, and as you hover over them a dark background slides up behind, the text colors change,...

View Article


Body Border, Rounded Inside

Reader Arun wrote in with a question on how to make a body border that was rounded where the edges met on the inside. Like this. We've covered body borders before, but this was slightly different. It...

View Article

Can You “Over Organize” JavaScript?

It's no question that on sites with lots of JavaScript, you need a strict organizational pattern to keep everything making sense and the code approachable. I've mentioned in the past I like grouping...

View Article

Transitional Interfaces, Coded

Pasquale D’Silva’s article Transitional Interfaces has really been making the rounds. It's a quick read that that drives home a great point. Transitions and animations can be more than eye candy. They...

View Article

Line-On-Sides Headers

Forums user McAsh wondered how they might code up a design in which there was a large header and a smaller subheader beneath it which featured double horizontal lines jutting out after the text to both...

View Article


Preventing the Performance Hit from Custom Fonts

The issue is 1) custom fonts are awesome and we want to use them 2) custom fonts slow down our pages by being large additional resources. Dealing with this has been in the air recently so I thought I'd...

View Article

Magic Numbers in CSS

Despite the super fun sounding name, magic numbers are a bad thing. It is an old school programming term for "unnamed numerical constant". As in, just some number plunked into the code that is probably...

View Article


Make Client Side Data Available Server Side

That would be pretty useful, right? Right now it's very common to User Agent "sniff" when you want to make a server-side decision about what to give the client. But UA sniffing has always sucked and...

View Article

3D Inset Parallax Effect

The following is a guest post by Joshua Bader. Joshua noticed that certain 3D effects on the web could benefit from adjusting perspective as the web page is scrolled. I'll let him explain. People love...

View Article


Line Clampin’

You want X lines of text. Anything after that, gracefully cut off. That's "line clamping" and it is a perfectly legit desire. When you can count on text being a certain number of lines, you can create...

View Article

Naming Media Queries

It would be pretty cool if we could do this someday in CSS. The best idea for it that I've come across is to define it in a <meta> tag in the <head>. That way (perhaps) CSS could use it and...

View Article

Media Query Change Detection in JavaScript Through CSS Animations

The following is a guest post by Alessandro Vendruscolo. Media queries are relevant to both CSS and JS. The need and desire to manage those in one place is real. There have been some clever ways to do...

View Article

Photo Swivel

The following is a guest post by Alex Young. Alex has created a simple technique to "rotate" the subject of a photo simply by hiding and showing multiple stacked photographs taken at different angles....

View Article


Slider with Sliding Backgrounds

Among the many super nice design features of the Yahoo! Weather app for iOS is the transition between city screens. The background image doesn't just move away as the screen moves from one screen to...

View Article


Replace the Image in an with CSS

The following is a guest post by Marcel Shields. Marcel in a difficult place where he needed to change the image on a page but didn't have access to the HTML. Rare, but I'm sure we've all be in weird...

View Article

Image may be NSFW.
Clik here to view.

CSS-Tricks Chronicle XIII

> go east > You see a beautiful grassy field. > set up camper > You camper is now set up [roundtime: 18 seconds] > sit down jQuery Conference Portland 2013 has a limited number of...

View Article

Image may be NSFW.
Clik here to view.

Logic in Media Queries

Just in case you have brain farts about this constantly like I do. If That's what media queries are: logical if statements. "If" these things are true about the browser, use the CSS inside. And The...

View Article


Image may be NSFW.
Clik here to view.

Just One of Those Weird Things About CSS: Background on

So you want to make the background of your website red eh? You'll probably put this in your CSS: body { background: red; } Done! Check out this Pen! You're going about your business and then all the...

View Article

Image may be NSFW.
Clik here to view.

3D Button Parallax

The following is a guest post by Alexander Futekov. We recently published an article by Joshua Bader in which a 3D inset look was adjusted as the page scrolled to give it a more realistic interaction....

View Article

Sass Style Guide

With more people than ever writing in Sass, it bears some consideration how we format it. CSS style guides are common, so perhaps we can extend those to cover choices unique to Sass. Here are some...

View Article

A Couple of Use Cases for Calc()

calc() is a native CSS way to do simple math right in CSS as a replacement for any length value (or pretty much any number value). It has four simple math operators: add (+), subtract (-), multiply...

View Article



Using requestAnimationFrame

There used to be just one way to do a timed loop in JavaScript: setInterval(). If you needed to repeat something pretty fast (but not as-fast-as-absolutely-possible like a for loop), you'd use that....

View Article

Pizza Time Hovers

Hover Maester Jenn Lukas sent me a link to PizzaTime.com. We agreed that 1) those are some pretty neat hovers! and 2) it's pretty cool that there is a quality website at all at a domain like...

View Article

Crop Top

Sometimes you want an image to resize responsively but restrict its height — cropping it then as it widens. Here, we explore three options with various trade-offs. Need a new look for your portfolio?...

View Article

IE 10 Specific Styles

Conditional comments are gone in IE 10. That's good. IE 10 is a very good browser. Feature detection is a better way to go in nearly all cases. But what if you find some styling situation where you...

View Article


The JavaScript Behind Touch-Friendly Sliders

Kevin Foley explains how to build a swipeable gallery on touch devices. The JavaScript Behind Touch-Friendly Sliders is a post from CSS-Tricks

View Article

Poll Results: Mobile Web Design Responsibility

Between 2008 and 2013, people's opinion on where the majority of responsibility in mobile design lies has shifted. Poll Results: Mobile Web Design Responsibility is a post from CSS-Tricks

View Article

A Couple of Best Practices for Tablet-Friendly Design

Ben Terrill shares some things you can do to improve the experience for your visitors using tablet devices. A Couple of Best Practices for Tablet-Friendly Design is a post from CSS-Tricks

View Article


New Poll: Light on Dark or Dark on Light?

New poll! Just for funzies. Do you prefer... Light Code on Dark Background Like this: or... Dark Code on Light Background Like this: Those are just examples. Doesn't have to be those exact syntax...

View Article


Replicating Some Of Google Hangouts Chat Design

I've been using Google Hangouts a bunch. It's really pretty great. One on one or group text chat, audio, or video. Text is archived, maintains history, and is searchable. Video / audio is recordable....

View Article

CSS-Tricks Chronicle XIV

I live to hail that season by gifted one foretold, when men shall live by reason, and not alone by gold. CSS-Tricks Chronicle XIV is a post from CSS-Tricks

View Article

Making Sass talk to JavaScript with JSON

The following is a guest post by Les James. Like many of us, Les has been gunning for a solution to responsive images that works for him. In this article he shares a technique he found where he can...

View Article

The Layered Look: Better Responsive Images Using Multiple Backgrounds

A guest post by Parket Bennet where he explores another responsive images technique. This time using media queries and multiple background images in CSS. The Layered Look: Better Responsive Images...

View Article


An Intro to Hitch.js and the Extensible Web

Brian Kardell explains how Hitch.js allows you to build "prollyfills," and how Hitch.js fits into the larget Extensible Web movement. An Intro to Hitch.js and the Extensible Web is a post from CSS-Tricks

View Article

Swapping Out Text, Five Different Ways

It's a common need in web apps: you click something and the text of the thing you just clicked changes. Perhaps something simple like a "Show" button that swaps to "Hide", or "Expand Description" to...

View Article


Centering Percentage Width/Height Elements

If you know the exact width/height of an element, you can center it smack dab in the middle of its parent element easily with this classic trick: top and left set to 50% and negative margins half the...

View Article

The Sixth Fourth

It's a tradition around here to do a State of the Union post on the Fourth of July. This is the sixth one! (1) (2) (3) (4) (5). Obligatory fireworks stock art: I type this from Milwaukee, Wisconsin -...

View Article


The Extend Concept

All three of the most popular CSS preprocessors support extend. I don't have any data, but in my experience this feature is confusing at first and thus a bit under used. I thought we could talk a bit...

View Article

Create Striped Backgrounds With Gradients (and a Sass Function)

Hugo Giraudel shares how to create stripped backgrounds with gradients. He makes things easier with a Sass function. Create Striped Backgrounds With Gradients (and a Sass Function) is a post from...

View Article

The Almanac is “Complete”

This is just a note to let ya'll know The Almanac section on CSS-Tricks is complete. Not complete as in totally done and never will be changed or anything foolish like that, but complete as in all CSS...

View Article

New Poll: Does Offscreen / Drawer Nav Work for Desktop Too?

A reader wrote in with this question: We know that slide out menus are good for mobile (Facebook, Gmail, etc) But do you think they are appropriate for desktop web applications? Good question. You know...

View Article


How Web Tech Concerns Change

As a beginner in any specific web tech, your first concern is "what is this and how does it work?" As you level up, those concerns change. You may still learn about about how it works as you dive...

View Article

Browsing latest articles
Browse All 70 View Live




Latest Images