Autor |
Nachricht |
schokone
Threadersteller
Dabei seit: 29.11.2008
Ort: Osnabrück
Alter: 38
Geschlecht:
|
Verfasst Mi 14.01.2009 11:56
Titel Blocksatz im DIV |
|
|
Hallo liebes Forum,
habe folgenden Quellcode:
Code: |
<!--
#cont {
width: 360px;
margin-left: auto;
margin-right: auto;
}
#logo {
width: 360px;
text-align: center;
}
#adresse {
margin-top: 25px;
width: 50%;
height: 65px;
align: center;
float: left;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
}
#leistungen {
margin-top: 25px;
width: 50%;
height: 65px;
float: right;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
font-style: normal;
}
#impressum {
margin-top: 20px;
width: 360px;
font-family: Arial, Helvetica, sans-serif;
text-transform: capitalize;
font-size: 10px;
font-style: normal;
color: #F00;
}
#slogan {
margin-top: 35px;
width: 360px;
font-family: "Arial Black", Helvetica, sans-serif;
font-size: 12px;
text-align: justify;
font-style: normal;
}
-->
</style>
</head>
<body>
<div id="cont">
<div id="logo"><img src="/bla/logo.jpg" /></div>
<div id="adresse">adresse</div>
<div id="leistungen">Leistungen</div>
<div id="impressum">Impressum</div>
<div id="slogan">Dieser Text soll<br>im Blocksatz stehen!!!</div>
</div>
</body>
</html> |
Ich hab jetzt wirklich alles ausprobiert, google bis zur Erschöpfung durchforstet, selbst in diesem Forum Beiträge dazu gefunden, aber egal was ich mache, der Text im div="slogan" richtet sich stinknormal links aus. Wieso?
Ein lieben Dank schonmal im Vorraus und liebe Grüße!!!
|
|
|
|
|
remote
Dabei seit: 10.11.2006
Ort: /var/www/
Alter: 109
Geschlecht:
|
Verfasst Mi 14.01.2009 12:34
Titel
|
|
|
mal mehr als eine Zeile Text reingepackt?
Die letzte Zeile eines Absatzes läuft immer linksbündig aus.
|
|
|
|
|
Anzeige
|
|
|
Smooth-Graphics
Dabei seit: 22.05.2006
Ort: -
Alter: -
Geschlecht:
|
Verfasst Mi 14.01.2009 13:44
Titel
|
|
|
Hast du online nen Beispiel? Dann kann man dir sagen, ob das Problem wirklich am CSS liegt oder nur aufgrund des wenigen Texts besteht.
Jedenfalls kann ein Browser einfach sowieso keinen sinnvollen Blocksatz (leider), also solltest du ihn wenn möglich auch vermeiden, wenns schön lesbar bleiben soll (jedenfalls bei Fließtexten).
|
|
|
|
|
remote
Dabei seit: 10.11.2006
Ort: /var/www/
Alter: 109
Geschlecht:
|
Verfasst Mi 14.01.2009 15:20
Titel
|
|
|
ich hab seinen quelltext 1:1 kopiert und den text via c&p aufgefüllt - im FF3 stellt es sich richtig dar.
|
|
|
|
|
Smooth-Graphics
Dabei seit: 22.05.2006
Ort: -
Alter: -
Geschlecht:
|
Verfasst Mi 14.01.2009 15:27
Titel
|
|
|
remote hat geschrieben: | ich hab seinen quelltext 1:1 kopiert und den text via c&p aufgefüllt - im FF3 stellt es sich richtig dar. |
IE vllt?
|
|
|
|
|
schokone
Threadersteller
Dabei seit: 29.11.2008
Ort: Osnabrück
Alter: 38
Geschlecht:
|
Verfasst Mi 14.01.2009 15:35
Titel
|
|
|
Haha...ich glaub's nicht. Es liegt tatsächlich daran das die Zeilen zu Kurz sind.
Vielen, Vielen Dank für eure Antworten Liebe Grüße
|
|
|
|
|
|
|
|
Ähnliche Themen |
Div mit float bei Blocksatz?
Blocksatz in Photoshop?
Kein Blocksatz möglich
Schlechter Blocksatz in Photoshop ...
LiveCycle Blocksatz Problem
Photoshop CS2- Text im Blocksatz ausrichten?
|
|