Autor Beitrag
sourcehunter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 482

Win XP | Suse 10.1
Delphi 2005 Pers.
BeitragVerfasst: Mi 06.10.04 13:43 
Ich habe folgende Website "entworfen"

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<html>
<head>
<style type="text/css">
.head { position:absolute; background:#FF0000; height:100px; top:0px; left:0px; right:0px; text-align: center; } 
.navi { position:absolute; background:#00FF00; width:200px; left:0px; top:100px; bottom:0px; float: left; } 
.line { position:absolute; background:#00FFFF; width:20px; left:200px; top:100px; bottom:0px; float: left; }
.main { position:absolute; background:#0000FF; left:220px; top:100px; right:0px; bottom:0px;} 
</style>
</head>
<body>
<div class="head">head</div>
<div class="navi">navi</div>
<div class="line">line</div>
<div class="main">maindf</div>
</body>
</html>


Im IE sieht die Site wie folgt aus:
oben links ein rotes Rechteck,
darunter ein grünes Rechteck,
direkt daneben ein cyanfarbenes Rechteck,
und direkt daneben ein blaues Rechteck.

Ich wollte aber, dass das rote und das blaue Rechteck bis zum rechten Rand gehen und, dass das grüne, cyanfarbene und das blaue Rechteck bis zum unteren Rand, aber wenigstens auf gleiche Höhe gehen.

Falls ihr Vorschläge habt, wie ich das ohne Frames realisieren kann, währe ich sehr dankbar dafür. Wenn ihr auf die Idee kommt, dass ich das mit einer Scriptsprache erleiden soll (PHP,JavaScript,CGI), dann bitte auch einen Link zu einem Tutorial, wo alle Grundlagen für die Lösung drinstehen.

_________________
Linux und OpenSource rulez!
GSE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 740

Win 2k, Win XP Pro
D5 Prof, D6 Ent, D2k5 PE
BeitragVerfasst: Mi 06.10.04 13:48 
gibt die höhen und breiten mal in prozent an

mfg
GSE

_________________
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs
and the universe trying to produce bigger and better idiots. So far, the universe is winning. (Richard Cook)
sourcehunter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 482

Win XP | Suse 10.1
Delphi 2005 Pers.
BeitragVerfasst: Mi 06.10.04 14:01 
Hilt nichts.

Wenn ich zum Beispiel beim blauen rechteck die Breite auf 100% setze, dann ist es genauso breit wie das Fenster, fängt aber erst bei 220 Pixeln an., also ist die Website Breiter als das Fenster.

_________________
Linux und OpenSource rulez!
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mi 06.10.04 14:13 
Dann lass die halt über die ganze seite gehen und setz die andere Felder per z-index drüber.
musst halt dann noch per padding wert die platzierung des inhalts korrigieren.

_________________
JSXGraph
sourcehunter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 482

Win XP | Suse 10.1
Delphi 2005 Pers.
BeitragVerfasst: Mi 06.10.04 16:08 
Ich probiers.

_________________
Linux und OpenSource rulez!
sourcehunter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 482

Win XP | Suse 10.1
Delphi 2005 Pers.
BeitragVerfasst: Mi 06.10.04 16:36 
Mein Code sieht wie folgt aus:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<html>
<head>
<style type="text/css">
.head { position:absolute; background:#FF0000; height:100px; width:100%;  top:0px;   left:0px;   z-index:3; text-align: center; } 
.navi { position:absolute; background:#00FF00; height:100%;  width:200px; top:100px; left:0px;   z-index:2; } 
.line { position:absolute; background:#00FFFF; height:100%;  width:20px;  top:100px; left:200px; z-index:1; }
.main { position:absolute; background:#0000FF; height:100%;  width:100%;  top:100px; left:220px; z-index:0; } 
</style>
</head>
<body>
<div class="main">maindf</div>
<div class="line">line</div>
<div class="navi">navi</div>
<div class="head">head</div>
</body>
</html>


Wenn es das ist, was du meintest, dann funktioniert es nicht. Ich habe FireFox, IE und Opera ausprobiert.

_________________
Linux und OpenSource rulez!
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mi 06.10.04 17:35 
Nein, ich meinte so:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<html>
<head>
<style type="text/css">
.head { position:absolute; background:#FF0000; height:100px; width:100%;  top:0px;   left:0px;  z-index:3; text-align: center; } 
.navi { position:absolute; background:#00FF00; height:100%;  width:200px; top:0px;   left:0px;  z-index:2; padding-top: 100px; } 
.line { position:absolute; background:#00FFFF; height:100%;  width:220px; top:0px;   left:0px;  z-index:1; padding-top: 100px; padding-left: 200px; }
.main { position:absolute; background:#0000FF; height:100%;  width:100%;  top:0px;   left:0px;  z-index:0; padding-top: 100px; padding-left: 220px; } 
</style>
</head>
<body>
<div class="main">maindf</div>
<div class="line">line</div>
<div class="navi">navi</div>
<div class="head">head</div>
</body>
</html>

Also alles(!) links oben (0,0) ausrichten und den inhalt entsprechend "padden"

Funzt aber nur im IE!

_________________
JSXGraph
sourcehunter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 482

Win XP | Suse 10.1
Delphi 2005 Pers.
BeitragVerfasst: Mi 06.10.04 19:56 
Oh verdammt!

Aber:
Gibt es nicht eine Lösung, die für alle Browser geht, mal abgesehne von Tabellen-Layouts?

_________________
Linux und OpenSource rulez!
sourcehunter Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 482

Win XP | Suse 10.1
Delphi 2005 Pers.
BeitragVerfasst: Mi 06.10.04 20:08 
Im Opera kann ichs auch anzeigen, wenn ich es wie folgt verändere:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
<html>
<head>
<style type="text/css">
.head { position:absolute; background:#FF0000; height:100px; width:100%;  top:0px; left:0px;   z-index:3; text-align: center; } 
.navi { position:absolute; background:#00FF00; height:100%;  width:200px; top:0px; left:0px;   z-index:2; padding-top:100px; } 
.line { position:absolute; background:#00FFFF; height:100%;  width:20px;  top:0px; left:200px; z-index:1; padding-top:100px; }
.main { position:absolute; background:#0000FF; height:100%;  width:100%;  top:0px; left:0px;   z-index:0; padding-top:100px; padding-left:220px; } 
</style>
</head>
<body>
<div class="main">maindf</div>
<div class="line">line</div>
<div class="navi">navi</div>
<div class="head">head</div>
</body>
</html>


Im FireFox funktioniert es auch. Also Danke erst mal.

_________________
Linux und OpenSource rulez!