Click to See Complete Forum and Search --> : Problem With Spacing


mikechang2000
09-09-2003, 05:29 AM
<font size="6">

<b>MY WEBSITE</b>
</font>

<hr style="color: darkred; width: 100%; height: 3px;" >


This is the code I am using. Can someone please tell me how to narrow the space between my darkred line and the words MY WEBSITE? Thank you for anyone's help.

Charles
09-09-2003, 05:43 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Example</title>

<style type="text/css">
<!--
h1 {
border-bottom:solid #f00 3px;
font-size:95%;
padding-bottom:5px;
text-transform:uppercase;
}
-->
</style>

<h1>My Website</h1>

mikechang2000
09-10-2003, 12:42 AM
Dear Charles,

Thank you very much for your reply to my thread. I am a beginner of html so I am a little confused about the the reply you gave me. Is there a simpler way or some kind of tag I could put to narrow the space? Thanks again for your help.

Fang
09-10-2003, 02:11 AM
Charles has given you the modern way of doing it.
All the tags you have used are considered outdated, unless you are specifically targeting very old browsers.
Go through these tutorials (http://www.w3schools.com/default.asp) on HTML, XHTML and CSS. It will take you an hour or two, but you will reap the rewards later.