Click to See Complete Forum and Search --> : css question


rock
09-21-2004, 09:16 AM
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?

Grizzly
09-21-2004, 09:18 AM
Inbetween the <head></head> tags, you can do something like:

<style type="text/css">
.myClass{
font-weight:bold;
}
</style>

rock
09-21-2004, 02:02 PM
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.