css tutorials

Expert Ideas For Better and professional CSS Coding

0

CSS isn’t always easy to deal with. Depending on your skills and your experience, CSS coding can sometimes become a nightmare, particularly if you aren’t sure which selectors are actually being applied to document elements. An easy way to minimize the complexity of the code is as useful as not-so-well-known CSS attributes and properties you can use to create a semantically correct markup.

We’ve taken a close look at some of the most useful CSS tricks, tips, ideas, methods, techniques and coding solutions and listed them below. We also included some basic techniques you can probably use in every project you are developing, but which are hard to find once you need them.

And what has come out of it is an overview of over 70 expert CSS ideas which can improve your efficiency of CSS coding. You might be willing to check

More >

5 CSS Tips to Make IE (You) Happy

0

If I could, I’d give you a special present this christmas – I’d tellyou how to make IE on Windows behave like a grown-up browser. Sadly,reality sucks – as does IE on Windows – so I can only offer to sharewith you a couple of CSS tips to ease the pain of working with thatpiece of crappy software.

1. Reset browser styles

To start off with the right leg, I suggest you reset the styles tosome sensitive defaults, so all browsers will render the page assimilarly as possible. To do so, you can use one of the many suggested templates to create a reset.css file and include it before you include any other of your style sheets.

2. Add IE 5.5+ png file support

Angus Turnbull over at

More >

 

9 best practices for email design

1
Designing for an email is still quite far off from designing for a browser. In fact, email reader standards are pretty historic in the sense that (a) it requires designers to degrade their modern coding practices and (b) there really are no true standards.Fortunately, there are bodies in place that are working on standardizing the way emails are being rendered. But something tells me that we shouldn’t hold our breath (after all, we haven’t even fully standardized the experience within browsers yet). So in the mean time, here are some basic best practices to follow when designing for emails that will ensure your work displays as intended.

. Go old school with your HTML

Scrap everything you’ve learned in recent years about tableless CSS structures and revert back to the HTML that your grandma grew up with (a little exagerated but it seems that long since we’ve used tables).

More >

Best Css hacks

0

Here is the list of 10 hand picked CSS hacks and tricks which can help you in your CSS code and also save some time.

1. Vertical align div

http://stylizedweb.com/2008/02/01/vertical-align-div/

2. Min-Height

 selector {min-height:500px;height:auto; !importantheight:500px;} 

3. PNG transparency

http://stylizedweb.com/2007/12/30/png-transparency-issues/

4. Autoclear

 .container:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;}.container {display: inline-table;}/* Hides from IE-mac \*/* html .container {height: 1%;}.container {display: block;}/* End hide from IE-mac */ 

5. Reset CSS

 html, body,

More >

 

A brand NEW PNG fix for IE6 now available

0
Now here’s another one from Unit Interactive Labs, very fresh and promising, one of the first products of this company.

Also the second product so far from Unit Interactive Labs is a simple and useful tool tip rollover (named as UniTip) which also uses their PNG fix and it is very popular and used a lot these days over the web. Nice work Unit Interactive!

Unit PNG Fix

In their words this new png fix is inspired by work of 24ways.org, and here are some key features why you would use it. As far as I’ve tested it so far it’s working fine.

  • Very compact javascript: Under 1kb!
  • Fixes some interactivity problems caused by IE’s filter attribute.
  • Works on img objects

More >

 

Navigation bar with tabs using CSS and sliding doors effect

0

Youcan download the source code and reuse it in your projects. If youwant, you can change tabs colors simply modifying the image which Iused as background for each tab.I also added a short explanation about how to use PHP URL variables to set a tab “active” when the relative page is loaded. Read more for a complete explanation about this tutorial. Download source codeStep 1: General structureEach tab has rounded corners and adapts its width to the text conteined inside it. I use this simple method to implement CSS sliding doors effect:

…a <span> element inside an <a>element. I apply to the both elements a background image with roundedcorners. For the image, I used a single background image to manageactive, link, hover tab status which includes all these states. Theimage is the following:
1. Rounded corners without images

 <div id="container"><b class="rtop"><b class="r1"></b> <b class="r2"></b> <b class="r3"></b> <b class="r4"></b></b><!--content goes here --><b class="rbottom"><b class="r4"></b> <b class="r3"></b> <b class="r2"></b> <b class="r1"></b></b></div> .rtop, .rbottom{display:block}.rtop *, .rbottom *{display: block; height: 1px; overflow: hidden}.r1{margin: 0 5px}.r2{margin: 0 3px}.r3{margin: 0 2px}.r4{margin: 0 1px; height: 2px} 

2. Style your order list

 <ol><li> This is line one</li><li> Here is line two</li><li>

More >

 

Useful tips to enrich your HTML Forms

0

In the past months I already dedicated several post about formsdesign and usability. In this post I want to share some simple tipsuseful to enrich your forms with various elements such as suggest messages, autosuggest feature instead of <select> tag, simple check during data input and how to show hidden fields selecting a radio element option.Suggest messagesThistips it’s useful to display additional info when you select a fieldwith the cursor: then a message appears on the right of the field witha short description about the field “properties”:

I used this HTML code:

<label for=“email” >Email</label><input type=“text” id=“email” onFocus=“javascript:toggleMsg(‘msg-1′)” onBlur=“javascript:toggleMsg(‘msg-1′)” maxlength=“20″/><span id=“msg-1″ class=“msg” style=“visibility:hidden;>Required to log-in</span><label for=“psw”>Password</label><input type=“text” id=“psw” onFocus=“javascript:toggleMsg(‘msg-2′)” onBlur=“javascript:toggleMsg(‘msg-2′)” maxlength=“20″/><span id=“msg-2″

More >

Go to Top