dadie
21.05.2005, 12:40
Hallo ,
Ich beschäftige mich ja mit UVD 4.zero nun habe ich ja vor CSS in Purer form zu benutzen
aber irgentwie hasst mich CSS -.-'
Einen einfachen code will ich machen den Interpretiert aber jeder Browser irgentwie anderrs -.-
Dabei will ich nur 2 DIV Felder nebeinander anordern !
Aber das ist anscheinend nett so einfach aber sehr selber :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>CSS-Layout 1</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
<!--
body
{
color :black ;
background-color:#f0f0f0;
font-family : verdana, helvetica, sans-serif;
font-size : 13px;
margin : 5px;
padding:0px;
}
.box1a{float:left;padding:5px;margin:0px 0px 5px 0px;border:1px solid black;height:75px;}
.box1b{float:left;padding:5px;margin:0px 0px 0px 0px;border:1px solid black;height:75px;}
.box1c{float:left;padding:0px;margin:0px 0px 0px 0px;border:1px solid black;height:75px;left:5px; right:5px; top:5px;width:100%;}
body>.box1c{position:fixed;}
-->
</style>
</head>
<body>
<div class="box1c" >
<div class="box1a" style="width:225px;">
1a
</div>
<div class="box1b" >
<div style="width:100%;" >
1b
</div>
</div>
</div>
</body>
</html>
So der IE macht es irgentwie so wie ich will oO? (das war schon verdächtig)
Also Starte ich Mozilla -.- da siht es dann so aus das 1c 100% Its ja aber 1b nur so lange wie der inhalt obwohl er doch auch 100% hat oO?
Opera macht es noch cooler bei Opera sind die unterinander -.-
Kann mir mal das jemand erklähren ?
es ist ein fehler forhanden (weil der IE es So macht wie ich will) nur wo ?
Mfg Dadie
Ich beschäftige mich ja mit UVD 4.zero nun habe ich ja vor CSS in Purer form zu benutzen
aber irgentwie hasst mich CSS -.-'
Einen einfachen code will ich machen den Interpretiert aber jeder Browser irgentwie anderrs -.-
Dabei will ich nur 2 DIV Felder nebeinander anordern !
Aber das ist anscheinend nett so einfach aber sehr selber :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>CSS-Layout 1</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
<!--
body
{
color :black ;
background-color:#f0f0f0;
font-family : verdana, helvetica, sans-serif;
font-size : 13px;
margin : 5px;
padding:0px;
}
.box1a{float:left;padding:5px;margin:0px 0px 5px 0px;border:1px solid black;height:75px;}
.box1b{float:left;padding:5px;margin:0px 0px 0px 0px;border:1px solid black;height:75px;}
.box1c{float:left;padding:0px;margin:0px 0px 0px 0px;border:1px solid black;height:75px;left:5px; right:5px; top:5px;width:100%;}
body>.box1c{position:fixed;}
-->
</style>
</head>
<body>
<div class="box1c" >
<div class="box1a" style="width:225px;">
1a
</div>
<div class="box1b" >
<div style="width:100%;" >
1b
</div>
</div>
</div>
</body>
</html>
So der IE macht es irgentwie so wie ich will oO? (das war schon verdächtig)
Also Starte ich Mozilla -.- da siht es dann so aus das 1c 100% Its ja aber 1b nur so lange wie der inhalt obwohl er doch auch 100% hat oO?
Opera macht es noch cooler bei Opera sind die unterinander -.-
Kann mir mal das jemand erklähren ?
es ist ein fehler forhanden (weil der IE es So macht wie ich will) nur wo ?
Mfg Dadie