schwarzer Framerand

Status
Nicht offen für weitere Antworten.
G

GreenThunder

Hallo,

ich habe auf einer Seite folgendes Problem. Ich möchte, dass der Rand meiner Frames Schwarz ist. Laut SelfHTML müsste es so gehen:

PHP:
<html>
<head>
<title>main</title>
<frameset  rows="75,*" frameborder="2px" framespacing="2px" bordercolor="#000000">
   <frame src="titel.html" name="titel" noresize scrolling="no">
   <frameset  cols="110,*" bordercolor="#000000" frameborder="2px">
     <frame src="menue.html" name="menue" noresize scrolling="no">
     <frame src="inhalt.html" name="inhalt" noresize>
   </frameset>
</frameset>
</head>
<body>
</body>
</html>

Leider sind aber die Ränder weiß. :-(
Woran liegt das?
 
Hallo!

Du hast frameborder="2px" angegeben - und das im FrameSet.
Du kannst es aber nur in den Frame-Tags schreiben (laut SelfHTML soll deine Variante Broser-Konform sein - offenbar aber nicht?!).
 
Probiers doch mal mit CSS:
Code:
<html>
<head>
<title>main</title>
<style type="text/css">
<!--
frame{border:2px solid black;}
-->
</style>
</head>
<frameset  rows="75,*" frameborder="0" framespacing="0" border="0">
   <frame src="titel.html" name="titel" noresize scrolling="no">
   <frameset  cols="110,*">
     <frame src="menue.html" name="menue" noresize scrolling="no">
     <frame src="inhalt.html" name="inhalt" noresize>
   </frameset>
</frameset>
</html>
 
Danke, das hat geklappt.

Warum muss ich aber die Randstärke zweimal eingeben?
Einmal im CSS-Teil
PHP:
frame{border:2px solid black;}
und einmal im HTML-Teil
PHP:
<frameset  rows="75,*" frameborder="0" framespacing="0">
. Wenn ich eins von beiden Weg lasse sieht es nicht so aus wie ich es mir vorstelle. Komisch!
 
Status
Nicht offen für weitere Antworten.
Zurück