Forum Moderators: not2easy

Message Too Old, No Replies

Why this doesn't work?

font-weight

         

rokec

4:05 am on Jan 1, 2007 (gmt 0)

10+ Year Member



I have this in header:
<style>
.bold {font-weight: bold;}
</style>

And then in body...
<span class="bold">Lol</span>

Why isn't that bolded?

rocknbil

9:58 am on Jan 1, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since we don't have the benefit of the "whole picture" I would suggest there is something else affecting your styling. By that I mean in the context you posted it should work, and it does, in the "whole picture" below. :-) Have you got your browser text size set too small? Bold won't apply when the text goes beyond a certain point.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Untitled</title>
<style>
.bold {font-weight: bold;}
</style>
</head>
<body>
<span class="bold">Lol</span>
</body>
</html>