
box Search is one of the most important part of any website. Here, I will show a few practical techniques for designing search forms and a few tricks to build usable and good-looking search functionality. Smashing Magazine did an excellent piece on Search Boxes which inspired me to write this post. Let’s get started! Here, with the help of three simple examples, allow me to show how to code search boxes with HTML & CSS and how to spice things up with a bit of Javascript. The example initially designed for this tutorial was too difficult for most people, so I have decided to start you off with a simple example to start off with. Example 1 Techniques that are used here are: Inner shadow with CSS3 Uses an image as the button, along with rollover effects The Markup It is a simple form wrapped in a div. The CSS A few points you should note: The height and width of the button must match the size of the image. If you are not familiar with the CSS3 box-shadow property, you might find these helpful:
Create a Grid Based Web Design in HTML5 & CSS3 Follow this step by step walkthrough of the making of a sleek website design for an eyewear brand in HTML5 and CSS3. We’ll build the HTML structure with the latest elements then style up the appearance of the site with CSS3 affects to match the original Photoshop concept with minimal use of background images. The design we’ll be coding up is for a fictional eyewear brand named OPTIK. If you’re interested in seeing how the design concept was created in Photoshop, head over to Blog.SpoonGraphics so see part one of the tutorial. Essentially the page is based on an underlying grid and features a few key focal elements to direct the user towards the various ranges of eyewear. View the Photoshop design tutorial I know I mentioned we’d build the website with minimal background images, but there’s still a few graphics that need pulling out of the Photoshop concept that just can’t be recreated in HTML or CSS (…yet!). In the original concept we saved two versions of the range graphics. <! <!
How to Make Auto-Advancing Slideshows Martin Angelov One of the most requested improvements over the tutorials presented on this site, when it comes to slideshows, is the ability to have the slides advance automatically. It is actually not that difficult to achieve this effect, and to demonstrate it, in this short tutorial we are going to make our HTML5 Slideshow auto advance with a few lines of jQuery. The Idea As our slideshow already has a previous / next arrows, we can just have a JavaScript function execute periodically and “click” the next arrow for us. $('#nextArrow').bind('click',function(){ alert("Clicked!") The snippet above will fire all the handlers for the click event and output the alert message. Combined with the setTimeout() JavaScript function we have all the tools necessary to make our slideshow transition automatically between the slides. The Implementation Bearing the above in mind, here is the complete auto advance code. autoadvance.js To Wrap Up by Martin Angelov Tutorials jQuery
Create a Stylish Contact Form with HTML5 & CSS3 Follow this step by step process to create your own stylish contact form completely out of HTML5 and CSS3. We’ll be using a couple of the handy new features in HTML5 to add cool functionality to our form, while making use of cool CSS3 properties to recreate our Photoshop concept purely in code. The design we’ll be building features all the things that make a rich interface; gradients, highlights and shadows! We’ll create a visual concept in Photoshop first of all, but when it comes to building the form we’ll recreate every effect with HTML5 and CSS3. View the HTML5/CSS3 form demo Open up Photoshop and create a new document. Use Photoshop layer styles to add a subtle drop shadow at around 30% opacity and a thin 1px stroke using a very light grey. Add a title to the design using the darker blue colour swatch. Use the same font styling on each of the labels, then draw a rounded rectangle with 5px corner radius to create an input field. The visual concept is now complete. <!
Web Developer Resources: A Mega-Compilation The Internet is constantly growing and there are hundreds of thousands of collective resources for upcoming web developers. From online articles, tutorials, tools, guides, to videos, you can learn just about anything over the Web. It has really never been easier to jump online! Below I’ve put together a huge collection of some very helpful web developer resources. These include beginner’s material for HTML5/CSS3 along with more complicated theories for JavaScript and PHP programming. It’s possible for a couple of enthusiastic developers to study these languages and build wildly popular, web applications similar to Twitter or Tumblr. Fresh Resources for Web Designers and Developers (May 2020) Fresh Resources for Web Designers and Developers (May 2020) If you're a web designer or developer and want to make the most of your spare time, take... Helpful Online Magazines The blogging world has exploded with hundreds of thousands of new writers taking to the Internet. jQuery Plugins Galore macOS
HTML5 & CSS3 – What You Should Know HTML5, in conjunction with CSS3, will be a major alteration of how web pages are built once it is fully implemented. HTML4 was originally released in 1999 after only two years of work. There have been some minor adaptations since then, but the full upgrade to HTML5 has been “in committee” since 2001. The predicted finalization date was, at one point, extended as far out as 2022. The recent conflicts over Flash and the iOS have emphasized the necessity of new standards for anyone working on mobile platforms. Although some features of the intricate system are not yet generally accepted across browser platforms, developers and designers are implementing them as quickly as it is practical. Because HTML5 is built on the HTML4 foundation, learning to use the new version will not require revising every facet of how your pages are built. The audiovisual support of HTML5 is not fully there yet, but it promises to be superior. Creating rounded corners is greatly simplified. Authored by Maria A
Thu, 06/14/2012 How to create a cool and usable CSS3 search box – Red Team Design In this new article, you'll learn how create a cool and usable CSS3 search box using the HTML5 placeholder attribute. For the browsers that don’t support this new HTML5 attribute, a fallback is created using Modernizr's feature detection. View demo Structure The form element is used as the wrapper, while the two inputs are used as search field and search button respectively. The HTML code You may notice the placeholder attribute, but just ignore it for now, as we will talk later about it. The reason why there are so many id's (instead of CSS3 advanced selectors as input[type="text"] or input[type="submit"]) is because I wanted this to degrade gracefully for older browsers. Form wrapper styles Below you can see the current result: Inputs styles Quick tip: When adding float: left to an element, there's no need to add also display: block. HTML5 placeholder attribute This new HTML5 attribute shows a text in a field as long as the field is empty and not focused, then hides the text. Browser support:
CSS3 tooltips – Red Team Design If your icon or button has insufficient text or none at all, or it just needs some additional explanation, then you surely need a CSS3 tooltip for it. Why’s that? Because, as they have proved till now, they can help you improve your website usability. Having said that, in this article you’ll learn how to create your own CSS3 tooltips: no images, no javascript. View demo “Do I really need them?” The HTML title attribute is the default additional info you can use. How it’s made The method might be familiar to you, a relative positioned element who wraps an absolute positioned one. Below you can see the proper structure, note the two pointers (made using :before and :after pseudo-elements ) who overlap: How the “bordered” pointer is made Here are the **ingredients **that were used to create them: <a href="#" class="tooltip"> your text <span>Your custom description</span></a> Why an anchor? Just for compatibility reasons. Browser support
Build a Neat HTML5 Powered Contact Form In this tutorial, we are going to learn how to create a swanky HTML5 AJAX powered contact form. The form will use some of the new HTML5 input elements and attributes, and will be validated using the browser's built-in form validation. We will use jQuery and Modernizr to help out with the older browsers, and PHP on the server side to validate the input. Step 1: Getting Started To begin, we need to setup our directory and files. To get started, I highly recommend the HTML5 boilerplate. For more information on the HTML5 boilerplate check out this guide on Nettuts+. Once downloaded and unpacked, delete everything but index.html and the css and js folders. That's all we need to get started! Step 2: The Form Open index.html, and remove everything within the #container element. This is all the HTML we will need for our form. ul#errors and p#success will be holders for our error and success messages. In HTML5, we do this by adding the 'required' attribute. Step 3: Styling the Form With this:
Creating a HTML5 & CSS3 Single Page Web Layout Creating a HTML5 & CSS3 single page template Today we will create HTML5 web template with combination with CSS3 and jQuery. Current template will contain header area (with logo and navigation menu), promo area (I will use jQuery Nivo Slider), center area with some content, bottom area (which you can use for footer links as example), and footer itself. Live Demo download in package Now, you can download package, check our prepared demo and lets start! Step 1. As usual, quite each webmaster (designer) start thinking about initial idea which he like to build. And only after – we can start thinking about initial layout of that page – HTML Step 2. I separated whole layout to few sections: header section – place, where we will put our logo, menu, promo slidercentral section – place for main content, bottom sections with some custom contentfooter section – where you will able to put some links, company name In HTML code I will use next HTML5 tags: <header>, <nav>, <section> and <footer>. index.html
Fullscreen Slideshow with HTML5 Audio and jQuery In today’s tutorial we'll create a fullscreen photo slideshow to illustrate a New York picture series. We will add sounds with the HTML5 audio element in order to give life to the gallery and try to recreate the ambient of this vibrant city. View demo Download source In today’s tutorial we’ll create a fullscreen photo slideshow to illustrate a New York picture series. We will add sounds with the HTML5 audio element in order to give life to the gallery and try to recreate the ambient of this vibrant city. To create the slideshow and the fullscreen picture display, we’ll use the Vegas jQuery plugin that compiles many ideas previously shared in Codrops articles in one plugin. The thumbnails navigation will be spiced up with a custom scrollbar using jScrollPane by Kelvin Luck and some easing effects provided by the jQuery easing plugin by George McGinley Smith. The New York photography is by Alessandro Artini, check out his photos on his Flickr photostream. The Markup Let’s set the stage!