Vapor
05-31-2005, 09:22 PM
Ok, This is hard to describe but here it goes. I have some text on top of a background, and I moved the text around so that they overlap each other a tiny bit. The problem is, I can't seem to get the background to be closer around the text. I am trying to make a title bar for my site and it looks silly because there is too much background color. I want it to fit tightly around the text.
Here is the code so you can see what I mean.
<html>
<head>
<title>New Design</title>
<STYLE TYPE="text/css">
<!--
@import url(company.css);
H1 { background color: #330000; color: orange; font-family: impact }
P { background: #330000; font-family: courier }
-->
A:link { text-decoration: none }
A:active { text-decoration: none }
A:visited { text-decoration: none }
B { font-size: 15pt; line-height: 20pt }
</STYLE>
</head>
<body bgcolor="#000033">
<P STYLE="font-size: 30pt; color: green; font-family: papyrus, serif">This is a test</P>
<P STYLE="margin-top: -52px; margin-left: 0px; color: green; font-size: 28pt; font-weight: bold; font-family: papyrus, sans-serif">Offline</P>
</html>
Can I put margins on the background?
Here is the code so you can see what I mean.
<html>
<head>
<title>New Design</title>
<STYLE TYPE="text/css">
<!--
@import url(company.css);
H1 { background color: #330000; color: orange; font-family: impact }
P { background: #330000; font-family: courier }
-->
A:link { text-decoration: none }
A:active { text-decoration: none }
A:visited { text-decoration: none }
B { font-size: 15pt; line-height: 20pt }
</STYLE>
</head>
<body bgcolor="#000033">
<P STYLE="font-size: 30pt; color: green; font-family: papyrus, serif">This is a test</P>
<P STYLE="margin-top: -52px; margin-left: 0px; color: green; font-size: 28pt; font-weight: bold; font-family: papyrus, sans-serif">Offline</P>
</html>
Can I put margins on the background?