There was a problem sending you an sms. Check your phone number or try again later.
To get Scribd mobile enter your number and we'll send you a link to the Scribd app for iPhone & Android.
We've sent a link to the Scribd app. If you didn't receive it, try again.
Any beginner web developer / designer can easily apply a multitude of formatting to the web
pages he produce. One of the methods by which an experienced web designer can show up from
the crowd is to provide flexibility to this formatting as well.
The biggest problem in traditional classic (specially static) HTML pages is that the text of your
web page and the formatting operations performed over it are all mixed inside one place / one
file. If we are to separate and rigidly specify the formatting from the text, then a single content
(i.e., web page text) can consume many formatting styles without altering it's text contents at all.
This is much like the skin-able desktop windows application in which you can have a single
application and in the same time many skins that can be applied to it to quickly and easily change
CSS (Cascading Style Sheets) is a well established and frequently used technology to achieve the separation we mentioned above between formatting and content. It's supported by virtually all of the moderns web browsers. When you employ CSS techniques, you are always sure that altering the formatting of your web pages will go as smooth as possible. .
You can apply CSS formatting to your web pages at different levels. The first level
applies formatting to an entire set of pages in the same time, and this is the level
we are mostly interested in in this tutorial. The next two lower levels is to apply CSS
to one page by defining the CSS styles in the head of this page or to apply CSS to
one particular element inside the page using the STYLE attribute. We are not going
to present the two later lower levels here as they suffer from the original problem
We need now to create a CSS file and to apply it's formatting instructions to our pages.
First of all, create a text file (this is our CSS file) and type the text in figure 3 inside it and save it
We now need to bind the formatting instructions stored in the "Format.CSS" file to our two
pages. This can be easily achieved by adding a link tag to the head section or our HTML pages.
See our two HTML pages after the changes in figure 4.
Now bringing you back...
Please enter your email address below to reset your password. We will send you an email with instructions on how to continue.
Does that email address look wrong? Try again with a different email.