Versio

Div wil niet komen

Overzicht Reageren

Chi Lion

Chi Lion

15/09/2010 10:48:18
Quote Anchor link
Nee, de titel duidt niet aan dat het een eigenzinnige div is of een mannetjes div die maar niet wil komen.

Het duidt meer op het volgende probleem:
Ik heb een style.css en een index.html

Als ik index.html open in welke browser dan ook gaat alles goed, tot het punt dat hij main_head_hr en main_head_pic aanroept die laat hij gewoon niet zien oid.

index.html:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
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
<html>
    <head>
        <link href="style.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <style type="text/css">
    
    </style>
    </head>
    <body>
    
    <div class="container">    
        <div class="header"></div>
        <br />
        <div class="main_head">
            <div class="main_head_nav">
                Hallo etc
            </div>
            <div class="main_head_hr">
                Hallo etc
            </div>
            <div class="main_head_pic">
                Hallo etc
               </div>
        </div>  
        <br />
        
            
     </div>
            
</body>
</html>

style.css:
Code (php)
PHP script in nieuw venster Selecteer het PHP script
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
body {
    background-image: url(images/back.png);
    background-repeat: repeat-x;
}
.container{
    position:            absolute;
    top:                0px;
    left:                -440px;
    margin-left:        50%;
    width:                878px;
    background-image:    url(images/main.png);
    background-repeat:    no-repeat;
}

.header {
    height:                50px;
    width:                100%;
}

.main_head {
    position:            relative;
    width:                628px;
    margin-left:        60px;
    overflow:            hidden;
    border:                3px solid pink;
    height:                250px;
}
        
        .main_head_nav{
            border:            1px solid orange;            
            width:            300px;
            height:            100%;
        }
        
        .main_head_hr{
            border:            2px solid purple;            
            width:            28px;
            height:            100%;
        }
        
        .main_head_pic{
            border:            20px solid blue;            
            width:            300px;
            height:            100%;
        }

}



Mod edit The Dutch Guy:
Gelieve code tussen code tags te plaatsen.
Gewijzigd op 15/09/2010 11:07:09 door Bas IJzelendoorn
 
PHP hulp

PHP hulp

24/05/2012 10:00:59
Gesponsorde koppelingen:
 
Obelix en Idefix

Obelix en Idefix

15/09/2010 11:51:26
Quote Anchor link
Je geeft zowel de main_head_nav, hr en pic een hoogte mee van 100%. Volgens mij gaat dat niet werken.
 
Chi Lion

Chi Lion

15/09/2010 12:18:22
Quote Anchor link
Zou wel kunnen, alleen hij zet ze alsnog onder elkaar.

www.chilion.nl/oormerk

Toevoeging op 15/09/2010 12:30:41:

Fixed. margin left verwijderd.
 
FRizZL isMijnUsername

FRizZL isMijnUsername

15/09/2010 12:46:18
Quote Anchor link
[off]_O- LOL @ topictitel[/off]
 



Overzicht Reageren

Get Adobe Flash player