---
title: "problem div align"
type: "forum-thread"
url: "https://www.webforum.nu/amne/html-css/166086-problem-div-align"
topic: "HTML & CSS"
topic_url: "https://www.webforum.nu/amne/html-css"
author: "nassegirl"
published: "2007-11-03T18:43:47.000Z"
updated: "2007-11-03T22:48:24.000Z"
replies: 2
views: 579
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/166086-problem-div-align"
---

# problem div align

## #1 — nassegirl, 2007-11-03T18:43Z

Dessa två text stycken ska ha en höger och vänstermarginal. Det nedersta stycket ska vara i kursiv stil. När jag försöker attt validera så står det att div align är inte tillåtet att vara på det ställe som det är på.
Jag är tacksam om jag får veta hur jag ska ändra koden så att det blir rätt när jag ska validera.

\<div align="justify"\> 
Som en tank på världshaven är Bestevaer II som med sitt omålade 
aluminiumskrov ser ganska så brutal ut. Men ändå en skönhet trots 
att funktionen är viktigast.Bestevaerbåtarna byggs av K&M
Yachtbuilders i Makkum i Holland och är konstruerade av Gerard 
Dijkstra vars båt Bestevaer II vi ser på bilderna. Gerard befinner sig 
just nu i Norge efter en sommar längs norska kusten och 
Svalbard. Gerard skriver bland annat om sin båt:
\<i\>\<div align="justify"\>
"The pilothouse is a joy to behold, fitted with a heel adjustable 
chart table seat, with all navigation instruments coming easily to 
hand, combined with views of both the sea and the sails. This 
consideration to comfort at sea is not confined to the pilothouse, a 
great deal of thought and consideration being given to the 
accommodation below deck.Four watertight compartments keep
the vessel afloat with ample freeboard, so if any other compartment 
is flooded,in fact even with the two middle compartments flooded, 
the yacht remains buoyant. The use of the liferaft would only be 
necessary in the unlikely event of fire. All lifesaving equipment is 
stowed in a wheelhouse recess and cannot be washed overboard. 
Consideration has been given to sailing in light ice,so as a result the 
Bestevaer 53ST has no seacocks, but standpipes,and internal 
cooling for the engine with a dry exhaust.Reinforced 10 mm plating 
and a strong longitudinal girderin the bow all add to peace of 
mind. Central heating adds to the creature comforts, as does the
coal burning stove.”\</i\>\</div\>\</div\>\</td\>

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

## #2 — voigtann1, 2007-11-03T18:51Z

```
<div style="text-align:justify"></div>
```

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

## #3 — Troxy, 2007-11-03T22:48Z

Det enklaste är väl att byta Doctype till Transitional som tillåter align-attributet. Då slipper du ändra överallt i HTML-koden.

```
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
```

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

---

Tråden på webben: https://www.webforum.nu/amne/html-css/166086-problem-div-align
