In the past, there was a lot of dependence on developers and programmers to help in updating the website, even when it’s simply a minor one. Owing to CSS and it’s flexibility, styles can be extracted independently away from the codes. And with certain basic understanding of CSS, even a novice can easily modify the style of a website. here are some basic tips in CSS that might be useful for beginners - 1.Using reset.css - Whenever it comes to rendering CSS styles, browsers including Firefox and Internet Explorer have different ways of handling them. reset.css resets all basic, so you begin with a real blank new stylesheet. Some of the commonly used reset.css frameworks are – Yahoo Reset CSS, Eric Meyer’s CSS Reset, Tripoli 2.Usings shorthand CSS - Shorthand CSS offers you a short way of writing your CSS codes, and most importantly it makes the code clearer and easier to comprehend. In place of making CSS like this - View plaincopy to clipboardprint? 1. header { 2. background-color: #fff; 3.background-image: url(image.gif); 4.background-repeat: no-repeat; 5.background-position: top left; 6. } It can be short-handed into the following: View plaincopy to clipboardprint? 1. .header { 2. background: #fff url(image.gif) no-repeat top left 3. } 3.Understanding Class and ID - These two selectors often end up confusing beginners. In CSS, class is symbolized by a dot "." while id is a hash ‘#". In essence id is used on style which is unique and doesn’t repeat itself, class on the other side, can be re-used. 4.Power of
5.Forget , try
- The chief advantage of CSS is the use of
for achieving total flexibility in terms of styling.
are unlike
|
The main intention of this site to provide Engineering information and preparing Engineering students for leadership in their fields in a caring and challenging learning environment.