The Intricacy of Simplicity: CSS3

The Intricacy of Simplicity: CSS3

Ever wondered how a particular effect was achieved in a web design, and, after zooming in several clicks, you found that the author added several subtle shadows, borders, gradients, etc? In the past, this was achieved simply by slicing out an image, and setting it as a background of some element. Luckily, with CSS3, we can be afforded much more flexibility. Now, while the code for such a simple effect might be a bit tedious, it’s well worth it, and that’s what we’ll review in today’s written and video quick tip!


Video Version

Rather watch this screencast on Screenr.com?


Text Version

It’s amazing that something this simple requires that much code, but, it’s not too rough, and can easily be abstracted away to a snippet for future use.


Step 1. Create the Mark-up

To make our project as cut-and-paste as possible, we’re only working with an empty div. Create a new index.html file, and paste in the following:

<body>
     <div id="box">

	</div>
</body>

Step 2. Create the Canvas

Next, we’ll add some basic styling for the body element. This is just for the presentation, and can easily be removed. Within style tags in your header, add:

/* Nothing special here. Just the canvas. */
body {
	width: 500px;
	margin: 60px auto 0;
	background: #666;
}
Body Styling

Step 3. Styling the Box

Now, we’ll create our box, supplying a width and height.

#box {
	/* Just a box */
	width: 500px;
	height: 500px;
}
Box

Step 4. Rounded Corners

We should all know about CSS rounded corners by now. Let’s go ahead and implement that.

/* Rounded corners */
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
Rounded corners

Note that we’re also supplying the final spec, of “border-radius,” in addition to Mozilla and Webkit’s versions.


Step 5. Border Colors

Mozilla offers a handy property, called “-moz-border-*-colors.” This allows us to set an infinite number of colors for a border. To achieve a subtle “double-border” effect, let’s implement this property.

/* Set a base border and color */
border: 2px solid white;

/* Multiple border colors in Gecko */
-moz-border-top-colors: #292929 white;
-moz-border-right-colors: #292929 white;
-moz-border-bottom-colors: #292929 white;
-moz-border-left-colors: #292929 white;

Note how the number of colors we supply are the same as the border width that we set at the beginning (2px). Also, don’t place commas after each hex value; I made that mistake at first!

Border Colors

Step 6. Compensating for Webkit

To the best of my knowledge, webkit doesn’t currently support border-colors, though it’s possible that I’m wrong. If I am, please leave a comment and let me know! Anyhow, to mimic this effect as best as we can in Safari and Chrome, we’ll use box-shadow.

/* Compensate for Webkit. Not as nice, but works. */
-webkit-box-shadow: 0 -1px 2px #292929;

Note that the provided values refer to the X offset, Y offset, blur, and shadow color, respectively. By passing -1px as the Y offset, we can push the shadow upwards.

In Safari

Step 7. CSS Background Gradients

The final step is to supply a subtle background gradient for our box. However, we must be sure to provide a fallback solid color for the browsers that don’t support CSS gradients.

/* Background subtle gradient, with fallback to solid color */
background: #e3e3e3;
background: -moz-linear-gradient(top, #a4a4a4, #e3e3e3);
background: -webkit-gradient(linear, left top, left bottom, from(#a4a4a4), to(#e3e3e3));

Unfortunately, Mozilla and Webkit don’t quite agree on the syntax for gradients, which makes the process extra irritating. If it’s too confusing, you can use a new service called CSS3 Please to auto generate each browser’s syntax; it’s very cool!

Final Product

You’re Done!

It’s amazing; looking over our final image, it’s hard to tell what we actually did! But this is a good thing; subtlety is key in all aspects of design. Thanks for reading/viewing!


Final Code

/* Nothing special here. Just the canvas. */
body {
	width: 500px;
	margin: 60px auto 0;
	background: #666;
}

#box {
	/* Just a box */
	width: 500px;
	height: 500px;

	/* Rounded corners */
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;

	border: 2px solid white;

	/* Multiple border colors in Gecko */
	-moz-border-top-colors: #292929 white;
	-moz-border-right-colors: #292929 white;
	-moz-border-bottom-colors: #292929 white;
	-moz-border-left-colors: #292929 white;

	/* Compensate for Webkit. Not as nice, but works. */
	-webkit-box-shadow: 0 -1px 2px #292929;

	/* Background subtle gradient, with fallback to solid color */
	background: #e3e3e3;
	background: -moz-linear-gradient(top, #a4a4a4, #e3e3e3);
	background: -webkit-gradient(linear, left top, left bottom, from(#a4a4a4), to(#e3e3e3));
}



Html Slicing For Joomla Page

Html Slicing For Joomla Page

I have an EASY to do slicing for and HTML joomla landing page.

This really is an easy to do project and should be fast for someone who knows what they are doing.

This page consists of text, a few graphics, and an easy to install javascript snippet for the aweber webform. (Plugin required for Joomla to use the javascript).

This really is an easy, straight forward project.

PLEASE NOTE:

—- EXPERTS ONLY!!! ——

THIS NEEDS TO BE 100% to my satisfaction. I need it to look exactly like the provided .psd file.

Feel free to PM with any questions you may have.

Thanks!

Ecommerce Website Redesign

Ecommerce Website Redesign
I need to do a website design makeover for the-buckle.com…the website looks graphically dull and unattractive to the visitors. I need it looking like the latest web 2.0 style design..Logos and multiple banners for coupon,different buckles,etc.. needed. there are different templates other the one you see with place to put different size banners.

Effective Copywriter Required

Effective Copywriter Required
hello

we need some very effective and persuasive copy to be written – the piece should be not too long and too short – but it should be able to get the message and benefits across

the aim of the copy is to promote a promotion for our affiliate campaign for the month of may. at present the commission structure is:

1+ sales per month 6% of order value
11+ sales per month 8% of order value
25+ sales per month 10% of order value
51+ sales per month 15% of order value

throughout the month of may we will be adding an extra 6% to the above commissions. so affiliates can earn, 12%, 14%, 16% and up to 21%

this is to help active affiliates to push the products further and to help activate current inactive affiliates

benefits of the program (http://www.paidonresults.com/merchants/natural-elements.html)

– 365 cookie length
– no restrictions
– high commission rate – guaranteed of a reasonable payback from your efforts
– free shipping on all orders
– free gift on orders over £55

any queries please revert back – remember not looking for something too long. it needs to be concise yet will get people to take action throughout the month of may 2010

thank you

Upload Form Php Script

Upload Form Php Script
This is super easy for an experienced php programmer. I have
website that we have a webform created that needs to send
data to the database.

I have a webform that I need the information passed
over to a database.

The webform is here:
http://screencast.com/t/NjNkNmQ5NDct

And I need it hooked up to the database here:
http://screencast.com/t/NDM1MGQxM

There is also some more work to be done on this website
for the programmer.

Please only bid if you have much experience with php
development and are fast and easy to work with.

Fix Vb And WordPress Interface

Fix Vb And WordPress Interface
I need expert Visual Basic/Net not sure
A person who understand interfaces with Word Press to fix existing program.

Program makes post to WordPress but with new updates is broken.

Need person who understands new updates to Word Press and Visual Basic.

Will discuss more in PMB.

you must be familiar with this


Do not bid if you are not the programmer, also do not bid till discussing project with me.

I am no longer accepting any 3rd party bids,
this means if you are getting this project for someone else don’t waste your time, I no longer work with anyone other than the programmer

this is a straight forward project if you know what your doing

Will discuss project in PM

must be done quickly and in budget

All software created developer is to deliver all source code to me to do with it as I please. All rights to this software will be turned over to me.

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer’s environment–Deliverables must be installed by the Seller in ready-to-run condition in the Buyer’s environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered “work made for hire” under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder’s Seller Legal Agreement)

WordPress Website Fm Psd

WordPress Website Fm Psd
We need to build a WordPress CMS website from supplied layered psd file. (Need to include about 1hr training on using the cms to London based user by phone/skype etc)

All images and copy supplied, but need optimisation recommendations for keywords supplied (ie we have keywords which we need the site optimised for).

The site must be search engine friendly in structure.

(Booking engine is being built elsewhere – require integration conversation with Turkish developer)

Must be done within two weeks. Must reply before Friday!

Website Small Online Clothing

Website Small Online Clothing
We are a small clothing and equipment company focused on delivering high quality mixed martial arts products with an underground feel.

We need a simple but clean looking website with an easy to update e-store.

We have several graphics and logos. Some graphics will need to be provided by the developer.

Examples of what we are looking for http://www.ruptureclothing.com http://www.brassknuckletherapy.com and http://www.exileskimboards.com

Please provide us with links to projects similar to this that you have completed.

E-commerce Design Implementat

E-commerce Design Implementat
eCommerce store design, implementation, direct integration with eBay

Design is basic L shape: header, left nav, main content section highlighting key products. Preferred colors, a basic logo and examples to be provided.

Implementation is currently on Go Daddy, but will be moved to a more robust eCommerce solution. Prefer to use 3DCart or Volusion, but I would like your recommendations as well. Please indicate what solution you would prefer to work with.

Client would like to manage their inventory via the eCommerce solution, but allow immediate upload to eBay as well. Some eCommerce solutions have add-ons that allow for this, but an expert in eBay APIs should be able to develop one easily as well.

Looking for a 20-day turnaround.

Complete Ecommerce Page

Complete Ecommerce Page

I need a site setup like the one found here:
http://www.sunburstshades.com/Kaenon_Sunglasses_s/78.htm

Needs to have a cart, as well as shipping/payment and tax modules,
I would like to use Paypal checkout, but am open to ideas for a cheaper solution. For shipping, I’d like to have flexibility to ship via UPS/Fedex/USPS.
I am very open as to the final product, but it needs to work reliably, and look professional.
I am open to Joomla and osCommerce as well as any other ideas that would be easy for me to maintain and use on a regular basis.
I am going to need a couple professional looking logo’s designed for the business as well.

Need Content For Website

Need Content For Website
Post job on Scriptlance for literature for pages.

Looking to create keyword rich content for www.smssells.com for a total of 11 pages
• Home
o About Us
o Testimonials
• Our Technology
o In a Nutshell
o Ideas
o SMS vs Social
o FAQ’s
• Videos
• Pricing
• Contact Us

As you can see, some of the pages are going to entail some work but the rest are very simple.

I would like for it to include a separate list of keywords for each page to enter on the backend as well as a page description for search engines and finally a page title.

Please provide a sample of your most recent work.

Project to be awarded this week. Please provide a realistic time frame since we are eager to get the site up and running.

Desktop Messenger 4 Php Site

Desktop Messenger 4 Php Site
=-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-==-=
Bonjour,
Feature list of Desktop Messenger for www.aconie.com done by PHP:

It will install on desktop to chat online with other member of our site only.

1) Remember me, save password, Auto Sign in -> for LOGIN.
2) Status type: Online, Busy, Away, On the phone, Out to lunch, Be right back, Invisible to all.
3) Click on settings -> Open popup window. It contain General & Individual Settings.
a) Individual -> Language option (Chinese simplified, etc)
b) General-> Updates (Automatically Updates or manually Updates, version->latest beta, latest release).
4) News TAB -> It contains latest news & when click on that then it go to community-> Industry forum.
5) Today’s news TAB„³ If u r buyer then information about latest buying leads & If u r seller then information about latest selling leads.
8) Messages TAB -> It contain inbox message of our site.
9) Menu: My details ->
I) Edit: PROFILE
II) View details (Name, Member Id, Name, Co. Name, product/service, Yr joined, telephone, add)
III) Click on image (Name, telephone, Mobile #, email (click on email outlook express is open))
IV) ShowCase -> MEANS DISPLAY PRODUCTS (which will fetch from our database from members own gallery) or someone instantly want to show one or more product online while chatting with others.
10) Change Details: about me (Name, gender, country, province, city, dist, birth, blood type, occupation, education, hobby, intere, intro) personal, work, privacy (all, cont only, hide))
11) My status (Online, Busy, Away, On the phone, Out to lunch, Be right back, Invisible to all)
12) Send message: Receiver¡¥s member ID
13) Message history (All messages, offline message and system message)
14) Display option (New today)
15) Preference ()
16) Mobile settings (send SMS, group SMS)+
17) Video
18) Audio
19) Send file.
20) Single Login.(means if anyone login in site he should logged in the massenger & vice versa)
21) Share file.
22) No guests are allowed.
23) No group chat or room chat concept.

**All are done by using our database.

www.aconie.com