English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories
0

"the ways you can include a style sheet:

* Write it inline inside each and every tag
* Place a at the beginning of the web page
* Dedicate and link a CSS file and write it inside that file
* use @import to include it as portion of a page's CSS "

I get the inline for each tag, the worst one to use...
When you put the style tags in the beginning, what format do you use?
How do you make a CSS file?

2006-07-26 08:42:08 · 4 answers · asked by Anonymous in Computers & Internet Internet

Somebody jsut shoot me... lol

2006-07-26 08:52:53 · update #1

4 answers

i use the @import...

to make a css file, just open a text editor, or whatever you use for html docs, and add in your css stuff, then name it with a css extension (example.css)...

here's an example of some markup from one of my css files:
.buttons {
margin:0px 0px 0px 0px;
padding:0px 0px 0px 0px;
font-family:Arial, Helvetica, sans-serif;
font-weight:bold;
font-size:13px;
white-space:nowrap;
}
.buttons a {
width: 255px;
float:left;
border-style:none;
padding:5px 5px;
color:#003366;
}
.buttons a:hover {
color:#fff;
background:#003366;
border-bottom-width:0;
text-decoration:none;
}

2006-07-26 08:48:46 · answer #1 · answered by thaKing 4 · 0 0

The best thing to do, I feel, is make an external style sheet. The way you make a CSS file is simply start putting in CSS code in Notepad, however way you want to. When you go to save as, don't let the filename end in txt. Just type in the filename followed by the css file extension, for example:

style.css

And notepad will automatically turn it into a CSS file.

2006-07-26 08:49:26 · answer #2 · answered by Anonymous · 0 0

you have to ways to do that.
firstly when you write your CSS in separate file (myfile.css)
then write within and


secondly if you write your css in the same html file (between head and end head)

2006-07-26 08:53:51 · answer #4 · answered by roncli 2 · 0 0

fedest.com, questions and answers