CSS is very straight and simple language for web design. Using this designer and developer can make layouts, web forms and visual effects. In this article we are presenting 50+ useful CSS layouts, coding techniques, web forms, jquery, coding tips n tricks and techniques. And you will also gel help regarding problems which you are facing now or may be in future you get this kind of problems. I hope this article will be very helpful for designers and developers.
Here is a look at how to style a beautiful HTML5 form using some advanced CSS and the latest CSS3 techniques. You will definitely want to re-style your forms after having read this article.
We've been filling out Web forms for years, and we all gripe that they could be better. Even with generous padding, the fields are too small. But hardly anyone has improved the most under-rated interaction of them all: checkboxes and radio buttons.
FancyForm is a powerful and flexible checkbox-replacement script that changes the appearance and function of HTML form elements. It is accessible and easy to use, and it degrades gracefully on older non-supported browsers.
In fluid layouts, formatting text to adjust smoothly to window size is easy, but images are not as fluid-friendly. This quick tip shows how to switch between two image sizes based on the size of the browser, the DIV or whatever else you choose.
A clean layout on one page literally (just one index.html
file with optional images). It comes with contact information in microformats and a main area for the resume using a definition list (
). And it prints well.
Chris Wetherell posts on Pegs, a strategy for having one scroll bar but independent scrolling areas. After the first one, click on the other items to flip between sizes.
A common problem among designers is how to get a div to stretch 100% of the window's height. There are a few different techniques out there, and this tutorial shows one of them.
A clean, simple a nice navigation menu, designed by Nick La.CSS Trick for a Scrolling Transparent Background Effect
Scroll the page to watch a battle between good and evil take shape. The effect requires two images: one transparent and one tiled gradient image. The gradient scrolls under the transparent PNG. Because it matches the colors in the PNG, each set of images disappears, depending on the part of the gradient they're on top of.
By default, an image element that is 500 pixels doesn't exactly play nice with a container as large as 800 pixels or one as small as 100. What's a designer to do?
CSS can be tricky business. Creating columns of equal height, where the content in one column is longer than the content in another, is frustrating. Here's where the faux-column technique can help. Find out how this solution makes even the most complicated layout a breeze to code.
Here is a script to match the heights of boxes in the same container and create a tidy grid, with little overhead.
There were ways to center-align left-floated elements, but then
became popular and everything changed. After a bit of tinkering, Zaharenia Atzitzikaki found an efficient and (mostly) cross-browser-compatible way to center elements without floats.
A collection of six jQuery plug-ins to manage page layouts easily.
This article discusses ways to create equal-height columns that work in all major browsers (including IE6). All of the methods show how to create a three-column layout.
A tutorial with various CSS examples for how to create a large background using either a single image or double images.
A Nice Little CSS Positioning Technique
Here, we have a basic unordered list (
), with left-floated images where the text doesn't wrap under the images. Of course, this technique could be deployed in loads of other instances.
This technique allows an image to fill the page, with no white space. The image scales as needed and retains its proportions, without triggering scroll bars.
Smart Columns With CSS and jQuery
In observing liquid-width websites, Soh Tanaka sees two common techniques for displaying columns: fixed columns and liquid columns. He points out the drawbacks of both and pitches his solution.
Create an Apple-like slideshow gallery, similar to the one used on Apple's website to showcase products. It works entirely in the front end; no PHP or databases required.
RomÃ¡n Cortes is having a lot of fun doing CSS tricks these days. He just built a rolling coke can that uses
and a few other tricks to achieve the effect. No fancy CSS3 needed here!
Grayscale Hover Effect With CSS and jQuery
A few months ago, James Padolsey introduced a cool grayscale technique for non-IE browsers. His technique inspired Soh Tanaka to come up with a workaround with a similar effect. His solution relies on CSS Sprites and a few lines of jQuery, but it requires a bit of preparation before implementation. It is not recommended for large-scale projects; it is probably best for portfolio pieces.
This article summarizes three fast and easy CSS techniques for displaying only a portion of an image. All of the techniques need only a couple of lines of CSS. You are not literally cropping, which is why it's called faux image cropping. These techniques can be helpful if you want to keep images to a certain size (for example, thumbnails in a news section). Being able to use CSS to control which portion of an image to display is great.
With CSS, the border of any block-level element is factored into the element's size in the layout. So, if you add a border to an element on hover, the layout will shift. In this post, you will find how to use the regular border property and create inner borders to get around that.
This tutorial shows you how to create never ending horizontal stripes in your web design using CSS.
Put nine different techniques of image replacement to the test.
This tutorial teaches you how to re-create the bokeh effect with CSS 3. With some help from jQuery, we can add some randomness in colour, size and position for the effect.
Here is an interesting effect that modifies the logo when the page is scrolled, using the CSS
To achieve the effect in the image above, first we need a DIV with the silhouettes as a background image. Then we put four images in that DIV, all the exact same size, with each band member highlighted. These images are hidden by default. Then you absolutely position four regions on top of the DIV; these are the roll-over link areas. With jQuery, we apply hover events to them, fading in the appropriate image.
Few people realize that a browser draws borders at angles. This technique takes advantage of that. One side of the border is given the color of the arrow, and the rest are transparent. Then you give the border a large width; the ones above are 20 pixels.
Time for some fun with CSS and optical illusions.
The idea here is not only to offer data visualization to people who aren't comfortable using scripting languages, but to demonstrate the power of CSS and offer a different way of using CSS. If you are not a fan of line graphs and data visualization, you may still benefit from this article. Think of it as a CSS experiment, and learn a thing or two about CSS Sprites and positioning.
This post is about text zooming with jQuery and CSS. This is a basic-level tutorial about changing a style using a jQuery script. A simple way to zoom website content.
This tutorial teaches you how to control thumbnail sizes. Sometimes we don't have enough space to fit large thumbnails, and yet we would rather avoid small indecipherable images. Using this trick, we can limit the default dimensions of thumbnails and show them at full size when the user mouses over them.
Most methods of adding drop-shadows to content blocks require additional HTML mark-up and one or more PNG images. But by combining the Glow and Shadow filters, something that fairly closely resembles the rendered CSS3 shadow can be achieved.
One of the things you have to deal with when your blog grows is having to cram more info into less space to show everything you want to show. One thing you can do is add an icon for the date and then a bubble over it with the number of comments for that post.
This is a little trick to enhance the user experience of forms. It displays editable form data as readable tabular data.
This shows you how to create a Twitter-style drop-down log-in form using jQuery. It's really easy, it saves space on the page and visitors feel comfortable with the awesome toggle form.
When printing a Web page with
elements on it, the select drop-down prints just as it looks on the Web. This of course is practically useless on the printed page. One option for handling this is to follow every
HTML element with an unordered list that duplicates the content. Hide the unordered list in your main CSS file and reveal it with your print style sheet. This is a reasonable approach, except that it's a big ol' pain in the butt to deal with all the time. Let's rely on jQuery to do the heavy lifting instead.
events and a little CSS.
This tutorial illustrates how to design a pure CSS form without using HTML tables.
This is the second CSSG collection from CSS Globe.
A lightweight custom-styled checkbox implementation for jQuery 1.2.x and 1.3.x.
The form above on the left makes use of the
attribute, but the default browser settings for
inputs don't contrast as much as one would like. To better distinguish at a glance between which inputs are disabled and enabled, the labels of disabled inputs in the form on the right are styled with a faint gray color.
Creating a fluid search box when you have only a single element next to it is trivial. What you should do is wrap the input in an element and use padding to create space for the fixed element; then position the fixed element absolutely (or relatively) in the space created by the padding.
A whole new pong game using three browser windows for the ball and racquets. Clever!
Facebook Style Footer Admin Panel
Learn how to re-create the Facebook footer admin panel with CSS and jQuery. Also check out
This tutorial explains how to manually change a layout, and it shows two great examples and "how they did it."
A quick and simple way to enable users to switch page layouts using CSS and jQuery.
There are a few different ways to vertically center objects using CSS, but choosing the right one can be difficult. Here is a list of the best ways and an explanation of how to create a nice centered website.
Other than the "Turn off the lights" feature, YouTube has great stuff, such as the "change view" feature, which allows you to switch between normal and wide mode, thus expanding or shrinking the video area. Creating this is very simple.
If websites were made of wood, the grain would run up and down. Vertical is the natural flow of the Web. But browsers are equipped with vertical and
horizontal scroll bars, right? We have the choice to go against the grain and create web pages that scroll primarily horizontally and that even expand horizontally to accommodate more content. Perhaps a slight blow to usability, but a cool creative touch nonetheless!
is non-existent in the CSS world. After you've pondered and Googled it, check out the solution here.