Learning to use style sheets takes time and patience, and it should not arrive unprepared up.
For all those who have some problems with the English technical or want to read a summary, here's a translation (free) which can clarify things better than many unnecessary discussions about CSS.
Lesson No. 1: Everything you know is useless .. Or almost
Start working with CSS is a quick coup sponge. Hard to admit, but it's true. We must prepare to scratch and start from scratch to learn all the best techniques. Of course, remain valid all knowledge on web design, programming, usability, etc. ..
Lesson No. 2: Do not appear in the same way everywhere
Obviously, the reference is to rendering of the various browsers. It is difficult to achieve the same results on Firebox, Internet Explorer, Opera, Safari .. No substantial differences, but often present.
Lesson No. 3: Often you must choose the lesser of two evils
In developing a site, will sooner or later the need to make compromises. There are sites where you will have to waive some features scheduled departure, limitations on accessibility, and so on.
Lesson No. 4: The perfection is reached not when there's nothing more to add, but when there is no longer anything to take away
It is easy to convert from a site in a layout of tables filling div tags and unnecessary. Overloading the code does not serve, and it is best to remove all non-essential in order to have a page as easy as possible.
Lesson No. 5: Some sites will require attention to the coherence of pages
If the graphic designer does not deal with other aspects of development of a site, you must be careful to maintain a certain consistency in all pages. Having too many elements unique to each page could lead to an increase in costs, especially harmful in small projects.
Lesson No. 6: Inevitable development time longer
Currently, CSS is not supported in the same way by all browsers, and until they learn by heart all the differences, it will take more time to test and verify that work is consistent on each user agent. You will, however, great advantages in the later stages of maintenance and updating.
Lesson No. 7: Contained coherent and ordered bring great benefits
If you have been attentive to the semantics of the code and the coherence of contents, have many advantages: from to maintain the structure html unchanged in the future redesign of the site, the navigation keys finally possible.
Lesson No. 8: The selectors descendants are a must
The classic mistake of those who are beginners with CSS is filling the div code, and give each element a container or id. And unnecessary, and often to solve every problem just learn to manage selectors descendants. If you need explanations .. Also ask more details in the comments!
Lesson No. 9: Using CSS hack sometimes be necessary
If a project will have short, and you have to resolve some mistakes display, the route will be required to use the hack in your style sheets. Not elegant, but often necessary to return to time and cost.
Lesson No. 10: Solving bug could lead to other problems
Solving a bug, is likely to present some new problem, perhaps on a different browser. It is not a matter seamless, just knowing how to find the right way.
Lesson No. 11: There will be surprises in layout to columns
With a 2-3 layout columns, will often display problems. To resolve them, generally you must always specify height and width of many elements, along with property and float clear. This runs counter to 4 lesson, but had not even mentioned the need to find compromises?
Lesson No. 12: The background images make the difference
Using background images through CSS often will be an excellent solution to improve the graphic impact of the site. Without then consider the benefits to search engines and screen reader, which will instead textual content in the code.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment