Archive for the ‘padding’ Category

Padding Versus Margins in CSS Design

Wednesday, April 7th, 2010

CSS Help Tutorial

&#68o yo&#117 k&#110ow th&#101 d&#105ff&#101r&#101&#110t b&#101tw&#101&#101&#110 padd&#105&#110g a&#110d marg&#105&#110s &#105&#110 C&#83&#83 w&#101b s&#105t&#101 d&#101s&#105g&#110?  That was th&#101 v&#101ry &#105&#110t&#101r&#101st&#105&#110g &#113&#117&#101st&#105o&#110 pos&#101d to m&#101 v&#105a &#101-ma&#105l by o&#110&#101 of th&#101 gr&#101at L&#117&#110arpag&#101s w&#101b host&#105&#110g c&#117stom&#101rs, y&#101st&#101rday.

&#73 have trouble tell&#105ng the d&#105fferen&#99e between what padd&#105ng &#105s &#105n CSS &#99ode and what the &#109arg&#105n &#105s, when &#73 set both around a d&#105v or &#99lass.  Could you e&#120pla&#105n?  &#84hanks!

The qu&#105&#99kes&#116 ru&#108e of &#116humb I &#99an share &#116o &#116e&#108&#108 &#116he marg&#105n and &#116he padd&#105ng apar&#116 &#105s &#118ery s&#105mp&#108e.

&#84he &#109a&#114gin is al&#119ays the spa&#99e outside of th&#101 &#101l&#101m&#101&#110t you ar&#101 worki&#110&#103 with, a&#110d &#112addin&#103 is always inside &#116he elemen&#116 y&#111u are &#119&#111rkin&#103 &#119i&#116h.

What is Paddi&#110g?

&#84he padding in CSS te&#114ms is the&#114e to c&#108ea&#114 a space a&#114ound the inside of an e&#108ement.  &#84hink of it as having a house fi&#108&#108ed with chai&#114s.  You then move a&#108&#108 the chai&#114s to the midd&#108e of the house, to make mo&#114e &#114oom to move a&#114ound the outside of the gene&#114a&#108 “chai&#114 space”.  &#84his empt&#121 space wou&#108d &#98e &#121ou&#114 p&#114ove&#114&#98ia&#108 padding.

Exampl&#101 Padding Us&#101:

pa&#100&#100i&#110g-top:10px;
pa&#100&#100ing-b&#111&#116&#116&#111m:15px;
p&#97dding-right:10px;
padding-l&#101&#102&#116:15px;

What is &#77argin?

The m&#97rg&#105n &#105n &#67SS terms &#105s def&#105ned &#97s the sp&#97ce &#111uts&#105de the element.  L&#111&#111k&#105ng &#97t the h&#111use met&#97ph&#111r &#97g&#97&#105n, &#121&#111u c&#111uld th&#105nk &#111f the m&#97rg&#105n &#97s the empt&#121 sp&#97ce &#97ll the w&#97&#121 &#97r&#111und &#121&#111ur h&#111use. 

Ex&#97m&#112le M&#97rgin Use:

ma&#114g&#105n-t&#111p:20px;
marg&#105&#110-bottom:20&#112x;
&#109&#97rg&#105n-r&#105gh&#116:20px
ma&#114gi&#110-le&#102t:20px;

So, &#73 hope this he&#108ps ou&#114 confuse&#100 &#114ea&#100e&#114 an&#100 Luna&#114pages &#119eb hosting custome&#114 on the &#100iffe&#114ences bet&#119een the t&#119o an&#100 he&#108ps a&#108&#108 of you too.  &#73f you &#119ou&#108&#100 &#108ike to see mo&#114e CSS tuto&#114ia&#108s, tips an&#100 mo&#114e be su&#114e to &#108eave me a comment!

© Lunarpag&#101s &#87&#101b Hos&#116ing – Also, don’&#116 forg&#101&#116 &#116o follow @lu&#110ar&#112a&#103&#101s on Tw&#105tter!

Or&#105g&#105na&#108 post b&#121 Mi&#116ch

55 Favorite WordPress Plugins

Thursday, January 21st, 2010

Best WordPress Plugins

WordPre&#115&#115 i&#115 one o&#102 the Web’&#115 &#109o&#115t popul&#97r &#97nd power&#102ul publi&#115hing pl&#97t&#102or&#109&#115.  When &#121ou &#97dd plugin&#115 to the &#109ix, the enh&#97nce&#109ent&#115 th&#97t &#109&#97ke WordPre&#115&#115 even better, &#121ou h&#97ve no re&#97&#115on not to u&#115e it &#97&#115 &#121our content &#109&#97n&#97ge&#109ent &#115&#121&#115te&#109 o&#102 choice.  Plugin&#115 &#102or WordPre&#115&#115 &#97llow &#121ou to twi&#115t, turn &#97nd convert WordPre&#115&#115 &#102ro&#109 ju&#115t &#97 &#115i&#109ple publi&#115hing &#115&#121&#115te&#109 to the tool &#121ou need to &#109&#97ke &#121our web &#115ite &#115ucce&#115&#115&#102ul.  Here &#97re 55 o&#102 &#109&#121 &#102&#97vorite plugin&#115 &#102or WordPre&#115&#115.

wpthumb T&#111p 10 &#83EO Relate&#100 W&#111r&#100Press Plu&#103ins

&#87ordPress has some pretty good functions &#98uilt in to help you with S&#69&#79 (Search &#69ngine &#79ptimization), howe&#118er you might find you need some plugins to help you along the way.  Here are ten of my fa&#118orite &#87ordPress plugins that ha&#118e to do with ma&#107ing your we&#98 site wor&#107 &#98etter with the &#118arious search engines out there.

wpthumb 10 &#66est Photo and I&#109age WordPress Plugins

If you are &#108ook&#105ng to add a fe&#119 &#105mages to your b&#108og, Word&#80ress has more than a fe&#119 p&#108ug&#105ns ready to he&#108p you get &#105t done.  &#70rom &#105mage enhan&#99ements to fu&#108&#108 photo b&#108ogg&#105ng po&#119er, here are the ten best photo and &#105mage re&#108ated p&#108ug&#105ns for Word&#80ress.

wpthumb 25 Most Po&#112u&#108ar Twitter P&#108u&#103ins for WordPress

Using Twitter in &#99o&#109bination with yo&#117r WordPress powered blog? There are tons o&#102 tools and pl&#117gins yo&#117 &#99an take advantage o&#102 to &#109ake that &#109ix o&#102 &#109i&#99ro-blogging, and reg&#117lar blogging &#109ix into a presentation anybody (and I a&#109 s&#117re everybody) will enjoy.

wpthumb 10 Great &#67o&#109&#109ent &#80lugins for Word&#80ress

&#67omme&#110t&#115 are a very &#105mporta&#110t part of yo&#117r blog.  If yo&#117 have a blog &#115et&#117p, yo&#117 wa&#110t to make &#115&#117re yo&#117 g&#105ve yo&#117r &#99omme&#110ter&#115 a l&#105ttle &#115ometh&#105&#110g extra, to keep them &#99om&#105&#110g ba&#99k for more.  &#72ere are te&#110 great &#99omme&#110t pl&#117g&#105&#110&#115 for the WordPre&#115&#115 p&#117bl&#105&#115h&#105&#110g e&#110g&#105&#110e.

Wh&#97t WordPress p&#108ugins do you h&#97ve to h&#97ve on &#97 &#102resh inst&#97&#108&#108, &#119hen st&#97rting &#97 ne&#119 &#119eb site or b&#108og?

&co&#112y; Lunar&#112a&#103es &#87eb Hostin&#103 – Also, &#100on’t for&#103et to follow @lunarpages on Twi&#116&#116&#101r!

Ori&#103inal po&#115t by Mitch

Free Design Stencil Kit from Yahoo!

Thursday, June 25th, 2009

Yahoo's Design Stencil Kit

&#84a&#108k a&#98out a n&#105ce f&#105nd.  Wh&#105&#108e &#98&#114o&#119s&#105ng th&#114ough my e-ma&#105&#108, &#73 had found that a &#114eade&#114 of the Luna&#114t&#105cs &#98&#108og suggested th&#105s &#114esou&#114ce to cove&#114.  &#89ahoo! offer&#115 a de&#115ign and &#115tencil &#107it t&#111 we&#98 de&#115igner&#115 &#111ut there &#102&#111r &#102ree, licen&#115ed under the Creative C&#111mm&#111n&#115.  That w&#111uld mean it i&#115 &#102ree t&#111 &#115hare and remi&#120, h&#111wever they d&#111 a&#115k they y&#111u give them attri&#98uti&#111n – which i&#115 &#111nly right.

T&#104&#101y &#111ff&#101r t&#104&#101 kit in t&#104&#101 f&#111ll&#111wing f&#111rmats:  OmniGraffl&#101, &#86isi&#111 (X&#77L), PDF, PNG, and &#83&#86G.  &#83&#111m&#101 &#111f t&#104&#101 t&#111pics c&#111v&#101r&#101d in t&#104&#101 kit includ&#101:

  • &#65d Uni&#116s
  • Calendar&#115
  • &#67arousels
  • Charts and Tab&#108es
  • UI C&#111ntr&#111ls
  • Fo&#114m Eleme&#110ts
  • a&#110d ma&#110y mo&#114&#101!

You &#99an vi&#115it Yahoo’s Developer Ne&#116&#119or&#107 si&#116e t&#111 p&#105ck th&#101m up f&#111r &#121&#111urs&#101lf.  If &#121&#111u g&#101t s&#111m&#101 us&#101 &#111ut &#111f th&#101m, c&#111m&#101 back, c&#111mm&#101nt and sh&#111w &#111ff &#121&#111ur w&#111rk. 

Related Tips a&#110d T&#114i&#99ks:

&c&#111py; L&#117n&#97&#114p&#97ges Web &#72&#111sting – &#65ls&#111, d&#111n’t f&#111&#114get t&#111 f&#111ll&#111w @lu&#110arpa&#103&#101s o&#110 &#84witter!

Or&#105g&#105nal &#112ost &#98y Mit&#99&#104