css file

junery00

New Member
Hi again , i have a question and looks like i bother too much but trying to llok help doing or starting doing this looks difficult for me since im not in a country with that kind of help , well anyways i would like to know how to separate or create a css file from the html not sure if i explained well but what im trying yo know is i been checking some pages on dreamweaver as a page resource and paste it on my dreamweaver and i noticed there are css files sepaated from the html and my question is that
 

Phreaddee

Super Moderator
Staff member
if your using dreamweaver...
1. file > new > html
2. file > new > css
3. save both.
4. click on the html
5. format > css styles > attach stylesheet
6. find the css you just created attach as a link.
7. write html in the html and css in the css
eg html...
HTML:
<div id="some-id"> blah blah</div>
<div class="some-class">blah blah</div>
css...
Code:
#some-id {
/* add styles here */
}
.some-class {
/* add styles here */
}
 

Phreaddee

Super Moderator
Staff member
I would create the html first, but it doesn't really matter.
you would continuously be switching between the two in the life of the project anyway.
both need to exist and be saved before they can be linked.
 
Top