By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,487 Members | 1,067 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,487 IT Pros & Developers. It's quick & easy.

Text in .css file?

P: n/a

I've sensed some need for, and a hint of possibility.
With "boiler-plate" on many pages, it would be nice to
have it once in one place.

Java script can do it in a .js file. Can CSS in a .css file?

MasonC
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Mason A. Clark <ma*******@THISix.netcom.comQ> wrote in message news:<sj********************************@4ax.com>. ..
I've sensed some need for, and a hint of possibility.
With "boiler-plate" on many pages, it would be nice to
have it once in one place.

Java script can do it in a .js file. Can CSS in a .css file?

MasonC


As you'll frequently read in this NG, "Only works in Opera 7."

#Legalcrap {
content: "If you are reading this message, you do NOT have permission
to rip off my clever CSS. If you can't see this message, you are using
an antique browser and probably don't realize my CSS exists, so it
doesn't matter anyway."
}
Jul 20 '05 #2

P: n/a
On Fri, 20 Feb 2004 01:30:06 GMT, Mason A. Clark
<ma*******@THISix.netcom.comQ> wrote:
I've sensed some need for, and a hint of possibility.
With "boiler-plate" on many pages, it would be nice to
have it once in one place.

Java script can do it in a .js file. Can CSS in a .css file?


You can place your CSS in an external file, yes. In fact that's one of
the main reasons for using CSS rather than transitional HTML. Use the
LINK element or @import. See e.g. the source of my site for an example.

But your use of the word "boiler-plate" makes me wonder if you are
actually thinking of inserting chunks of HTML. In which case you need
either preprocessing or something like SSI or PHP (server-side
processing).

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.