Code A Psd Into WordPress

Hi,

I have a wordpress design in .psd format, I need to get it integrated into wordpress. All aspects of designs need to function correctly as in the .psd. Example, I need gallery to function and look exactly how it does in the psd. Also, homepage images need to be able to be added through admin panel. One more thing. The Pricing page needs to be a form that will collect info I can set, and will send that data to the specified email address.

Designer – Funeral Flower Template

Hello,
I have a funeral flower website already up and functioning. I am just looking for someone to know take my current template and spice it up some. My website is very dark, would like a light color, website will include a custom logo made by you. Also the overall layout of the website I am wanting changed. I basically have a bunch of products of flowers and a second page “details” page about that product, then they click that button which will “add to cart.” I am wanting someone to redesign this completly including a custom navigation bar, etc. Bid includes your install of this on my server.

Facebook Business Page

I need a great facebook business page. It needs to have links out to my site, and incorporate a book now button as seen here. http://www.vacationrentaldesk.com/vacation_rental_booking_software/Default.aspx

It is for my vacation rental site (not yet up) so i need it to look hawaii like and engage customers.

Ideas of what I like are here…

http://speckyboy.com/2010/08/15/40-highly-effective-facebook-business-pages/

Thanks

Internet Cafe Program + Flash Games

Gentoo Linux OS

Php/MySQL application w/ Flash games (theme based)

I need a quality, high graphics program to run this cafe.. People can come in and surf the internet, print documents, watch movies, or play sweepstakes games

– Player management
– Profit tracking
– Ability to restrict access to any program i choose
– Time management module – Keeps track of employees hours worked
– 15 games.. only used as reveal tools for winning sweepstakes

What I am requiring to work
– Non disclosure agreement
– Architectural and module based coding for easy upgrades
– Work for hire (I retain copyright)

Website Design For Real Estate

I need a kick-ass website designed that will blow the other competition away. I’m in the Real Estate business, flipping wholesale houses and rehabs. I want to eventually link this website to Craigslist postings, facebook, twitter, etc.. The site will need to be maintained by you (meaning switching pictures, descriptions, and prices sometimes daily). There needs to be an opt in form to collect investor information and put them in a database…. Can you help.. probably starting out with 5-6 pages and a blog page

Product Review Script And Form

I need a script that will output a review page like this one
http://reviews.dealsdirect.com.au/0553/allreviews.htm
that I can integrate into my wordpress ecommerce site www.happybirthdaygifts.com.au (.com.au).

I will also need a page created where I can direct customers to thru an email after purchase. Something like this one
http://www.dealsdirect.com.au/ratingsandreviews/
On this page there will also need to be a place for the customer to input their:
Name
Email
Review
Overall Rating (1-10 or star system)

This customer page will than load onto the review page after being manually approved. Because the website categories are not stored in the database I will need to be able to manually assign the review to one of the categories on the review page once I have approved it

Both these pages will be separate pages within wordpress that dont have the sidebar but do have the same header, top navigation and footer as the rest of the site

Any questions please ask before bidding

Franci’s FITC San Francisco Diary: Day One

There’s been a sense of confusion in our industry lately. Standards are changing and there is a lot of discussion about where Flash fits in the future of the web. As a kind of therapy I decided to check out the FITC San Francisco and so far, I’ve found exactly what I was looking for..

In this diary I’ll try and get you up to date on what’s going on in some of the more interesting projects involving the Flash platform and even some insight into other technologies that might change the way we do our business.

fitc

The Many Faces Of Away 3D
Rob Baetman

Don’t like ads? Download the screencast, or subscribe to Activetuts+ screencasts via iTunes!

With 3D in Flash the main issue you’re likely to be dealing with is performance optimization.

Rob Baetman of Away3D has demonstrated some great innovation in enhancing performance of 3D Flash projects as well as new features of the Away3D engine. One of the more impressive features presented were the PixelBender materials and BSP Sorting which is still in development but allows you to create large scenes where small areas render independently, the idea for which being adopted from the old quake engine.

Also presented was the Away3D Lite engine, which performs extremely well with large numbers of faces, but reduces the amount of features added to the engine. The demonstration was performed with a 8000-face airplane model and PixelBender materials, and for the mobile Flash Player a 2000-face airplane model with generated landscape and the ability to fly and navigate the airplane over it with the use of accelerometers.

In the end there was a demonstration of a multiplayer FPS game done with BSP sorting and textures baked with Prefab3D which was working remarkably well.

Away3D is definitely worth checking out with all the innovation put into the engine. With the mobile Flash Player on the horizon, the Away3D Lite engine is particularly interesting for creating mobile 3D web experiences.


Recognize This! Seeing with Flash
Eugene Zatepyakin

Don’t like ads? Download the screencast, or subscribe to Activetuts+ screencasts via iTunes!

Eugene is crazy. And I mean that in the best way possible. What he’s working on has so many implications that it’s hard to focus on just one. The project he was presenting is ASSurf. It allows you to recognize patterns and mach images in real time without the use of premade markers.

What you need is an image in the database that has strong enough contrasts and ASSurf will do the rest to find it in the webcam captured area. It also gives you the ability to perform motion estimation. Owing to the speed limitations of ActionScript, Eugene opted for Alchemy to carry out the heavy calculations, and managed to get a decent framerate with a real time image recognition and a 3d model of a forest overlapping the area. The project is still in development and requires tweaking, but what the library can do right now is very impressive and goes to show what we can expect in the future.


The Adobe Keynote
Mark Anders And Kevin Lynch

fitc

Kevin Lynch and Mark Anders were discussing the future of Flash platform on mobile as well as desktop devices. Adobe is obviously working hard to get Flash 10.1 on as many mobile devices as possible and are working with most major mobile manufacturers to deliver as many as possible by the end of the year. Motorola is about to start a campaign that will focus on promoting the Flash Installed feature in their phones and will also roll out a big ad in Times Square with the Flash Installed, featured prominently, which shows their commitment to the platform.

AIR 2.5 mobile public/private beta is also out. You have to register to download it but that is it, so if you want to start developing or just testing it out you can do that at http://labs.adobe.com/technologies/air2/android/. More optimization tips for the AIR and Flash for Android will come in following parts of the diary.

We should also expect a major update for mobile Flash very soon. There has been a lot of work done on reducing memory consumption for AS3 VM, to the point where it has been reduced by about 50% for the 10.1 for mobile devices.

For anyone who plans to develop for mobile Flash or AIR, you’ll be happy to hear that the Device Central will feature a lot of cool tools for checking real world application use on a mobile device. These include use of accelerometers, ability to add reflective overlay over the screen to check the visibility of graphics with a custom reflecting background as in real world situation, the ability to throttle signal strength to check the performance of your application in simulated lower signal strength areas and check the battery consumption. The device manufacturers provide Adobe with a profile of their phones so that the simulations can be made as accurate as possible. Also, with the different number and kind of accelerometers in different devices, Adobe is working on providing a single range output for easier cross device development. All of this should make our lives a lot easier when it comes to developing for multiple devices.


Wrap Up

I hope you enjoyed this first glimpse at FITC San Fransisco 2010, look out for more diary entries coming soon!

Taking Advantage of Blender 2.5

Lifelike billowing smoke and flowing water are easy to create with expensive plugins, but monumental changes in the free, open-source software Blender 2.5 can enable you to replace the plugins whilst maintaining your software of choice. By changing your workflow you can save money (and replace some old particle effects with beautiful new volumetrics!) In this article, Matthew Groeling takes a look at a few things you could consider…

Whilst altering your workflow can take some getting used to, that flexibility is a tremendous skill for any 3D artist. The way the robust features below find their way into your workflow is ultimately up to you, but hopefully our recommendations will help you find a place for them!


Smoke

Smoke simulators are prime examples of a potentially expensive feature. Blender’s smoke simulator takes the first step into a domain exclusive to pricey add-ons and dedicated software suites – and even in its infant stage its already pouring out impressive results. Stunning fire, smoke and explosions are already possible, and before long you’ll be able to kiss goodbye to unrealistic particle effects.

The best place to work this feature in would be after modeling, texturing, and if you like, even animation. Importing the smoke simulation into other programs is a questionable tactic at best, chances are it probably won’t be supported.

Don’t worry though! If you don’t want to render using Blender, LuxRender should be your next stop. It’s unbiased rendering can easily produce breathtaking, lifelike results. Even better, a project called Small Lux GPU uses your graphics card to do all the hard work, getting those beautiful renders to you faster.

Cgtuts+ are currently running a tutorial series taking a look at the smoke/fire effects possible with Blender 2.5. Written by the man behind Blender 2.5′s smoke docs himself, Gottfried Hofmann, it’s a great place to start, and the preview is shown below. Check out the first part now by clicking here!


Fluids

From pouring a cup of water to wiping out New York with a tsunami, you’ll find that a good fluid simulator is practically your only option. Whilst commercial 3d software packages are beginning to bundle in simulators, learning how to use Blender’s and implementing it in your own workflow is still a great option!

There’s a lot of benefits to using Blender’s fluid simulator. For instance, you can be sure that the development will never stagnate for too long, even when your buddies using commercial software haven’t seen an update in months. Recently, Blender’s fluid sim has been getting some nice new features like subframing, which increases the stability and accuracy of your simulations.

Just like with the smoke simulator, feel free to import your textured scene into Blender to start setting up your fluid simulation. Then add your emitter, define your bounding box, and go!

For an example of what’s possible, check out Promotion Studio’s TV commercial, courtesy of BlenderNation


Compositing

Good compositing is currently something that very few plugins can deliver. In fact, for post processing video or still frame renders using commercial means, your best options lie in a separate software package. However, one of Blender’s hidden gems is it’s own built-in compositor! As you can see from the below image, the compositor is node based, meaning it’s non-linear and non-destructive.

If that terminology is new, and you’ve never worked with nodes before, the above image may be a little intimidating. When it comes down to it, though, working with a node based compositor can be as simple as plugging one box into another and watching your work start to come together!

Using compositing, you can mix live action with your CG, add some slight scratches or water droplets to your virtual camera lens, balance colors, and so much more. Compositing opens doors you didn’t even know existed, and you can use images and sequences in a variety of common formats. In fact the above node graph results in the image shown below :

If you find out you love the node based approach, with the Texture Nodes you can procedurally create textures and materials to use at other points in your workflow! They can be accessed through the Compositor window, but that doesn’t mean you have to wait until you render to use them.

For the ultimate look at just what the compositor is capable of, check out the following video from the making of Big Buck Bunny – in fact why not check out the entire short whilst you’re at it!

(c) copyright 2008, Blender Foundation / www.bigbuckbunny.org


Sequencer

If you want a simple video editor with some extra advanced features, Blender’s sequencer will get the job done. Use it to edit together your rendered animations, sound, and other video clips from any application. While not as fully featured as the compositor, the sequencer is a good way to put together a edit quickly and easily. However be warned, the more complex features can take some time to learn, not to mention machine power!


Conclusion

If you ultimately decide to add Blender 2.5 to your workflow, you could end up saving a lot of money, but, more importantly, it will help to break you out of a box you may have been unknowingly sitting in.

Every software package has it’s unique strengths and weaknesses, but if you choose to live with these weaknesses you limit yourself. A simple export from one program to another can keep your wallet from loosing some serious weight, boost the quality of your project, and it helps to keep yourself open minded and flexible about your work.

If you like what you’ve seen above, why not check out the latest alpha release of Blender 2.5 from http://www.graphicall.org/


Don’t miss more CG tutorials and guides, published daily – subscribe to Cgtuts+ by RSS.

Would You Ever Go Postal at Your Workplace?

One of the most publicized incidents currently in the U.S. news is the case of the flight attendant, Steven Slater, who had a tirade at the end of his shift on board a JetBlue flight. This tirade came after an unruly passenger, at the end of the flight, decided to unload her baggage from the overhead compartment before the crew had given the OK for passengers to leave their seats. Slater asked the passenger to sit down but the passenger refused. At the same time, her luggage fell from the overhead compartment onto the head of Slater. Slater then requested an apology from the passenger who then cursed at him. Slater then used the plane’s public address system and declared, in rather colorful language, that he had enough after 28 years as a flight attendant and cursed the passenger who cursed at him. He then grabbed two beers and opened the rear exit and deployed the emergency exit slide and exited the plane via the slide. He was since arrested later at his home.

This is obviously an incident where a worker had enough of the conditions in his workplace and had a rather explosive reaction. It also brought to mind an incident I had in the past where I may not have acted as diplomatically as I could have in a work situation. It was the end of a long weekend where my group, the IT applications group, had just implemented a new software package. On Sunday, I was performing some last minute testing of the application and I discovered a major problem. As a result, I needed access to the application server and did not have the security to do so. So, I then called the Network Manager who never called me back. I was hoping that this issue could be resolved before the company started working on Monday since the Manufacturing floor needed to use this application to do their jobs.

When I caught up with the Network Manager on Monday morning, after stewing on this issue overnight, I screamed at him at the top of my lungs within earshot of any employee who happened to be in the area. The network manager, in not so many words, pretty much told me that there will never be 24X7 coverage so don’t expect it. To make a long story short, the issue was resolved that morning after the company pretty much came to a standstill for a couple of hours. That work stoppage could’ve certainly been avoided if I was able to contact the network manager on that previous day.

Could I have handled the situation with a calmer demeanor? Probably. Did I have justification to go off on the network manager that morning? I certainly thought so. So, I’m wondering, would you ever “go postal” at your workplace? If so, do you feel that your tirade would be justified? And what would be the consequences?

How to Beat Procrastination Permanently

It’s no surprise that we’ve touched on beating procrastination several times at WorkAwesome – it is productivity’s sworn enemy. On our path to progress, we’re constantly kicking procrastination to the curb, and often it just reappears a few steps farther along the road. Some of us fare better than others in the never-ending contest between procrastination and production, but few of us have taken the time to fully understand what procrastination is, where it comes from, and how to fight it effectively. In fact, most of us only know two things about procrastination; a basic, tip-of-the-iceberg definition, and not to do it.

Simply knowing “not to procrastinate” is inadequate. How can we learn how to beat procrastination if we don’t understand it? You wouldn’t go into any other battle without studying your opponent, maybe it’s time you got to “know your enemy.”

Which Tasks Do We Procrastinate?

We all know – in a very general, vague sense – when we tend to procrastinate, but a closer look at our least favorite tasks can show us exactly when we are prone to procrastination. Most of us follow certain behavioral patterns, delaying certain types of tasks with specific attributes. Psychologist Edwin Van Hooft theorizes that three task traits cause “task aversiveness,” the catalyst for procrastination:

  • Task difficulty. People tend to procrastinate when confronted with “difficult” tasks.
  • Task importance. People tend to procrastinate when they deem a task “unimportant.”
  • Task efficacy. When people don’t consider themselves “good at” the task at hand, they’re likely to procrastinate.

Structured Procrastination

Structured procrastination involves the reordering of tasks against their true importance. Faced with a particularly aversive (but important) task such as doing your taxes, you might discover less important things to do, like washing your car, finishing your laundry, or exercising. You might even invent tasks that border on the unnecessary, like disinfecting your desk or checking the air pressure on your car tires. It’s all about finding justifiable reasons to avoid the more important work.

It sounds harmless, even semi-productive, but structured procrastination is a serious problem. Your “to do” list is upside-down, reordering your tasks from least to most important. You’re putting off the critical tasks for trivialities that are barely worth your time. Your productivity may be up, but it’s only to hide from yourself the fact that your priorities are completely backwards.

Waiting For The “Spirit to Strike You”

Instead of springing into action like structured procrastinators, some people have the opposite reaction, becoming paralyzed by procrastination. Rather than avoiding the aversive work by turning to small, insignificant, less important tasks, they stay on target, facing the most important work first. However, that doesn’t necessarily mean they’re doing the work, and procrastinators often feel safe as long as they’re “in position,” even if they’re not actually making progress.

The classic example is the college student with a large paper due the next day. The student sits frozen at the keyboard. They aren’t writing, but they think that if they leave, they’ll miss a moment of perfect inspiration to write. The student feels comfortable and anxiety-free sitting at their desk. They’re not avoiding their work, in fact, they’re facing it… quite literally. But, they still aren’t actually doing it.

Perfectionism

Perfectionism is often portrayed as a positive quality to have, but it’s a frequent catalyst for procrastination. Work simply won’t get started unless the conditions are perfect, and it won’t ever be finished until the results are flawless. This is the kind of behavior that will stop a gym-goer from starting their workout unless they’re fully rested, perfectly hydrated and optimally fueled via a pre-workout diet. Similarly, an author might never finish their book until every word is glimmering with perfection.

How Do We Beat Procrastination?

Understand the flavors of motivation. Internal motivation is a product of your own values and goals. External motivation involves rewards – like a salary – for completing tasks and penalties – like a poor performance review – for failure. As much as we’d love our strongest motivation to come from within, we tend to put externally motivated tasks ahead of internally motivated ones. In other words, you may want very badly to spend the evening with your family, but you feel that you have to finish that externally-motivated project report by midnight.

Practice volitional skills. Psychologically speaking, “volitional skills” is just the scientific term for “willpower,” but there is an important distinction between the terms: People consider willpower to be innate, something you’re born with (or born without). It sounds like an easy avenue for excuses; whenever you want to procrastinate, you can shrug and proclaim “I just don’t have the willpower,” as if there’s no way to summon the initiative to get the job done.

The excuse just isn’t viable: “Willpower” is not a power given at birth. It’s a volitional skill; you can develop it, improve it or neglect it. Consider your volitional skills like muscles; you can strengthen them, but you can also exhaust them. They benefit from rest, so pick your willpower battles carefully.

Stop calling yourself a procrastinator. If you get too comfortable with procrastination, you’ll eventually find yourself neglecting your job, your family and your personal health. Instead of declaring yourself a procrastinator, declare your productive intentions and remind yourself of your goals. As David Campbell said:

“Discipline is remembering what you want”

80 Amazing Abstract Architecture Shots (And How to Shoot Your Own)

Architecture is an incredibly fascinating area of design. The seemingly impossible physics, the play of light, the masculine textures, it all comes together to create an incredible sense of fantasy and wonder.

The magic of great architecture is highlighted and even amplified significantly when presented by the right photographer. Today we’ll take a look at five quick tips to keep in mind to help you shoot better abstract architecture shots followed by eighty stunning examples.


5 Tips for Better Abstract Architecture

Tip 1: Find the Fantasy

When you approach a structure, try to find a crop that makes the reality of the building seem impossible. To illustrate, consider how the image above feels like an optical illusion. It’s as if Escher himself took a photo of one of the fantastical places that occupied his mind.

Also notice how the hard lines are positioned in such a way that it feels like the building is immense and could continue forever. For all we know the edges of the building are right outside the crop of the photo, but that illusion of infinite potential is strong.

Tip 2: Master Symmetry

The idea that symmetry is beautiful is an inescapable notion. When we see it in creatures, plants, art, architecture or anywhere else we are mysteriously drawn in and captivated. Whether it’s that our brains enjoy the fun of spotting repetition or that there’s just less information to process, we can’t help feel that symmetry is good and right.

When you’re shooting architecture, the simplest place to start is with the symmetrical aspects. Find something that repeats, stick two or more of them tightly in the frame and you’ll have the potential for a great shot.

Tip 3: Look Up

Some of my favorite architecture abstracts instill a dramatic sense of vertigo not by looking downward, but upward. Impossibly tall structures have a tendency to fascinate and terrify us at the same time and images like the one above bring that fear to the surface. If you stare long enough to really let yourself get taken in, you almost feel as if you’re going to fall into the sky.

Any time you’re up against a tall structure, whether it be man made or natural, try taking a shot looking straight up from the bottom. Make sure to adjust your ISO and aperture so that the sky detail isn’t blown out, it’s often the texture and drama in that vast cloudy background that really makes the photo.

Tip 4: Twist that Camera

When you’re shooting any sort of abstract, resist the tendency to level the camera as you would with a typical shot. Instead explore every angle and rotation to make the image that much more captivating.

The photo above uses an extreme rotation to add a lot of visual interest. It makes you want to twist your head to find the proper viewing angle, which isn’t always obvious and can leave you wondering.

Tip 5: Lighting is Everything

Whenever you have the opportunity, come back to an interesting building at different times of the day to watch as the sun plays across the surface and shadows envelop or escape the crevices.

Consider the lighting exactly like you would in high and low key portrait situations. Sometimes you’ll want strong prevalent shadows for a dramatic look while other times a bright, almost flat appearance will make a more powerful statement.


80 Amazing Abstract Architecture Shots

Abstracting Contemporary Architecture

Abstract Architecture

Concrete windows (Brussels)

Abstracted architecture 2009-02

The Prada Building Close Up

Sunday afternoon’s abstract

191430_067

Abstract Lights

New York Architecture

London building abstract

Abstract 3D Wave Design

Chicago Abstract

Roof abstract

Frank Gehry Architecture – Windows

Abstract white

Abstract – architectural detail

Pritzger Park Abstract

Retro 80′s office building architecture

Skyscraper abstract

Getty Museum #9

Architectural abstract

union station abstract

Big brother watching over your shopping

Milan, Italy, 24 may 2010

Otto Lilienthal Memorial in Anklam

Selfridges

Ceiling

perception is reality

By the Year 2000 All Our Food Will be in the Form of Tiny Pills

Abstract

Tubular Hive (after)

Curve 3

Skyscraper Abstract

Happy about homework

A Preview of Coming Attractions

Urban Wanganui

the point

L’Auditori Barcelona

vancouver 563

Corrosion of Conformity

Circles

pixies:down to the well

Warehouse

Abstract (Light beyond the grids)

FLW Unity21

Abstract

Abstract: Glass

ceiling abstraction #1

Alberta Sky

Cinémascope

Inmersión

Architecture / blackwhite

Spiral

Ronnie’s Tune

Guggenheim abstract #2

the eyes are its informers

Abstract (Staircase)

You were above me, but not today

iPhoneography: ‘Under the Roof’

Disney 1

Do not glue on, Neumarktstr., Wuppertal

Abstract (reflection in a pillar)

Bug Eye

Angled Architecture

Scripps Bridge, Remixed

Ascension

trying to explore this world underneath…

Stefan Georgi

Xerxes

Black and White Science Museum

SCAT

futuristic design

Mirror Image

Skylight

The Pressure’s On

Railings

Repeat the

Edinburgh Parliament

Heart of Darkness #2

The State Art Gallery


Show Off Your Work!

I hope the images above have inspired you to look at architecture in new ways and to think about how you can capture the beauty of the mundane structures you see every day.

As always, we want to see your examples. Leave a link below to a few of the abstract architecture shots that you’re most proud of capturing. Also let us in on any techniques or special insight you have for taking this type of photo.

Getting to Work with CSS3 Power Tools


CSS3 is one of the coolest new web technologies available to web developers right now. Using some of its many features, it is possible to reproduce the effects that you might have previously done in Photoshop, with CSS code that is more maintainable, faster to load, and hip with the latest trends. Read on to learn about the power tools available to you and how to combine them to produce the ultimate graphical effects.

CSS3 has many features, but some of them are imperative to learn if you are going to be reproducing Photoshop-like effects. I call these my “power tools.” They include the following:

  1. Border Radii
  2. Box Shadows
  3. Text Shadows
  4. Gradients
  5. Multiple Backgrounds

Each of these features can help replace some of the images that you might have created in Photostop in the past. By doing this, you are making your website more maintainable since you can change a property just by changing your CSS file rather than editing an image in Photoshop. You are also making your website load faster since images use a lot of bandwidth. Let’s explore these features one by one.


Power Tool #1: Border Radius

Browser Support:

  • Safari: 3.2+
  • Firefox: 3.0+
  • Chrome: 3.0+
  • Opera: 10.5+
  • Internet Explorer: 9.0+

By now, you’ve probably heard about border-radius a million times. It is super easy to use and is supported accross all modern browsers. If you don’t already know, border radius is a way to create rounded corners with CSS—no images necessary! Let’s take a look at the syntax.

-webkit-border-radius: size;
-moz-border-radius: size;
border-radius: size;

There are three syntaxes that you will need to use. The first is for Webkit-based browsers, like Safari and Chrome; the second is for Mozilla-based browsers, like Firefox; and the last is the un-prefixed version, for browsers that support it, including IE9, Opera, and Safari 5.

Applying a 10 pixel border radius to a div creates the following effect:

OK, easy! Let’s move on to the next power tool.


Power Tool #2: Box Shadows

Browser Support:

  • Safari: 3.2+
  • Firefox: 3.5+
  • Chrome: 3.0+
  • Opera: 10.5+
  • Internet Explorer: 9.0+

Box shadows are another well supported feature. Their syntax looks like this:

-webkit-box-shadow: offset_x offset_y blur_radius color;
-moz-box-shadow: offset_x offset_y blur_radius color;
box-shadow: offset_x offset_y blur_radius color;

Once again we have to use the vendor prefixes for Webkit and Mozilla. The first and second parameters of the box-shadow property are the offset positions from the left and top coordinates of the element. Setting a positive value to these properties moves the shadow to the right and down from the element, and setting a negative value moves the shadow to the left and up from the element. The blur_radius is the amount of blur you want to add to your shadow (how hard or fuzzy you want it). Finally, the last parameter is the color that you want the shadow to be. Adding a shadow to our previously used rounded div will create a nice looking effect.

-webkit-box-shadow: 5px 5px 10px #555;
-moz-box-shadow: 5px 5px 10px #555;
box-shadow: 5px 5px 10px #555;

Another neat feature of CSS box shadows is the inset keyword. When the inset keyword is present, the shadow is rendered inside the box rather than outside. This can create a nice depressed look especially for buttons. Here is what our div would look like with an inset shadow.

-webkit-box-shadow: 0 0 20px #333 inset;
-moz-box-shadow: 0 0 20px #333 inset;
box-shadow: 0 0 20px #333 inset;

The last feature of box shadows that is worth mentioning is the ability to have multiple shadows on the same element. This is very useful and can eliminate having extra markup in your HTML just to apply an additional shadow. All you have to do to create multiple shadows is separate them with commas. Here is an example:

-webkit-box-shadow: 0 0 20px #333 inset,
                    20px 15px 30px yellow,
                    -20px 15px 30px lime,
                    -20px -15px 30px blue,
                    20px -15px 30px red;

-moz-box-shadow: 0 0 20px #333 inset,
                 20px 15px 30px yellow,
                 -20px 15px 30px lime,
                 -20px -15px 30px blue,
                 20px -15px 30px red;

box-shadow: 0 0 20px #333 inset,
            20px 15px 30px yellow,
            -20px 15px 30px lime,
            -20px -15px 30px blue,
            20px -15px 30px red;

Power Tool #3: Text Shadows

Browser Support:

  • Safari: 3.2+
  • Firefox: 3.5+
  • Chrome: 3.0+
  • Opera: 10.1+
  • Internet Explorer: Hopefully coming soon!

Text shadows are like box shadows except that they are shadows for text rather than the whole element. Luckily, there is no vendor prefix necessary for text shadow.

text-shadow: offset_x offset_y blur_radius color;

The options for text shadow are the same as for box-shadow except that there is no inset text shadow support. Here is a demo that makes otherwise-invisible text pop off the page.

color: #fff /* text color to white */
text-shadow: 0 0 50px #333;

This creates the following effect:

As with box shadows, it is possible to have multiple text shadows just by separating them with commas. Here is an example that creates a flaming text effect.

text-shadow: 0 0 4px #ccc,
             0 -5px 4px #ff3,
             2px -10px 6px #fd3,
             -2px -15px 11px #f80,
             2px -18px 18px #f20;

Text shadows can create some awesome effects, and can complement other effects very nicely.


Power Tool #4: Gradients

Browser Support:

  • Safari: 4+
  • Firefox: 3.6+
  • Chrome: 5+
  • Opera: Hopefully coming soon!
  • Internet Explorer: Hopefully coming soon!

Gradients are one of the most powerful features available to you if you want to create these awesome effects. While full browser support is still not quite there, you can always provide fallback styling to browsers without support. Remember: Websites do not need to look the same in every browser. There are two types of gradients that you can create: linear gradients and radial gradients. As you might expect, linear gradients move along a straight line and radial gradients go around a circle. Gradients can be used anywhere you might have used an image in the past, such as for the background, border-image, or list bullets.

Unfortunately for web developers, there are two different syntaxes: one for Mozilla and another for Webkit.

Syntax for Webkit

Safari and Chrome both use the Webkit rendering engine, so they always use the same syntax. Their gradient syntax is pretty simple:

-webkit-gradient(<type>, <point> [, <radius>]?, <point> [, <radius>]? [, <stop>]*)

Webkit uses the same same syntax for both linear and radial gradients. Just change the type parameter to switch between them.

Syntax for Mozilla

Firefox uses separate syntaxes for linear and radial gradients, both of which are very different from their Webkit counterparts.

-moz-linear-gradient( [<point> || <angle>,]? <stop>, <stop> [, <stop>]*)
-moz-radial-gradient( [<position> || <angle>,]? [<shape> || <size>,]? <stop>, <stop>[, <stop>]*)

Let’s look at these syntaxes separately.

Linear Gradients

For simplicty, here is a Webkit’s syntax just for linear gradients.

-webkit-gradient(linear, start_x start_y, end_x end_y, stop, stop...)

Firefox’s syntax looks like this.

-moz-linear-gradient(angle start_x start_y, stop, stop...)

In the Webkit syntax start_x and start_y parameters specify the starting position of the gradient, and end_x and end_y specify the ending position of the gradient. You can use any of the standard CSS dimension values, including percentages, as well the keywords left, top, bottom, right, and center as values for these position parameters. Stops are a way for you to specify specific colors to be used at specific points along the gradient. You can have as many color stops as you want, but you must have at least two: a starting and ending color. For additional color stops, you can use the color-stop() function providing a position as a percentage or a decimal between 0 and 1 as well as a color. For example: color-stop(50%, black) would create a black color stop at exactly half way through the gradient. Rather than writing 0% and 100% for the starting and ending colors, the convenience functions from() and to() exist. All you have to provide to these is the color.

Firefox’s syntax is much less straight forward, and has many ways of accomplishing the same goal. The only thing that is static about the syntax are the color stops, which are just a color followed by a position as a percentage. For the starting and ending positions, you can leave off 0% and 100%, and if you leave the position off of any of the other color stops, they are distributed evenly throughout the gradient. Unlike the Webkit syntax, Firefox’s syntax does not have an ending position, only a starting position and an angle. The gradient will run out from the starting position at the specified angle. If you leave the angle out, it will run out perpendicularly from that point. If you leave out the starting point all together, the gradient will run from top to bottom. This syntax is kind of confusing and a bit less flexible than Webkit’s simple syntax, so it is best to learn by example.

Here is a simple example of CSS gradients in action. This gradient goes from the top left corner to the bottom left corner (in other words, from top to bottom) and from red to white.

-webkit-gradient(linear, left top, left bottom, from(red), to(white));
-moz-linear-gradient(red, white)

Setting this as the background property of a div, we get the following result:

By adding a color stop and changing the angle of the gradient, we can get a different effect.

-webkit-gradient(linear, left top, right bottom, from(red), color-stop(50%, white), to(red));
-moz-linear-gradient(left top, red, white, red);

Radial Gradients

Here is the syntax for radial gradients in Webkit.

-webkit-gradient(radial, inner_circle_center_x inner_circle_center_y, inner_circle_radius,
                         outer_circle_center_x outer_circle_center_y, outer_circle_radius,
                         stop, stop...)

Firefox’s syntax looks like this.

-moz-radial-gradient(center_x center_y, shape size, stop, stop...)

The Webkit syntax is a bit more complicated than the linear gradient syntax, but the same principles still apply. Radial gradients in Webkit have two circles: a starting circle and an ending circle. You specify the center X and Y positions for each of these circles along with their radii. Finally you specify the color stops the same way you did for linear gradients.

The Firefox syntax for radial gradients is similar to the syntax for linear gradients in that all of its parts except the color stops can be left out. You can specify the center X and Y positions of the gradient much like the inner circle’s coordinates in the Webkit syntax, but there is no outer circle in Firefox. Instead you can specify a shape and size of the gradient. The shape can be either a circle or an ellipse, the latter of which is not currently possible to create in Webkit. The size accepts many different keywords, but not a pixel size as you might have expected. You can read about what each of these constants do on the Mozilla Developer Center. For this tutorial, we will just use the defaults. Once again, if you leave the center X and Y positions out, they will be assumed to be the center of the object you are filling with a gradient. If you leave out the shape and size, the gradient will be assumed to be a circle that fills the entire box.

-webkit-gradient(radial, center center, 0, center center, 50, from(white), to(red));
-moz-radial-gradient(white, red)

If we apply this gradient to the background of a div, this is what we will get.


Power Tool #5: Multiple Backgrounds

Browser Support:

  • Safari: 3.2+
  • Firefox: 3.6+
  • Chrome: 3.0+
  • Opera: 10.5+
  • Internet Explorer: 9.0+

Multiple backgrounds make it easy to create complex effects in CSS without needing to create additional markup in your HTML. Having support for this means that elements can have multiple gradients and image backgrounds along with the standard background color. There is no difference in the syntax of multiple backgrounds from single backgrounds – just comma separate them and off you go!

Here is an example of a div with a gradient background and a nice textured effect using an image:

background: url(noise.png), -webkit-gradient(linear, left top, left bottom, from(#999), to(#333));
background: url(noise.png), -moz-linear-gradient(#999, #333);

We have to declare it twice since, as we’ve learned, there is a different gradient syntax for each browser. This creates the following effect:


Combining the Power: Building an Awesome CSS3 Button

Now that we have five great power tools at our disposal, let’s combine them to produce an even more awesome effect.

There are so many different types of buttons that you can choose to design. To be simple, let’s emulate something that already exists – the Mac OS X button style.

We will start off with our HTML code for this demo. It is really quite simple, just two DIVs and some text.

<div class="panel">
    <div class="button">Button</div>
</div>

Now we will start off with our basic CSS. First, let’s style the panel.

.panel {
    background: -webkit-gradient(linear, left top, left bottom, from(#bbbcbb), to(#959695));
    background: -moz-linear-gradient(#bbbcbb, #959695);
    background-color: #b7b9b7;
    width: 100px;
}

The panel is just a nice container for our button. It has a gradient going from top to bottom between two nice grey colors. For those browsers that don’t support gradients, a fallback background-color is given.

Now, let’s look at the CSS for the actual button.

.button {
    display: inline-block;
    margin: 20px;

    padding: 3px 6px;
    font-family: 'Lucida Grande', Arial, sans-serif;
    font-size: 13px;

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;

    border: 1px solid rgba(0, 0, 0, 0.6);

    background: -webkit-gradient(linear, left top, left bottom, from(#fbfcfb), to(#9d9e9d));
    background: -moz-linear-gradient(#fbfcfb, #9d9e9d);
    background-color: #c0c2c0;

    text-shadow: rgba(255, 255, 255, 0.4) 0px 1px;

    -webkit-box-shadow: rgba(255, 255, 255, 0.4) 0 1px;
    -moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px;
    box-shadow: rgba(255, 255, 255, 0.4) 0 1px;

    -webkit-user-select: none;
    -moz-user-select: none;
    cursor: default;
}

There is a decent amount of code here, which uses all of the power tools that I described above, except for multiple backgrounds. There are several sections to this code, which we will take one by one. The first two lines are just some simple layout information. Setting the button to display: inline-block makes it automatically extend to fit the content, no matter how much text you put in the button. The next section gives some font information to the button. Finally, in the third section we get to use our first power tool: border radius. In the case of our lovely button, we give it a nice 3px radius. Next we give the button a border. Notice that we are using rgba as a color here. This allows us to make the color partially transparent as we do here, creating a nice grayish color. In the next section of code, we set up the background of the button. We give it a gradient background as well as a solid color for fallback in browsers that don’t support gradients yet. Next, we use text shadow to make the text look slightly engraved into the button. Once again we use rgba here to give a partially transparent white to the text shadow. The pen-ultimate section of code creates a box shadow. Now, this does not actually look like a shadow, it actually looks like a second border, but it gives a nice highlight to the bottom of the button to make it look engraved into the background and compliments the border color. This is a useful trick to know if you ever want something to look like it has multiple borders – I use it a lot. Finally, the last section of CSS code is a nice trick that prevents text selection in Webkit based browsers and Firefox, and sets the cursor to the default arrow rather than the text selection cursor.

So far, this code makes our button look like this:

OK, so not too bad yet! Let’s move on to the button’s depressed look.

.button:active {
    background: #B5B5B5;
    -webkit-box-shadow: rgba(255, 255, 255, 0.4) 0 1px,
                        black 0px 1px 3px inset,
                        rgba(0, 0, 0, 0.4) 0px -5px 12px inset;

    -moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px,
                     black 0px 1px 3px inset,
                     rgba(0, 0, 0, 0.4) 0px -5px 12px inset;

    box-shadow: rgba(255, 255, 255, 0.4) 0 1px,
                black 0px 1px 3px inset,
                rgba(0, 0, 0, 0.4) 0px -5px 12px inset;

    text-shadow: rgba(255, 255, 255, 0.3) 0px 1px;
}

When the button is pressed down, we change a number of things. First, we set the background to a plain color, removing the gradient that we had set eariler. This is because we will be creating the depressed look with a box shadow rather than a gradient. The next thing we do, is set that shadow—or rather multiple shadows. The first shadow in the list is the same one that we had in the normal state: the highlight on the bottom of the button. The second and third shadows are the ones that make our button look pressed. The first of these is a black inset shadow that is set down from the top 1 pixel and has 3 pixels of blur—a pretty dark looking shadow. The last shadow is also black but a slightly transparent black that is set up from the bottom 5 pixels with 12 pixels of blur. This creates the darkened look on the bottom of the button when it is pressed. The final thing that we need to do when this button is pressed down is just reduce the opacity of the text shadow by one notch so that it doesn’t stand out like a sore thumb.

That’s it! Our button is complete. Here is what the pressed down version looks like:


Conclusion

Replacing images with CSS3 has many benefits. It makes your job as a web developer easier since you don’t need to open Photoshop every time you need to make a change to your user interface. It makes your web site or web application load faster since it doesn’t need to download so many heavy images. And it allows you to create a more rich, interactive, and desireable experience for users such that they will keep coming back for more.

I will leave you with a bit of inspiration of things that you could do with CSS3. These aren’t necessarily the most real world examples, but they show what is possible with a bit of work.

iPhone Made With Pure CSS3

The first demo, created by Jeff Batterton, is an iPhone created with pure CSS3 – no images used. It is very impressive, utilizing CSS gradients, text shadows, box shadows, transitions and transforms. Unfortunately, it currently only looks correct in Webkit based browsers like Safari and Chrome. It can be your task to make the demo work in Firefox!

Pure CSS3 iOS Icons

Another demo, perhaps even more amazing was written by Louis Harboe. It is a recreation of some of the iOS icons in pure CSS, and very realistic recreations at that! This demo also only works in Webkit based browsers. If you want to learn about how some of these icons were reproduced, you can head over to Louis Harboe’s blog where he describes the process.

I hope you’ve enjoyed this article! Feel free to catch up with me on Twitter, or leave your thoughts in the comments!