-
css question
I'm really not a web page person, but do have to write html occasionally. I currently need to write a single page document and want to use the company css file. This all works fine, but I'd rather be able to distribute the document itself alone (that is, I don't want to have to send the .css file with it). I'm sure there's syntax for this, I just don't know it:
How do I embed the .css info into the html file?
-
Inbetween the <head></head> tags, you can do something like:
<style type="text/css">
.myClass{
font-weight:bold;
}
</style>
-
I guess I didn't realize the @import just does a literal import of the css file. I just copied the whole .css file between <style type="text/css"> </style> tags. That seems to work. Thanks.