---
title: "Problem med text"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/94154-problem-med-text"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "AG"
published: "2004-01-07T13:15:11.000Z"
updated: "2004-01-07T14:04:02.000Z"
replies: 2
views: 233
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/html-css/94154-problem-med-text"
---

# Problem med text

## #1 — AG, 2004-01-07T13:15Z

Jag skulle vilja göra \<H1\> identisk med \<font\>:

```
<style type="text/css">
<!--
a:link  	{text-decoration: none;}
a:visited  	{text-decoration: none;}
a:hover 	{text-decoration: none;}
.head	{color: #295E79; font-family: helvetica, verdana, arial,geneva; font-size : 19px; font-weight : bold;	font-style : normal;}
H1	{color: #295E79; font-family: helvetica, verdana, arial,geneva; font-size : 19px; font-weight : bold;	font-style : normal;}
 
-->
</style>

<p>
<FONT class=head>Denna text utgår vi ifrån.
<HR color=black noShade SIZE=1>
</FONT>
sadfsadfsadfasdf
<H1>
Denna text skall vara exakt samma som den över!  
<HR color=black noShade SIZE=1>
</H1>
sadfsadfsadfasdf
```

Om ni testar nu så ser ni att texterna, med alla mellanrum och allt sånt, inte är identiska. Som sagt vill jag att \<H1\> skall vara identiskt med den övre "fonten".
Vänligen hjälp med detta. Börjar bli lite bråttom :)

Andreas

Permalänk: https://www.webforum.nu/p/94154

## #2 — dectgap, 2004-01-07T13:46Z

\<h1\> har en inbyggd marginal.
Ta bort den:

```
H1	{color: #295E79; font-family: helvetica, verdana, arial,geneva; font-size : 19px; font-weight : bold;	font-style : normal; margin: 0;}
```

Permalänk: https://www.webforum.nu/p/1245039

## #3 — AG, 2004-01-07T14:04Z

ok, tack.
Fungerar nu perfekt.

Andreas

Permalänk: https://www.webforum.nu/p/1245050

---

Tråden på webben: https://www.webforum.nu/amne/html-css/94154-problem-med-text
