css tutorials

 

Pure CSS Animated Progress Bar

0

Here’s a simple demonstration of how you can create animatedprogress bar using pure css. The trick is very simple. We need 3elements, one container and 2 nested elements.

Take a look at the demo| Download zip file

The Concept

We’ll put a cool background image in the container and define fixedwidth and height. First child (SPAN) will act as a progress bar. We’llabsolutely position second child (EM) above the progress bar and shiftit to the left to a desired value. EM has the same background as thecontainer so it gives an effect of progress bar stopping at certainpercentage.

Markup

To keep it as meaningful as possible I used definition list (DL) tolist for several values. For single progress bar you can use anyelement you want. I love paragraphs so I used P in my example.

<dd><br />	<span><em

More >

Creating CSS Layouts: The Best Tutorials on Converting PSD to XHTML

0

First of all, I should thank delicious, StumbleUpon, Dzone, Designfloat and other major social bookmarking websites’ users for featuringmy previous posts. I received a lot of traffic after a few days afterstarting this blog.

In this post, I’m going to show you the most practical tutorials oncoding a template using CSS and XHTML. Making a template has two steps.The first step is Designing the template components and the second stepis Coding them into a valid XHTML page.For learning designing a template from scratch in Photoshop, I suggest checking this post by dzineblog. But how to convert the designed PSD file to an XHTML document is the reason I wrote this post.

The best Tutorials on Converting PSD to XHTML

1- CSS Template Tutorials – Setting Up- This is the part one of the

More >

 

Cheat Sheets for Front-end Web Developers

1

Cheat sheets are helpful to have around because they allow you toquickly remember code syntax and see related concepts visually.Additionally, they’re nice decorative pieces for your office.

In this article, you’ll find 23 excellent, print-ready cheat sheets for HTML/HTML, CSS, and JavaScript (including MooTools and jQuery).

So go ahead – print out your favorites and pepper your workspace with these wonderful references.

HTML/XHTML

1. HTML Help Sheet

2. HTML Cheat Sheet

3. HTML Character Entities Cheat Sheet

4. XHTML Cheat Sheet v. 1.03 – PDF

CSS

5. CSS Cheat Sheet (V2)

More >

Are you a CSS fanatic?

0
I received a lot of messages from some readers who accuse me to be a “CSS fanatic” . They asked to me why I spend my time coding an “unnatural” CSS structure instead of using a more simple <table> tag to design a form with labels and inputs text…Ok,I admit it: I love CSS, but I am not a “fanatic”! I try only to findsome interesting solutions about how to use them. In fact, in mydefence, some weeks ago I wrote a post exactly about this topic (Table’s anatomy: why tables are not so bad) after my friend Jason asked to me: “I want to use CSS instead of a table to display a matrix with some values. How can I do?”My answer – shortly – was: Ingeneral, tables are not the devil and if used in the correct way (forexample

More >

 

Simplicity is better: some suggestions for a clean blog layout

0
In the past week I received many good comments about the design of myblog and some visitors asked to me suggestions about how to improvetheir site layout. I want to share with you some tips I thinkinteresting about this topic. These are not general rules but onlysimple suggestions which can help you in order to make your site moreattractive.Simplicity is betterBesimple. Don’t use complex site structure for your informative blog(like my site for example). A vertical orientation with two maincolumns is the better solutions, linear and simple to manage. If youneed for help to design the page layout take a look at this post: Conceptual design for site’s layoutBackground and text color for content.Use a white background (#FFFFFF) with black/gray scale text for the content. You can use black color (#000000) in order to emphasize title of posts and gray scale color (#444444, #555555…)for text

More >

 

Simple CSS vertical menu Digg-like

0

This tutorial explains how to implement a simple vertical menudigg-like using CSS and javascript to show/hide sub-menu. The result islike this:

Download this tutorialStep 1: HTML codeHTML structure is very simple and contains two <ul> tags (menu and sub-menu):Copy and paste the following code in a new html page:

<div id=middlebar”><ul class=menu”>
<li><a href=“#” onclick=“javascript:showlayer(‘sm_1′)”> Profile</a></li>
<ul class=“submenu” id=“sm_1″> <li><a href=“p1.html”>Profile</a></li> <li><a href=“p2.hmtl”>Inbox </a></li> <li><a href=“p3.hmtl”>Log-out</a></li></ul>

</ul></div>

Step 2: CSS codeCopy and paste this code to define menu button:

ul, li{margin:0; border:0; padding:0; list-style:none;}#middlebar{ font-size:11px; color:#3b5d14; background:#90b557; font-weight:bold; padding:4px; height:30px;} #middlebar .menu li { background:url(lm.png) left top no-repeat;

More >

9 Expert CSS Ideas You Should Think Twice About Before Using

0

Smashing Magazine does an excellent job of providing quality resources forweb developers. Today while checking out Digg, I noticed that they havea new article entitled 70 Expert Ideas For Better CSS Coding. The articlecontains lots of good information on how to improve your CSS, howeverthere are a number of ideas presented that should be taken witha grain of salt.

Section 1.1

Idea: Keep a library of helpful CSS classes

This concept really breaks the separation of presentation and contentthat we strive for when using CSS classes and writing semantic code. If we have some html:

<div class=”floatLeft width100″></div>

We gain NO benefits over the following, except for a few characters:

<div style=”float: left; width: 100%;”></div>

Instead, it makes much more sense to create classes based on the content:

<div class=”callout”></div>

Then if you have

More >

The Ten Most Important CSS Tips : Simple Things You Should Know about Cascading Style Sheets

1

When you’re first learning to build a Web site, you often don’tthink much about style sheets, as you’re too busy learning to tell a<p> from a <br>. But once you’ve mastered the basics, CSSis an obvious place to go to make your pages more user friendly andmanageable. These ten tips will get you up and running with CSS fasterthan you might think.

  1. The best way to learn CSS is in a free class.Luckily there is one offered on this site.
  2. You can use CSS on more than just span and div tags.Makesure that you style everything that makes sense in your document, don’tjust limit yourself to span and div tags. I have seen many new CSSdevelopers spend a lot of time trying to convert their sites to spanand divs, when it’s not necessary. You can style any tag you

More >

Go to Top