As you can do, all that you have need of to do is be specific about three CSS3 properties. Eventually, it transfer exclusively be one; you have in the offing to resort to three modern because distinguishable browsers resort to distinguishable estate names.
View the demo.
8. Multiple Backgrounds
Ah, multiple backgrounds.
I can entertain the idea of so multifarious things that demand multiple divs certainly to have in the offing more than harmonious backstage. Now this offer developers a completely intense dress. The most run-of-the-mill appropriate I can do this being hard-nosed is in a header division of the website, but that’s certainly the start object I tinge of.
Classic Way
.box { breadth: 200px; be second to the impression that: 150px; backstage: url(images/bg.png) repeat-x; } .box2 { width: 100%; height: 100%; background: url(images/text.png) center center no-repeat; } mainly minimizing
The impressive method is nice-looking unconcealed, certainly wrap the div with another div and so on in every part of each backstage you have need of. Produces toothsome looking practices, doesn’t it?
CSS3 Way
.box { breadth: 200px; be second to the impression that: 150px; backstage: url(images/text.png) center center no-repeat, url(images/bg.png) repeat-x; } mainly minimizing
The syntax is in actuality effortlessly to pick up on this harmonious.
View the demo. All you do in every part of the multiple backgrounds is reckon a comma in between each harmonious! However, at any heyday a immediately again, this is a picayune estate and is exclusively in Safari.
9. Columns
This is the most engaging CSS3 estate I’ve set up housekeeping next to. It’s not something you do a dispensation in spider’s web acquit go not on. Normally you would disconnect the make an estimate of into divs and bob those divs, but I defined up a jQuery plugin which dynamically renders the columns. Myself, I’ve exclusively seen newspaper-like columns at any heyday a immediately or twice; extent, I swain how the at bottom looks when done correctly.
Classic Way
.column { padding-right: 10px; } mainly.column.last { padding: 0; } mainly minimizing Lorem ipsum dolor be a member of amet, consectetur adipiscing elit.
Nulla elementum accumsan mi. Maecenas id dui a magna tempor pretium. Proin id tortor. Quisque id enim. Curabitur be a member of amet enim vitae quam pharetra imperdiet.
Nulla diam ante, pellentesque eu, vestibulum non, adipiscing nec, eros. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis a nunc. Nunc rutrum libero vel tortor. Donec non dui a velit pulvinar gravida. Duis sed mi eu metus tincidunt ullamcorper. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
In purus lorem, aliquam ac, congue ac, vestibulum quis, felis.
Lorem ipsum dolor be a member of amet, consectetur adipiscing elit. Aliquam non sapien. Nulla elementum accumsan mi. Maecenas id dui a magna tempor pretium.
Quisque id enim. Curabitur be a member of amet enim vitae quam pharetra imperdiet. Proin id tortor. Nulla diam ante, pellentesque eu, vestibulum non, adipiscing nec, eros. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis a nunc.
Donec non dui a velit pulvinar gravida. Duis sed mi eu metus tincidunt ullamcorper. Nunc rutrum libero vel tortor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.
In purus lorem, aliquam ac, congue ac, vestibulum quis, felis. Aliquam non sapien.
CSS3 Way
.columns { -moz-column-count: 2; -webkit-column-count: 2; } mainly minimizing Lorem ipsum dolor be a member of amet, consectetur adipiscing elit.
I’ve added a picayune padding to the columns certainly so the passage isn’t smashed up against each other. Nulla elementum accumsan mi. Maecenas id dui a magna tempor pretium. Quisque id enim. Curabitur be a member of amet enim vitae quam pharetra imperdiet. Proin id tortor. Nulla diam ante, pellentesque eu, vestibulum non, adipiscing nec, eros.
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis a nunc. Donec non dui a velit pulvinar gravida. Duis sed mi eu metus tincidunt ullamcorper. Nunc rutrum libero vel tortor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. In purus lorem, aliquam ac, congue ac, vestibulum quis, felis.
Aliquam non sapien. Nulla elementum accumsan mi.
Lorem ipsum dolor be a member of amet, consectetur adipiscing elit. Maecenas id dui a magna tempor pretium.
Quisque id enim. Proin id tortor. Nulla diam ante, pellentesque eu, vestibulum non, adipiscing nec, eros. Curabitur be a member of amet enim vitae quam pharetra imperdiet. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Duis a nunc. Donec non dui a velit pulvinar gravida.
Nunc rutrum libero vel tortor. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis sed mi eu metus tincidunt ullamcorper. In purus lorem, aliquam ac, congue ac, vestibulum quis, felis. Aliquam non sapien.
There are a instigator of other CSS3 column properties that you can look for after, but in every part of friendly purposes, I exclusively specified the bunch of columns.
View the demo.
If you’d like to learn more connected with these other properties, block not on the multi-column side at CSS3.info.
10. Border Image
I had no faintest connected with the turn duplicate estate until I upgraded to Firefox 3.5 and went to Chris Spooner’s website and proverb that his cut a wrap images had duplicate borders. I for oneself don’t have in the offing any interested in this estate, but that’s not affluent to stop off me from explaining how to appreciate it. It’s called borderImage and works certainly like it should.
Classic Way
.box { border-width: 20px; } mainly minimizing
Instead of spending the heyday creating multiple divs and repeating the backstage duplicate in every part of the div, I defined up a jQuery plugin that does the operate in every part of me.
CSS3 Way
.box { border-width: 20px; -webkit-border-image: url(images/border.png) 27 round; -moz-border-image: url(images/border.png) 27 round; border-image: url(images/border.png) 27 round; } mainly minimizing
As you can do, the turn duplicate estate is a dubiousness freakish. W3 explains how it gets contrived MUCH safer.
View the demo.
11.