|
-
NullPointerException
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?
Open Source is free like a puppy is free.
It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.
Understanding Evolution
-
Ursus Arctos Moderatis
Inbetween the <head></head> tags, you can do something like:
<style type="text/css">
.myClass{
font-weight:bold;
}
</style>
-
NullPointerException
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.
Open Source is free like a puppy is free.
It's only when you look at an ant through a magnifying glass on a sunny day that you realise how often they burst into flames.
Understanding Evolution
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|