CSS: Inhalt verschwindet bei längerem content
knut
- css
hallo! ich habe ein probleme bei der verwendung Stylsheets. Ich habe eine datei namens format.css angelegt, die folgenden inhalt hat:
body {background-color:#FFFF99; color:#000077}
a:link { color:#000077; text-decoration:none; }
a:visited { color:#000077; text-decoration:none; }
a:active { color:#0000FF; text-decoration:none; }
p {font-family: Arial; font-size: 12pt, color:#000000}
h1 {font-family: Verdana; font-size: 10pt; color:#000077}
h2 {font-family: Verdana; font-size: 12pt; color:#000077}
h3 {font-family: Verdana; font-size: 20pt; color:#000077}
h4 {font-family: Verdana; font-size: 8pt; color:#000077}
Das ganze binde ich im <head> wie folgt ein:
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Titel</title>
<link rel="stylesheet" type="text/css" href="format.css">
<style type="text/css">
</head>
das ganze funktioniert auch wunderbar, nur wenn der Inhalt länger als die Fensterhöhe wird, wird die seite nicht mehr geladen und ich seh nur einen weissen screen. kürze ich den Inhalt wieder, klappt alles wunderbar. Das ganze passiert sowohl wenn die seite in frames eingebunden ist, aber auch sonst.
Kann einer helfen ? danke !
hallo knut,
welcher browser? syntaxfehler im stylesheet:
p {font-family: Arial; font-size: 12pt, color:#000000}
s/,/;/g (semikolon statt komma) gruss,
michael
ss:) zu:) ls:& fo:) de:> va:) ch:? n4:& rl:? br:< js:| ie:% fl:{ mo:|
danke für die syntax berichtigung.
Als Browser benutz ich Opera 7.22.
Online ist das ganze nicht, da ich erstmal vernünftig HTML lernen will bevor ich was online stelle
die komplette HTML datei sieht aber so aus:
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Titel..</title>
<link rel="stylesheet" type="text/css" href="format.css">
<style type="text/css">
</head>
<body>
<br>
<h1 align="center">
Was wir Ihnen bieten...<br><br>
</h1>
<table border="0" >
<colgroup>
<col width="25%">
<col width="*">
<col width="25%">
</colgroup>
<tr>
<td> </td>
<td>*Ausführung von Konservierungs- und Restaurierungsarbeiten an höfischen
und bürgerlichen Mobilar </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>*Beratung und restauratorische Betreuung Ihrer Objekte </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>*Erstellung eines Konservierungs- und Restaurierungskonzeptes </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>*Bestandsuntersuchung </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> *Schadenbefund und Dokumentation</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>*Original Handpolitur mit Schellack englischer und deutscher Art </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>*Beratung und restauratorische Betreuung Ihrer Objekte </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> *Restaurierung von Gemälden </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>*Restaurierung von gefassten Objekten </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>*Restaurierung von Uhrengehäusen <br>
(Feuervergoldung u. Boulletechnik)</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>*Metallrestaurierung </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>*Vergoldung<br>
(Reparatur und Neuvergoldung)</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>*Seminare zur Behandlung und Pflege von antiken Objekten</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td>*Stilberatung und Bewertung</td>
<td> </td>
</tr>
</table>
</body>
</html>
und wird als frameset eingebunden
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<title>Arbeitstiel</title>
</head>
<frameset border="0" frameborder="0" framespacing="0" cols="200,*">
<frame src="content\menu.html" noresize scrolling="no"
marginheigth="-10" name="menuframe">
<frameset border="0" frameborder="0" framespacing="0" rows="50,*,50">
<frame src="content\blank.html" noresize scrolling="no"
marginheigth="-10" name="blank1">
<frame src="content\mainpage.html" noresize marginheigth="-10"
name="mainframe" scrolling="auto">
<frame src="content\blank.html" noresize scrolling="no"
marginheigth="-10" name="blank2">
</frameset>
<noframes>
<body bgcolor="#000000" text="#FFFF00" vlink="#FF0000">
</body>
</noframes>
</frameset>
</html>
das problem taucht aber auch auf, wenn die Datei einzeln aufgerufen wird.
so, da ham was doch, das war ne murkserei ;-)
<style type="text/css">
hier denkt der browser es beginnt ein style bereich, den du nicht schliesst ;-) noch fragen, also weg damit.
<frameset border="0" frameborder="0" framespacing="0" cols="200,*">
<frame src="content\menu.html" noresize scrolling="no"
marginheigth="-10" name="menuframe">
<frameset border="0" frameborder="0" framespacing="0" rows="50,*,50">
<frame src="content\blank.html" noresize scrolling="no"
marginheigth="-10" name="blank1">
<frame src="content\mainpage.html" noresize marginheigth="-10"
name="mainframe" scrolling="auto">
<frame src="content\blank.html" noresize scrolling="no"
marginheigth="-10" name="blank2">
</frameset>
<noframes>
<body bgcolor="#000000" text="#FFFF00" vlink="#FF0000">
</body>
</noframes>
</frameset>
</html>
marginheight="-10", häh?
gruss
ich depp, besten dank!
marginheight="-10", häh?
war irgendwann bei einem exotischen browser bei nem kumpel ein Muss um dem abstand zwischen 2 frames wegzubekommen ordentlich, ohne das
ne dünne weisse linie (1 Pixel breit)bleibt, is wohl im normalfall überflüssig.
nix depp, danke fürs feedback ;-) (das mit marginheight wusste ich nett)
gruss
Hallo,
was fürn browser? haste vielleicht mal ne URL? weil dann kann man sich
datt mal angucken ;-)
gruss