View Full Version : Is it possible to make stylesheet of <H1>?
kippie
08-16-2002, 07:47 PM
Is it possible to make a stylesheet of the header tags <H1> and <H2> so that you can fix exactly what a user sees? How does it look like?
Kippie
Do you mean to default the H1 and H2 tags to be a certain style?
H1 {
font-family : Verdana, Geneva, sans-serif; font-size : 14px; font-weight : bold; color : #333366
}
H2 {
font-family : Verdana, Geneva, sans-serif; font-size : 12px; font-weight : bold; color : #64648A
}
H3, H4 {
font-family : Verdana, Geneva, sans-serif; font-size : 12px; font-weight : none; color : #64648A
}
H5 {
font-family : Verdana, Geneva, sans-serif; font-size : 10px; font-weight : none; color : #000000
}
kippie
08-16-2002, 09:44 PM
Well, no. I'm looking for a way to use a code like:
<h1>Text 1</h1>
<h2>Text2</h2>
and to arrange it so that I can determine exactly how the user sees Text1 and Text2. Is that possible?
Kippie
I'm not seeing how what you asked for and what I showed you isn't exactly the same...
Use this page as an example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>CSS</title>
<style type="text/css">
H1 {
font-family : Verdana, Geneva, sans-serif; font-size : 14px; font-weight : bold; color : #333366
}
H2 {
font-family : Verdana, Geneva, sans-serif; font-size : 12px; font-weight : bold; color : #64648A
}
H3, H4 {
font-family : Verdana, Geneva, sans-serif; font-size : 12px; font-weight : none; color : #64648A
}
H5 {
font-family : Verdana, Geneva, sans-serif; font-size : 10px; font-weight : none; color : #000000
}
</style>
</head>
<body>
<h1>Text1</h1>
<h2>Text2</h2>
</body>
</html>
kippie
08-17-2002, 06:00 PM
OK I understand now. Thanks
Kippie
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.