hallo,
Ik ben net aangesloten op dit forum en heb wat web-ervaring. Tot nu toe vooral websites in tabellen gemaakt. Sinds kort verken ik de wereld van DIVs, maar positioneren heb ik nog niet helemaal onder de knie.
Ik gebruik alles teveel door elkaar denk ik: margin, position, placement, ..
Momenteel heb ik heb een pagina van klaarstaan (verborgen online), en die toont goed in alle browsers... behalve Internet Explorer 6.
Ik heb 3 delen die ik naast elkaar wil tonen. Bij het eerste deel heb ik gewerkt met een float left, en de twee volgende DIV’s reageren daar niet op in IE6
Dit is mijn CSS (ik weet nog niet hoe ik deze codes overzichtelijk in dit bericht kan plaatsen: copy-paste?)
En dit is de broncode
Hopelijk kan er iemand mij in de juiste richting duwen?
Groeten,
Eveline
Ik ben net aangesloten op dit forum en heb wat web-ervaring. Tot nu toe vooral websites in tabellen gemaakt. Sinds kort verken ik de wereld van DIVs, maar positioneren heb ik nog niet helemaal onder de knie.
Ik gebruik alles teveel door elkaar denk ik: margin, position, placement, ..
Momenteel heb ik heb een pagina van klaarstaan (verborgen online), en die toont goed in alle browsers... behalve Internet Explorer 6.
Ik heb 3 delen die ik naast elkaar wil tonen. Bij het eerste deel heb ik gewerkt met een float left, en de twee volgende DIV’s reageren daar niet op in IE6
Dit is mijn CSS (ik weet nog niet hoe ik deze codes overzichtelijk in dit bericht kan plaatsen: copy-paste?)
Cascading Stylesheet:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
| body { font: 100% Verdana, Arial, Helvetica, sans-serif; background: #666666; margin: 0; padding: 0; text-align: center; color: #000000; background-color: #FFF; background-image: url(); background-repeat: no-repeat; } .oneColFixCtr #container { border: 0px solid #CCC; background-image: url(../images/BG_.jpg); background-repeat: no-repeat; margin-right: auto; margin-left: auto; padding: 0px; margin-top: 0px; margin-bottom: 0px; height: 700px; width: 950px; } .oneColFixCtr #mainContent { padding-top: 0px; padding-right: 10px; padding-bottom: 0; padding-left: 15px; float: left; color: #f7941e; font-family: Verdana, Geneva, sans-serif; font-size: 10pt; background-color: #373535; height: 653px; text-align: left; width: 345px; position: relative; left: 85px; } .oneColFixCtr #footer { text-align: right; width: 950px; margin-right: auto; margin-left: auto; margin-top: 0px; margin-bottom: 0px; color: #CCC; } #navigatie { text-align: left; margin-right: 353px; margin-left: 455px; } body,td,th { font-size: 10pt; margin-right: auto; margin-left: auto; margin-top: 30px; margin-bottom: 0px; } #fish { margin-left: 597px; margin-top: -653px; |
En dit is de broncode
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <style type="text/css"> <!-- --> </style> <link href="_.css" rel="stylesheet" type="text/css" /> <script type="text/javascript"> <!-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script><style type="text/css"> <!-- body { background-color: #000; margin-top: 60px; } --> </style></head> <body class="oneColFixCtr" onload="MM_preloadImages('images/button_contact_RO.jpg','images/button__RO.jpg','images/button_werkwijze_RO.jpg')"> <div id="container"> <div id="mainContent"> <h1> </h1> <p><strong>Van waar komt de naam eigenlijk?</strong></p> <p> tekst </p> </div> <div class="oneColFixCtr" id="navigatie"><img src="../images/nav_top.jpg" width="142" height="442" align="absbottom" /><a href="portfolio/fullpage.html" target="_blank" onmouseover="MM_swapImage('Portfolio','','../images/button_portfolio_RO.jpg',1)" onmouseout="MM_swapImgRestore()"><img src="../images/button_portfolio.jpg" alt="Portfolio" name="Portfolio" width="142" height="44" border="0" align="top" id="Portfolio" /></a><img src="../images/button__RO.jpg" width="142" height="48" align="top" /><a href="werkwijze.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Werkwijze','','../images/button_werkwijze_RO.jpg',1)"><img src="../images/button_werkwijze.jpg" alt="Werkwijze" name="Werkwijze" width="142" height="52" border="0" align="top" id="Werkwijze" /></a><a href="contact.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('contact','','../images/button_contact_RO.jpg',1)"><img src="../images/button_contact.jpg" alt="contact" name="contact" width="142" height="40" border="0" align="top" id="contact" /></a><img src="../images/nav_bottom.jpg" width="142" height="27" align="top" /></div> <div id="fish"><img src="../images/fish.jpg" width="353" height="653" alt="fish" /></div> <!-- end #container --> </div> </body> </html> |
Hopelijk kan er iemand mij in de juiste richting duwen?
Groeten,
Eveline