Professional Documents
Culture Documents
Advertise Here
Tutorial Details
Difficulty: Beginner Topic: CSS, HTML Estimated completion time: 30 mins This entry is part 10 of 10 in the Bringing Premium Pixels to Life Session - Show All Previous Hey guys, today well be creating Premium Pixels Tagtastic Tag Cloud. As an experiment in alternative approaches, well create the tags using gradients, shadows and (most importantly) CSS transforms, which will form the point of each tag. After completion well even take a step further and cater for IE. Weve covered tags before on Webdesigntuts+, but on this occasion were going to examine an alternative method of creating all the composite bits and pieces. There may be sharper ways of creating the effect, but our example will refrain from images, use very clean markup and some unusual styling. Lets get stuck in!
webdesign.tutsplus.com/tutorials/htmlcss-tutorials/tagtastic-tag-cloud-with-css-transformations/
4/29/12
0 3 0 4 0 5 0 6 0 7 0 8 0 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8
<ed ha> <-Mt tg-> !-ea as<eacast"t-" mt hre=uf8> <-Tte!-il-> <il>/il> tte<tte <-Syehes!-tlset-> <ikrl"tlset he=cssye.s" ln e=syehe" rf"s/tlscs> <ha> /ed <oy bd> <bd> /oy <hm> /tl
hm,oydvsa,pltojc,faeh,2h,4h,6pbokut,r,,b tlbd,i,pnape,betirm,1h,3h,5h,,lcqoepeaab bd { oy fn-aiy'evtc Nu' Hleia Ail sn-ei; otfml:Hleia ee, evtc, ra, assrf fn-ie1p; otsz:6x bcgon:r(.iae/gjg rpa; akrudul./mgsb.p) eet -ektfn-mohn:ataisd wbi-otsotig nilae; } .rpe { wapr mxwdh30x a-it:4p; mri:0xat; agn5p uo }
4/29/12
2 8
bcgon-mg:-ektlna-rdettp rb24 28 13,rb akrudiae wbi-iergain(o, g(5, 1, 1) g bcgon-mg:-o-iergain(o,rb24 28 13,rb24 akrudiae mzlna-rdettp g(5, 1, 1) g(5 bcgon-mg:--iergain(o,rb24 28 13,rb24 akrudiae olna-rdettp g(5, 1, 1) g(5, bcgon-mg:-slna-rdettp rb24 28 13,rb24 akrudiae m-iergain(o, g(5, 1, 1) g(5 bcgon-mg:lna-rdettp rb24 28 13,rb24 16 akrudiae iergain(o, g(5, 1, 1) g(5, 8 fle:poi:XmgTasomMcootgain(rdetye0Satoo itr rgdDIaernfr.irsf.rdetGainTp=,trCl -ektbxsao: wbi-o-hdw
3/9
webdesign.tutsplus.com/tutorials/htmlcss-tutorials/tagtastic-tag-cloud-with-css-transformations/
4/29/12
4 6 4 7 4 8 4 9 5 0 5 1 5 2 5 3 5 4 5 5 5 6
ist01x0#aaa ne p feb, 01x1xrb(,,,1; p p ga000.) -o-o-hdw mzbxsao: ist01x0#aaa ne p feb, 01x1xrb(,,,1; p p ga000.) bxsao: o-hdw ist01x0#aaa ne p feb, 01x1xrb(,,,1; p p ga000.) } zidx10 -ne:0;
5 6 5 7 5 8 5 9 6 0 6 1 6 2 6 3 6 4 6 5
.a:eoe{ tgbfr cnet'; otn:' wdh13e; it:.0m hih:.5e; egt138m bcgon-mg:-ektlna-rdetlf tp rb24 28 13, akrudiae wbi-iergain(et o, g(5, 1, 1) bcgon-mg:-o-iergain(ettp rb24 28 13,rb akrudiae mzlna-rdetlf o, g(5, 1, 1) g bcgon-mg:--iergain(ettp rb24 28 13,rb akrudiae olna-rdetlf o, g(5, 1, 1) g bcgon-mg:-slna-rdetlf tp rb24 28 13,rb akrudiae m-iergain(et o, g(5, 1, 1) g
4/9
webdesign.tutsplus.com/tutorials/htmlcss-tutorials/tagtastic-tag-cloud-with-css-transformations/
4/29/12
6 6 6 7 6 8 6 9 7 0 7 1 7 2 7 3 7 4 7 5 7 6 7 7 7 8 7 9 8 0 8 1 8 2 8 3 8 4 8 5 8 6
bcgon-mg:lna-rdetlf tp rb24 28 13,rb24 akrudiae iergain(et o, g(5, 1, 1) g(5 fle:poi:XmgTasomMcootgain(rdetye1Satoo itr rgdDIaernfr.irsf.rdetGainTp=,trCl psto:boue oiinaslt; lf:06e; et-.9m tp.e; o:2m -ekttasomrtt(5e) wbi-rnfr:oae4dg; -o-rnfr:oae4dg; mztasomrtt(5e) --rnfr:oae4dg; otasomrtt(5e) tasomrtt(5e) rnfr:oae4dg; bre-et1xsld#9d8 odrlf:p oi d93; bre-otm1xsld#9d8 odrbto:p oi d93; -ektbre-ais00002e; wbi-odrrdu: .5m -o-odrrdu: 0002e; mzbre-ais0 .5m bre-ais00002e; odrrdu: .5m } zidx1 -ne:;
You should now have something similar to the following; Note Ive zoomed in so you can see where the arrow connects to the main part, this is barely notiticable when viewed at normal size.
webdesign.tutsplus.com/tutorials/htmlcss-tutorials/tagtastic-tag-cloud-with-css-transformations/
4/29/12
14 0 15 0 16 0 17 0 18 0
.a:oe { tghvr bcgon-mg:-ektlna-rdettp rb24 25 11,rb akrudiae wbi-iergain(o, g(5, 2, 4) g bcgon-mg:-o-iergain(o,rb24 25 11,rb24 akrudiae mzlna-rdettp g(5, 2, 4) g(5 bcgon-mg:--iergain(o,rb24 25 11,rb24 akrudiae olna-rdettp g(5, 2, 4) g(5 bcgon-mg:-slna-rdettp rb24 25 11,rb24 akrudiae m-iergain(o, g(5, 2, 4) g(5 bcgon-mg:lna-rdettp rb24 25 11,rb24 20 akrudiae iergain(o, g(5, 2, 4) g(5, 0 fle:poi:XmgTasomMcootgain(rdetye0Sato itr rgdDIaernfr.irsf.rdetGainTp=,trCl } bre-oo:eb6; odrclr#110
.a:oe:eoe{ tghvrbfr bcgon-mg:-ektlna-rdetlf tp rb24 25 11 akrudiae wbi-iergain(et o, g(5, 2, 4 bcgon-mg:-o-iergain(ettp rb24 25 11, akrudiae mzlna-rdetlf o, g(5, 2, 4) bcgon-mg:--iergain(ettp rb24 25 11,rb akrudiae olna-rdetlf o, g(5, 2, 4) g bcgon-mg:-slna-rdetlf tp rb24 25 11,rb akrudiae m-iergain(et o, g(5, 2, 4) g bcgon-mg:lna-rdetlf tp rb24 25 11,rb24 akrudiae iergain(et o, g(5, 2, 4) g(5 fle:poi:XmgTasomMcootgain(rdetye1Sato itr rgdDIaernfr.irsf.rdetGainTp=,trCl } bre-oo:eb6; odrclr#110
2 6 2 7 2 8 2 9
<i cas"rpe" dv ls=wapr> < he=# cas"a" a rf"" ls=tg> <pncas"ro"<sa> sa ls=arw>/pn
6/9
webdesign.tutsplus.com/tutorials/htmlcss-tutorials/tagtastic-tag-cloud-with-css-transformations/
4/29/12
3 0 3 1 3 2 3 3 3 4
Well use an anchor tag again but with 3 spans inside it; well need one to create the arrow, the main part and the end which has the border radius.
.a:oe .ro {bcgon-mg:r(.iae/ro_oe.n) } tghvr arw akrudiaeul./mgsarwhvrpg; .a:oe .et{bcgon-mg:r(.iae/ethvrpg;} tghvr tx akrudiaeul./mgstx_oe.n) .a:oe .n {bcgon-mg:r(.iae/n_oe.n) } tghvr ed akrudiaeul./mgsedhvrpg;
7/9
webdesign.tutsplus.com/tutorials/htmlcss-tutorials/tagtastic-tag-cloud-with-css-transformations/
4/29/12
Conclusion
Well thats it! Thats another tutorial complete and it looks good! Weve taken these tagtastic tags and created them with CSS while catering for IE at the same time. These tags could be used for all sorts of things go ahead and use them in a sidebar, blog, whatever you like!
By Luke Spoor
This author has yet to write their bio.
webdesign.tutsplus.com/tutorials/htmlcss-tutorials/tagtastic-tag-cloud-with-css-transformations/
8/9
4/29/12
webdesign.tutsplus.com/tutorials/htmlcss-tutorials/tagtastic-tag-cloud-with-css-transformations/
9/9