CSS Buttons Instead of Image Files

Often Website owner decides “dress up” tr menu display using button graphics instead plain text links. It’s idea yr navigation punch, recommend avoid wh image files yr buttons instead select simple CSS (Cascading Style Sheets) layout.

Here reasons:

Graphic files increase time takes yr site load browser.

Search engines can't read images.

CSS, properly, ge control nd java script.

Using tiny bit CSS, create vy nice menu array visitors tk dynamic image files. hover CSS menu watch buttons change color depress page.

Pretty cool huh?

CSS menus require heavy java script code tt slow load time. simply add short section yr external style sheet tell browser display buttons terms size, colors, font style, etc. reference specs HTML document menus reside.

In simplest terms two-step process takes minutes complete.

And search engine spiders read anchor links placed ts sort menu direct text linkage. What’s more, apply title= attribute enhance onsite SEO.

Here code you’ll nd add external CSS fly sort menu:

.buttonscontainer width: 120px;

.buttons {color: #;<BR>
border: 1px solid;<BR>
background-color: #;<BR>
padding: 0px;<BR>
padding-left: 0px;<BR>
font: 12px Arial, sans-serif;<BR>
font-weight: bold;<BR>
text-decoration: none;<BR>
border-color: # # # #;<BR>
display: block;<BR>
margin: 3px;<BR>
width: 100%;<BR>
text-align: center;}

.buttons a:hover {border: 1px solid;<BR>
padding-left: 0px;<BR>
padding-top: 0px;<BR>
padding-bottom: 0px;<BR>
padding-right: 0px;<BR>
background-color: #;<BR>
border-color: # # # #;<BR>
color: #;<BR>
text-decoration: none;}

Click Here wt menu codes look le browser.

Of course you’ll edit color specs above, addition changing borders, margins, etc. fit.

Open yr HTML pages and, exactly define yr slick menu buttons, divs class=”buttonscontainer” class=”buttons”, add button text anchor, close divs.

Play wh coding yr design scheme. sample menus oy beginning wt wh foundation.

For gt tips check complete Web Design Course.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace

One Response to “CSS Buttons Instead of Image Files”

Leave a Reply

Security Code: