Forum Moderators: not2easy
CSS is a standard based way to define layout in a web page (or XML file). While Microsoft's IE allows some scripting in it (expressions) those are *not* part of the standard, and hence should not be used (stay away from "expressions").
In modern browsers you *always* use CSS as it uses built-in style sheets. And most web sites use some level of CSS.
CSS can be used inline in the html e.g.:
<p>this is <span style="color:red">red</span></p>
It can be used in the html itself in the head of the file
<html>
<head>
<title>Title</title>
<style>
.red {
color:red
}
</style>
</head>
<body>
<p>this is <span class="red">red</span></p>
</body>
</html>
Or it can be linked from an external file
Replacing the <style> tag above with a reference to a file having the same content
<link rel="stylesheet" type="text/css" href="style.css" />
Using CSS should not generate ActiveX warnings.
While at it: if you start to develop things with CSS remember that IE has a broken box model. It's better to develop in _any_ other browser (e.g. firefox, safari, opera, ...) and then fix the problems in IE in a conditional comment afterwards. It'll save you tons of frustration to go that way.
They seem to pop up. I think it might be the computer from which I was working. It's a school computer, so it might be tighter restrictions. We will see though. . .
I believe you can even put some sort of code on the page which tells the browser to simulate it running as if it was on the internet, not the local machine, which will also remove the problem I think.
<!-- saved from url=(0030)http://www.example.com/ -->
This fools IE into thinking you used file >> save as to get the source.