Posts Tagged ‘css3’

Creating A Rocking CSS3 Search Field

CSS3 is the next generation style sheet language. It introduces a lot of new and exciting features like shadows, animations, transitions, border-radius etc. Although the specifications have not been finalized yet, many browser manufacturers have already started supporting many of the new features.

In this tutorial, we will explore some of these features like text-shadow, border-radius, box-shadows and transitions to create a rocking search field. The image below shows how the search filed looks like, or check out a working demo.

css search preview Creating A Rocking CSS3 Search Field

The photoshop version of this search field was created by Alvin Thong and can be downloaded from here. I have tried to recreate this search field using pure CSS3. It is to be noted that not all browsers support CSS3 features and to trying out this tutorial, you should use one of the modern browsers that support CSS 3 features.

Ready? Let’s get started!

1. HTML5 Doctype

We’ll start with the HTML markup. It is very simple, after the <!DOCTYPE html> HTML5 doctype and the <head> declaration, we have a <section> with an ID called #wrapper inside <body>. This is done simply to define the width of the content box and to align it to the centre of the page.

This is followed by a <div> with an ID called #main. This ID contains the styles that define the big white box around the input field and the search button. This <div> has a <form> declared inside it. The form has the text input field and the search button. Here is how the form looks like without any styles applied to it:

without css Creating A Rocking CSS3 Search Field

Here’s how the code looks like:

<!DOCTYPE html>
<html>
<head>
	<title>CSS3 Search Field</title>
</head>
<body>
	<section id="wrapper">
		<h1>CSS3 Search Field</h1>
		<div id="main">
			<form>
				<input type="text" id="search">
				<input type="submit" class="solid" value="Search">
			</form>
		</div><!--main-->
	</section><!--wrapper-->
</body>
</html>

2. Creating the bounding box

To create the big box around the form, we will add styles to the <div> with the ID of #main. From the code shown below, you will notice that the box has been given a width of 400px and a height of 50px.

#main {
	width: 400px;
	height: 50px;
	background: #f2f2f2;
	padding: 6px 10px;
	border: 1px solid #b5b5b5;

	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
	border-radius: 5px;
	-moz-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.8), inset 0 2px 2px rgba(255, 255, 255, 1), 0 5px 0 #ccc, 0 6px 0 #989898, 0 13px 0 #dfdede;
	-webkit-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.8), inset 0 2px 2px rgba(255, 255, 255, 1), 0 5px 0 #ccc, 0 6px 0 #989898, 0 13px 0 #dfdede;
	box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.8), inset 0 2px 2px rgba(255, 255, 255, 1), 0 5px 0 #ccc, 0 6px 0 #989898, 0 13px 0 #dfdede;
}

The important piece of code here is the border-radius declaration and the box-shadow declaration. For creating rounded corners, we have used the CSS3 border-radius declaration, "-moz-" and "-webkit-" browser prefixes have been used to ensure that this works in gecko and webkit based browsers. The box shadow declarations might look a bit confusing but it is actually very simple.

box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.8), inset 0 2px 2px rgba(255, 255, 255, 1), 0 5px 0 #ccc, 0 6px 0 #989898, 0 13px 0 #dfdede;

Explanation: Here, the keyword inset specifies if the shadow will be inside the box. The first two zero’s indicate the x-offset and the y-offset and the 3px indicates the blur. Next is the color declaration. I have used rgba values here; rgba stands for red green blue and alpha (opacity). Thus the 4 values inside the parenthesis indicate the amount of red, green, blue and its alpha (opacity). You will notice that 5 sets of shadow declarations have been clubbed together. This can be done by separating them with a comma. The first two shadows define the white "inner glow" effect and the next there declarations gives the box its solid/chunky look.

Play around with these values to understand how it works.

search box Creating A Rocking CSS3 Search Field
(Preview)

 

3. Styling the input field

Now that the box is complete, lets move on to styling the input field.

input[type="text"] {
	float: left;
	width: 230px;
	padding: 15px 5px 5px 5px;
	margin-top: 5px;
	margin-left: 3px;
	border: 1px solid #999999; 

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

	-moz-box-shadow: inset 0 5px 0 #ccc, inset 0 6px 0 #989898, inset 0 13px 0 #dfdede;
	-webkit-box-shadow: inset 0 5px 0 #ccc, inset 0 6px 0 #989898, inset 0 13px 0 #dfdede;
	box-shadow: inset 0 5px 0 #ccc, inset 0 6px 0 #989898, inset 0 13px 0 #dfdede;
}

The styles declared for the input field are pretty similar to those decared for the big box #main. We have used the same border radius (5px). Again, multiple box-shadows have been clubbed.

box-shadow: inset 0 5px 0 #ccc, inset 0 6px 0 #989898, inset 0 13px 0 #dfdede;

Explanation: You will notice that this time, the shadow blur has been kept at 0 to obtain a sharp shadow and a vertical offset of 5px is used. In the successive declarations, the blur has been kept at 0px but the color and the y-offset have been changed. Again, play around with these values to obtain different results.

with search box Creating A Rocking CSS3 Search Field
(Preview)

4. Styling the submit button

Let’s style the search button.

input[type="submit"].solid {
	float: left;
	cursor: pointer;
	width: 130px;
	padding: 8px 6px;
	margin-left: 20px;
	background-color: #f8b838;
	color: rgba(134, 79, 11, 0.8);
	text-transform: uppercase;
	font-weight: bold;
	border: 1px solid #99631d; 

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

	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7), 0 -1px 0 rgba(64, 38, 5, 0.9);  

	-moz-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 5px 0 #b8882a, 0 6px 0 #593a11, 0 13px 0 #ccc;
	-webkit-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 5px 0 #b8882a, 0 6px 0 #593a11, 0 13px 0 #ccc;
	box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 5px 0 #b8882a, 0 6px 0 #593a11, 0 13px 0 #ccc;
	-webkit-transition: background 0.2s ease-out;
}

Apart from the colors, the search button has mostly the same styles as that of the outer box. Similar border-radius and box-shadows have been used on the button. The new feature introduced is the text-shadow.

text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7), 0 -1px 0 rgba(64, 38, 5, 0.9);

Explanation: In the text-shadow declaration, the first three numeric values are the x-offset, y-offset and the blur respectively. The rgba values indicate the shadow color. In the next set of declaration (separated by a comma), the y-offset is given a value of -1. This is done to give the text an “inner shadow” effect.
The hover/focus state of the submit button has different values of background color and shadows.

with search button Creating A Rocking CSS3 Search Field
(Preview)

"Active" state for button

The active state of the button has a bit more changes. In this, I have given the button a position of absolute and a ‘top’ value of 5px. This has been done to give it a more natural look, such that it feel that the button has actually been pushed down by 5 pixels. Other changes to the active state are that of background-color and shadows. Notice that I have reduced the y-offset of the shadows to give it a ‘pressed-down’ look. Here is the code for the active state of the submit button:

input[type="submit"].solid:active {
	background: #f6a000;
	position: relative;
	top: 5px;
	border: 1px solid #702d00; 

	-moz-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 3px 0 #b8882a, 0 4px 0 #593a11, 0 8px 0 #ccc;
	-webkit-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 3px 0 #b8882a, 0 4px 0 #593a11, 0 8px 0 #ccc;
	box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 3px 0 #b8882a, 0 4px 0 #593a11, 0 8px 0 #ccc;
}

The Complete (CSS) Code

This completes our search field. We have used quite a few of the new CSS3 features. Here is the complete CSS and HTML of this search field.

#main {
	width: 400px;
	height: 50px;
	background: #f2f2f2;
	padding: 6px 10px;
	border: 1px solid #b5b5b5; 

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

	-moz-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.8), inset 0 2px 2px rgba(255, 255, 255, 1), 0 5px 0 #ccc, 0 6px 0 #989898, 0 13px 0 #dfdede;
	-webkit-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.8), inset 0 2px 2px rgba(255, 255, 255, 1), 0 5px 0 #ccc, 0 6px 0 #989898, 0 13px 0 #dfdede;
	box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.8), inset 0 2px 2px rgba(255, 255, 255, 1), 0 5px 0 #ccc, 0 6px 0 #989898, 0 13px 0 #dfdede;
} 

input[type="text"] {
	float: left;
	width: 230px;
	padding: 15px 5px 5px 5px;
	margin-top: 5px;
	margin-left: 3px;
	border: 1px solid #999999; 

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

	-moz-box-shadow: inset 0 5px 0 #ccc, inset 0 6px 0 #989898, inset 0 13px 0 #dfdede;
	-webkit-box-shadow: inset 0 5px 0 #ccc, inset 0 6px 0 #989898, inset 0 13px 0 #dfdede;
	box-shadow: inset 0 5px 0 #ccc, inset 0 6px 0 #989898, inset 0 13px 0 #dfdede;
} 

input[type="submit"].solid {
	float: left;
	cursor: pointer;
	width: 130px;
	padding: 8px 6px;
	margin-left: 20px;
	background-color: #f8b838;
	color: rgba(134, 79, 11, 0.8);
	text-transform: uppercase;
	font-weight: bold;
	border: 1px solid #99631d; 

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

	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7), 0 -1px 0 rgba(64, 38, 5, 0.9);  

	-moz-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 5px 0 #b8882a, 0 6px 0 #593a11, 0 13px 0 #ccc;
	-webkit-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 5px 0 #b8882a, 0 6px 0 #593a11, 0 13px 0 #ccc;
	box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 5px 0 #b8882a, 0 6px 0 #593a11, 0 13px 0 #ccc; 

	-webkit-transition: background 0.2s ease-out;
} 

input[type="submit"].solid:hover, input[type="submit"].solid:focus {
	background: #ffd842; 

	-moz-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.9), inset 0 2px 1px rgba(255, 250, 76, 0.8), 0 5px 0 #d8a031, 0 6px 0 #593a11, 0 13px 0 #ccc;
	-webkit-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.9), inset 0 2px 1px rgba(255, 250, 76, 0.8), 0 5px 0 #d8a031, 0 6px 0 #593a11, 0 13px 0 #ccc;
	box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.9), inset 0 2px 1px rgba(255, 250, 76, 0.8), 0 5px 0 #d8a031, 0 6px 0 #593a11, 0 13px 0 #ccc;
} 

input[type="submit"].solid:active {
	background: #f6a000;
	position: relative;
	top: 5px;
	border: 1px solid #702d00; 

	-moz-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 3px 0 #b8882a, 0 4px 0 #593a11, 0 8px 0 #ccc;
	-webkit-box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 3px 0 #b8882a, 0 4px 0 #593a11, 0 8px 0 #ccc;
	box-shadow: inset 0 0 3px rgba(255, 255, 255, 0.6), inset 0 1px 2px rgba(255, 255, 255, 0.7), 0 3px 0 #b8882a, 0 4px 0 #593a11, 0 8px 0 #ccc;
}

Demo and Download

If you are lost at any point or couldn’t follow up with the tutorial, no worries, we’ve got the tutorial zipped in a single file. Download it to your desktop and it’ll work just fine.

Hope you enjoyed this tutorial. Feel free to experiment with these features and don’t forget to share your thoughts.

Beginner’s Guide to CSS3

Ever since the announcement of in 2005, the development of the level 3 of Cascading Style Sheet or better known as CSS3 has been closely watched and monitored by many designers and developers. All of us excited to get our hands on the new features of CSS3 – the text shadows, borders with images, opacity, multiple backgrounds, etc, just to name a few.

css 3 guide Beginners Guide to CSS3

As of today, not all selectors of CSS3 are fully supported yet. But that doesn’t mean we can’t have some fun testing new CSS3 stuff. This post is dedicated to all designers and developers who are already familiar with CSS 2.1 and want to get your hands dirty on CSS3.0.

It’s a compilation of useful CSS3 reads, sample codes, tips, tutorials, cheat-sheets and more. Feel free to use them in your projects, just make sure it falls gracefully on incompatible browsers.

Getting Started with CSS3

Introduction to CSS3
An (roadmap) official introduction to CSS and CSS3. This document gives you an overall idea on the development of CSS3.

css3 roadmap Beginners Guide to CSS3

CSS3: Take design to next level
Advantages of CSS3, with explanations and examples of CSS3 properties and selectors.

next level Beginners Guide to CSS3

Several tricks with CSS3
Webmonkey brings you through several basic tricks in CSS3, including rounded borders, borders, drop shadows, image tricks and more.

Several tricks with CSS3 Beginners Guide to CSS3

Interview: Six questions with Eric Meyer on CSS3
Folks at Six Revision interviewed Eric Meyer with valuable insights and answers on CSS3.

eric meyer Beginners Guide to CSS3

CSS3: Progressive Enhancement
How you can use graceful (or, progressive) enhancement techniques to make use of CSS3 features in browsers that support them, while ensuring that your code will still provide a satisfactory user experience in older browsers that do not yet support those features.

css3 progressive enhancement Beginners Guide to CSS3

CSS3: Background and Borders

Rounded borders (border-radius)
A guide to creating rounded border with CSS3′s border-radius property.

css rounded borders Beginners Guide to CSS3

Rounded borders with image (border-images)
How to use images in borders with border-image property.

css image border Beginners Guide to CSS3

CSS3 borders, backgrounds and boxes
Detail explanation with examples of new CSS3 properties like: background-clip, background-origin, background-attachment, box-shadow, box-decoration-break, border-radius and border-image.

CSS3 borders backgrounds and boxes Beginners Guide to CSS3

CSS3: Text

Letterpress Effect
Create simple letterpress effect with CSS3.

letterpress effect Beginners Guide to CSS3

Six text effects using text shadow
Text effects include: vintage/retro, neon, inset, anaglyphic, fire and board game.

css text effect Beginners Guide to CSS3

Text emboss
How to correctly add an embossed effect to any text depending on the colors used.

text emboss Beginners Guide to CSS3

Beautiful typography
How to take basic markup and transform it into an attractive and beautiful typographical design through pure CSS3.

Beautiful typography Beginners Guide to CSS3

Text Rotation
Uses an image sprite and a sprinkle of CSS to get things positioned right.

text rotation Beginners Guide to CSS3

Outline Text
How to add an outline, or stroke, to your text using the CSS3 text-stroke property.

text outline Beginners Guide to CSS3

Text masking effect
Interactive text masking effect using the text-shadow CSS property.

text shadow Beginners Guide to CSS3

Link nudging (animation) with CSS3
Ditch Javascript and create nudge effect entirely with CSS3.

text nudge Beginners Guide to CSS3

CSS Selection Styling
Change text selection styling with CSS3.

text highlight Beginners Guide to CSS3

CSS3: Menu

Multiple-columns content
Using CSS3 to create a set of columns on your website without having to assign individual layers and (or) paragraphs for each column.

multiple columns Beginners Guide to CSS3

Sexy Tooltips with Just CSS
How to use the evolving CSS standard can enhance some lovely cross-browser tooltips.

Sexy Tooltips Beginners Guide to CSS3

More tooltips:

CSS3 & jQuery Drop-Down Menu With Integrated Forms
jQuery and CSS3 powered navigation menu that supports integrated forms.

CSS3 & jQuery Drop Down Menu Beginners Guide to CSS3

Dropdown menu
How to create a Apple.com alike multi-level dropdown menu using border-radius, box-shadow, and text-shadow.

dropdown menu Beginners Guide to CSS3

CSS3-Only Tabbed Area
Click on a tab, hide all the panels, show the one corresponding to tab just clicked on – all with CSS.

CSS3 Only Tabbed Area Beginners Guide to CSS3

3D Ribbons with CSS3
Create nice looking 3D ribbons with only CSS3.

3d ribbons Beginners Guide to CSS3

CSS3: Drop shadow

Drop shadow in image
Showcase several techniques and some of the possible appearances for dropping shadows without using images.

Drop shadow in image Beginners Guide to CSS3

Glow Tabs with Box Shadow
How to create intuitive and beautiful tabs in CSS3 with no image.

Glow Tabs with Box Shadow Beginners Guide to CSS3

CSS3 boxes without using images
15 different styles of boxes without using images. Works in Chrome and Safari.

CSS3 boxes without using images Beginners Guide to CSS3

CSS3: Buttons

Tutorial: Pretty buttons
How to create beautiful cross-browser compliant CSS3 buttons that degrade gracefully.

pretty css3 buttons Beginners Guide to CSS3

Tutorial: Dynamic buttons
How to create nice looking, dynamic buttons that are fully scaleable using the new CSS3 properties border-radius, box-shadow and RGBa.

dynamic css3 button Beginners Guide to CSS3

Speech Bubbles
Various forms of speech bubble effect created with CSS 2.1 and enhanced with CSS3.

speech bubble Beginners Guide to CSS3

BonBon buttons
CSS buttons that are sexy looking, really flexible, but with the most minimalistic markup as possible.

BonBon buttons Beginners Guide to CSS3

Github alike buttons
Collection of buttons that show what is possible using CSS3 while also maintaining the simplest possible markup.

Github alike buttons Beginners Guide to CSS3

Spinning, Fading Icons with CSS3 and MooTools
How to use CSS3 and MooTools to create dymanic, rotating elements.

Spinning, Fading Icons Beginners Guide to CSS3

CSS3: transparency and overlay

Opacity and transparency
Create image transparency with CSS3.

css3 opacity Beginners Guide to CSS3

Image overlay
Practical application of the CSS3 border-image property.

CACTC3 awesome overlays Beginners Guide to CSS3

More

Cheatsheets & References

CSS3 Cheat Sheet (PDF)
Printable cheatsheat with complete list of all properties, selector types and allows values in the current CSS3 specification from the W3C.

CACTC12 css 3 cheat sheet pdf Beginners Guide to CSS3

CSS Support in Opera 9.5
Complete list of the supported CSS selectors in Opera 0.5.

opera 95 css Beginners Guide to CSS3

Fonts Available for @font-face Embedding
Comprehensive list of fonts currently licensed for @font-face embedding.

font face Beginners Guide to CSS3

CSS 3 Selectors – Explained
A guide and reference to CSS3 selectors and its patterns.

css3 selectors Beginners Guide to CSS3

Cross-browser CSS3 Rule Generator
CSS3 rules you can copy and paste onto your own stylesheet.

CSS3 Click Chart
Get CSS3 styles like boz sizing, border radious, text shadow, and more within a click.

click chart Beginners Guide to CSS3

CSS Content & Browser Compatibility
Complete list of selector tables of both CSS and CSS3 with declaration for browser-compatibility check.

content browser compatibility Beginners Guide to CSS3

(bellefoong)

Alert Box Photoshop Tutorial :: UI Series


Today we are continuing our new series of User Interface Design. With the vastly rising popularity of mobile apps and mobile web design User Interface Design is now a huge area for Designers to become proficient in. In this quick tutorial I will be walking you through the process of creating a few simple form elements in Photoshop.

As always this is what we will be creating:

Resources

Pixel Patterns V2 by Rich Hemsley

50 Free Menu Android Icons by AndroidIcons

Cabin Font by Google Fonts

Gettings Started

Start out by creating a new document 600px by 600px, and fill it with #ffffed.

Now grab your rounded rectangle tool and choose 10px for your radius. Change your foreground color to #f5a0a0. Now drag out a rectangle that is 510px by 80px. For now go ahead and center the rectangle on the document.

Now, make sure you load the Pixel Patterns V2 that we downloaded in our resources earlier. Open your layer styles for your rounded rectangle and apply the following three layer styles.

The pattern I am using is Pixel 15

You should have a nice looking rounded rectangle that will be the background for your message box. As you can tell by color the first alert box we will be making is an error box.

The Icon

Alright, now open up the Android Icons freebie that we downloaded earlier. You can choose whichever icon that you want, but make sure to resize it to 42px tall. Drag it over to your document and space it 20px from the left and center it vertically on your alert box.

Go ahead now and set your layer style to Luminosity. This will give your default style an letterpress style look.

The icon I used was the stop icon resized to 42px.

The Typography

Alright, now choose your favorite font, <sarcasm>or a font that would look good if your favorite font is something incredibly weird that only works in one document </sarcasm>

Change your foreground color to #b56060. Type out your information into the text box. Depending on the size of information you want in there will depend on the font size. Since I am using dummy text, and I don’t put a lot in my alert boxes, my font size is going to be 30pt. Center your text vertically on your icon and space it 20px from the right of your icon.

And there you have it. Our first box is finished. To create the other two boxes you will just duplicate your layers, change the background color of the box, your inner glow, and your stroke, and then your icon. You can find the colors and icons we used below.

Yellow

Background: #f5f2a0

Inner GLow: #faf560

Stroke: #c9c431

Icons: light (resized to 42px tall)

Green

Background: #a0f5c0

Inner Glow: #69f999

Stroke: #08b248

Icons: tick (resized to 42px tall)

The Tooltip

Now let’s go ahead and create our tooltip style alert box. We will be using the same color scheme, same colors, and same layer styles as our larger alert boxes, but we will be changing the shape and icon size.

To get started grab your rounded rectangle tool again and keep the radius at 10px. Set your foreground color to #f5a0a0, just as before, and draw out a rectangle that is 175px by 100px.

Alright, time to add our bottom piece. To do this grab your Custom Shapes tool and make sure you have them set to symbols. Choose the rounded triangle tool (Sign 3). Keep your foreground color the same and draw out a triangle that is 30px by 15px. Set up your rectangle to come just at the bottom of your rounded rectangle, and horizantally centered.

Alright, now rasterize both layers. We are doing this because we need just one shape for our Layer Styles. To make one shape you can right click your triangle shape and choose Merge Down, or you can select both shapes and choose Merge Layers.

Now, go back to your first alert box and copy the layer styles. To do this right click your box background layer and choose copy layer styles. Now go to the rectangle we just designed and choose Paste Layer Styles.

Please note that this may not work with your version of Photoshop. If it does not you will have to manually apply the layer styles.

Alright, now grab your type tool again and make a text selection that is 155px by 55px. Use the same font, change the size to 23pt, and type out whatever text you want to use. center it horizantally and vertically on your rounded rectangle.

Now, grab the same icon you used for the first alert box, or a different one if you want to, and re-size it to 30px tall. Drag over the icon and place is on the bottom right corner 10px from the bottom and 10px from the right side.

Alright, now we are done with that box as well. You can create the other two boxes using the same layer styles from the other two boxes. Just copy and paste the layer styles.

Conclusion

Our document is finished! You can add a nice input box to see how it will look as well if you wanted to. These input boxes are pretty simple to design, good looking, and easy to turn into CSS3 and HTML5 forms *hint hint*.

Be sure to check it out on Dribbble!

Simple jQuery/CSS3 Modal Box


Seeing as how my last tutorial about the “jQuery slide effect” had a great response I thought I’d be back to write another simple easy-to-follow jQuery tutorial for you guys.

What we’ll be making today is a jQuery modal box which can be used can used for all sorts including images, forms and in my case, my blogging profile. Read the rest of this entry »

Resources – HTML5 & CSS3 Tips, Tutorials and Tools

The two big changes in web development recently and the thing everyone’s talking about are the latest versions of HTML 5 and CSS 3. To stay ahead of the crowd learning these technologies is not only a natural step but essential. HTML 5 is the main reason Steve Jobs doesn’t allow flash it is 100 % open to all and doesn’t conflict with apple devices.

HTML5 and CSS3 allow a lot more new features including video and media capabilities . Animation and Transformation quick and simple and require no plugins.
(Here is a large list of new features)

The following is a cursory list of differences and some specific examples.

  • New parsing rules: oriented towards flexible parsing and compatibility; not based on SGML
  • Ability to use inline SVG and MathML in text/html
  • New elements: article, aside, audio, bdi, canvas, command, datalist, details, embed, figcaption, figure, footer, header, hgroup, keygen, mark, meter, nav, output, progress, rp, rt, ruby, section, source, summary, time, video, wbr
  • New types of form controls: dates and times, email, url, search, color[31]
  • New attributes: charset (on meta), async (on script)
  • Global attributes (that can be applied for every element): id, tabindex, hidden, data-* (custom data attributes)
  • Deprecated elements will be dropped altogether: acronym, applet, basefont, big, center, dir, font, frame, frameset, isindex, noframes, strike, tt, u

dev.w3.org provides the latest Editors Draft of HTML5 differences from HTML4,which provides a complete outline of additions, removals and changes between HTML5.

So today we bring you a raft of HTML5 and CSS 3 goodies - templates and frameworks. There should be plenty of demos and examples for you to get a good grasp on the subject. Here I did my best to give the most useful resources however if you feel we missed some things please comment below.

 

 

Articles

 

 

Tools & Templates

HTML 5 Visual Cheat Sheet is an useful cheat sheet for web designers and developers designed by me. This cheat sheet is essentially a simple visual grid with a list of all HTML tags and of their related attributes supported by HTML versions 4.01 and/or 5.

 


Displays web browser support on HTML5 and CSS3.


A showcase of sites using HTML5 markup


A pure-JavaScript CSS selector engine designed to be easily dropped in to a host library.


Font Dragr is a HTML5/CSS3 powered web app for testing custom web fonts. The app allows you to drag and drop your truetype (ttf), opentype (otf), scalable vector graphics (svg) or Web Open Font Format (WOFF) fonts into the webpage for an instant preview of how the font will be rendered in the browser, you can even edit the example text.


We have another great addition to add today coming in the way of a simple template that showcases a few more HTML 5 references, including HTML 5 mouse over effects, HTML 5 text shadows and more.

 

Tutorials


Code a Backwards Compatible, One Page Portfolio with HTML5 and CSS3


ZooCroo HTML5 and CSS3 Template with Animation.


Create a pixel perfect subscription box using CSS3


Have a Field Day with HTML5 Forms.


Coding a CSS3 & HTML5 One-Page Website Template


Design & Code a Cool iPhone App Website in HTML5

 

 

HTML5 & CSS3 Books

 

 

About the Author

Ben Rama is a Graphic Designer, CG Artist & Cinematographer from London. He is the founder & director at Digital Empire with many years of experience in Graphic Design, Film & TV within London.