View Full Version : quick CSS Question
wildcard
11-22-2002, 09:50 PM
<font size="-1">blah</font>
how do i represent that in CSS???
Zero Angel
11-22-2002, 11:44 PM
Theres 3 different ways:
1) you can use something like this
Normal text - <span style="font-size: 80%">Smaller Text</span>Alternatively, you can also use a DIV, but line breaks will automatically be made before and after the div.
2) You can also embed CSS info into the head of your HTML doc:
<html>
<head>
<title>Test</title>
<style type="text/css">
<!--
.redtext { font-size: 120%; color: #ff0000; }
-->
</style>
</head>
<body>
This text will be displayed in <span class="redtext">red</span>. You'll notice that using this method, you can reuse the same classes over again. <span class="redtext">Yeah!</span>
</body>
</html>
3) You can also have your CSS info stored in a separate file (ie: main.css )
<html>
<head>
<title>Testing</title>
<link rel="stylesheet" href="main.css">
</head>
.........
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.