Toon posts:

[CSS] Border :S

Pagina: 1
Acties:
  • 105 views sinds 30-01-2008

Verwijderd

Topicstarter
Ik mis bij devolgende code een border om childDiv en childDiv2... Ik zit hier nu al tijden op te knagen en ik kom er maar niet uit. Ik heb de search al gebruikt, maar die heeft me niet kunnen helpen. Hier kan je zien wat ik bedoel.
WAT DOE IK FOUT??
Hier kan je de page zien: http://members.home.nl/mariusjansen/parent.php
code:
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<HTML>
<HEAD>
<TITLE>Test</TITLE>

<style type="text/css">

#parentDiv{
border:solid 1px black;
position:relative;
padding:0px;
top:1%;
width:700px;
left: 50%;
margin-left: -350px;
background-color:lightblue;
}

#Header     {
margin:0px 0px 0px 0px;
padding:13px 0px 10px 10px;
height:40px;
border-style:solid;
width:700px;
border-color:black;
border-width:0px 0px 1px 0px ;
line-height:11px;
background-color:#eee;
}

#childDiv  {
padding:0px;
position:absolute; 
width:200px;
height:300px;
background-color:white;
}

#childDiv2 {
width:501px;
left: 200px;
position:absolute;
border:solid;
border-width:0px 0px 0px 1px;
height:590px;
border-color:black;
background-color:white;
}

#Menu     {
position:absolute;
top:20px;
left:14px;
width:170px;
padding:10px;
background-color:#eee;
border-top:1px solid #999;
border-right:1px solid #999;
border-bottom:1px solid #999;
border-left: 1px solid #999;
line-height:17px;
}

#Footer   {
border-style:solid;
border-color:black;
border-width:1px 1px 1px 1px;
position:relative;
width:700px;
height:40px;
line-height:11px;
left: 50%;
margin-left: -350px;
background-color:#eee;
padding:13px 0px 10px 10px;
}

body {
margin:0px 0px 0px 0px;
padding:0px;
font-family:verdana, arial, helvetica, sans-serif;
color:#333;
background-color  :white;
font:11px/20px verdana, arial, helvetica, sans-serif;
}

h1 {
margin:0px 0px 15px 0px;
padding:0px;
font-size:24px;
line-height:28px;
font-weight:900;
color:#ccc;
}
    
</style>
</head>
<body>

<DIV ID="parentDiv">
<DIV ID="Header"><SPAN ID="titel">HEADER</SPAN></A> </DIV>

<DIV ID="childDiv">
<H1>childDiv</H1>
</DIV>

<DIV ID="childDiv2">

<H1>childDiv2</H1><P></P>
</DIV>
</DIV>
</body>
</html>


Hoop dat de rotzooi nu wat minder erg is...

[ Voor 18% gewijzigd door Verwijderd op 19-06-2003 23:31 . Reden: Rotzooi opruimen :) ]


  • Batsies
  • Registratie: Mei 2002
  • Laatst online: 27-01-2022

Batsies

E-Developing

Wat een rotzooi, zorg ervoor eerst alles goed uit te lijnen en dit hoort trouwens bij de buren!, maar wact dacht je van een border erin gooien?

E-Developing


Verwijderd

Topicstarter
Ja, idd een rotzooi... Sorry, ik zie dat nu pas...
Ik wil dus een border van de parent hebben. En die heb ik wel aangemaakt.
border:solid 1px black;

Ik wil dus niet de border van de childDiv en childDiv2 gebruiken, omdat ik dan met problemen kom te zitten als de ene childDiv groter wordt dan de ander. Dan sluit dat onderin niet meer mooi aan.

  • DinX
  • Registratie: Februari 2002
  • Laatst online: 20:26

DinX

Motormuis

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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<HTML>
<HEAD>
<TITLE>Test</TITLE>

<style type="text/css">
    #parentDiv{
        border:solid 1px black;
        position:relative;
        padding:0px;
        top:1%;
        width:700px;
        left: 50%;
        margin-left: -350px;
        background-color:lightblue;
    }
    
    #Header{
        margin:0px 0px 0px 0px;
        padding:13px 0px 10px 10px;
        height:40px;
        border-style:solid;
        width:700px;
        border-color:black;
        border-width:0px 0px 1px 0px ;
        line-height:11px;
        background-color:#eee;
    }
    
    #childDiv{
        padding:0px;
        position:absolute; 
        width:200px;
        height:300px;
        background-color:white;
    }
    
    #childDiv2{
        width:501px;
        left: 200px;
        position:absolute;
        border:solid;
        border-width:0px 0px 0px 1px;
        height:590px;
        border-color:black;
        background-color:white;
    }
    
    #Menu{
        position:absolute;
        top:20px;
        left:14px;
        width:170px;
        padding:10px;
        background-color:#eee;
        border-top:1px solid #999;
        border-right:1px solid #999;
        border-bottom:1px solid #999;
        border-left: 1px solid #999;
        line-height:17px;
    }
    
    #Footer{
        border-style:solid;
        border-color:black;
        border-width:1px 1px 1px 1px;
        position:relative;
        width:700px;
        height:40px;
        line-height:11px;
        left: 50%; /* Centreer-truc */
        margin-left: -350px; /* Centreer-truc, - ( width gedeeld door 2 )*/
        background-color:#eee;
        padding:13px 0px 10px 10px;
    }
    
    body {
        margin:0px 0px 0px 0px;
        padding:0px;
        font-family:verdana, arial, helvetica, sans-serif;
        color:#333;
        background-color  :white;
        font:11px/20px verdana, arial, helvetica, sans-serif;
    }

    h1 {
        margin:0px 0px 15px 0px;
        padding:0px;
        font-size:24px;
        line-height:28px;
        font-weight:900;
        color:#ccc;
    }
    
</style>
</head>

<body>
    <DIV ID="parentDiv">
        <DIV ID="Header">
            <SPAN ID="titel">HEADER
            </SPAN></A> 
        </DIV>

        <DIV ID="childDiv">
            <H1>childDiv</H1>
        </DIV>

        <DIV ID="childDiv2">
            <H1>childDiv2</H1><P></P>
        </DIV>
    </DIV>
</body>
</html>


Misschien iets leesbaarder zo :)
Ik ga nu even de code bekijken, maar wat doet die </A> daar zo alleen op regel 100 ?

Marokko 2015: Route
Sat Tracker: SpotWalla
Blog: Gone for a ride


Verwijderd

Topicstarter
Hey bedankt! :) Zekerder leesbaarder zo. Handig die nummertjes ervoor. ;)
Die </A> was van een link die ik weer heb weggehaald. Kan ook niet het probleem zijn.

  • DinX
  • Registratie: Februari 2002
  • Laatst online: 20:26

DinX

Motormuis

HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#childDiv{
        padding:0px;
        position:absolute; 
        border:solid;
        width:200px;
        height:300px;
        background-color:white;
        border-width:1px 1px 1px 1px;
        border-color:black;
    }
    
    #childDiv2{
        width:501px;
        left: 200px;
        position:absolute;
        border:solid;
        border-width:1px 1px 1px 1px;
        height:590px;
        border-color:black;
        background-color:white;
    }


Zo ? http://users.skynet.be/DinX/border.html ?

Je had je border op meer plaatsen de breedte van 1px moeten geven, en hem solid maken.

En nog een tip, als je geen webspace hebt die php aankan moet je je files niet als .php opslaan, je krijgt dan gewoon de code te zien.

[ Voor 19% gewijzigd door DinX op 19-06-2003 23:43 ]

Marokko 2015: Route
Sat Tracker: SpotWalla
Blog: Gone for a ride


Verwijderd

Topicstarter
DinX schreef op 19 juni 2003 @ 23:41:
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#childDiv{
        padding:0px;
        position:absolute; 
        border:solid;
        width:200px;
        height:300px;
        background-color:white;
        border-width:1px 1px 1px 1px;
        border-color:black;
    }
    
    #childDiv2{
        width:501px;
        left: 200px;
        position:absolute;
        border:solid;
        border-width:1px 1px 1px 1px;
        height:590px;
        border-color:black;
        background-color:white;
    }


Zo ? http://users.skynet.be/DinX/border.html ?

Je had je border op meer plaatsen de breedte van 1px moeten geven, en hem solid maken.
Thanx, maar zo bedoel ik het niet. Ik bedoel dat er hier omheen gewoon 1 grote lijn wordt getrokken. Dus niet die van child en child1 apart.

[ Voor 30% gewijzigd door Verwijderd op 19-06-2003 23:46 ]


Verwijderd

Topicstarter
http://members.home.nl/mariusjansen/page.JPG
zo wil ik het hebben. en dat die lijn dan van de parent komt...

[ Voor 3% gewijzigd door Verwijderd op 19-06-2003 23:49 ]


  • DinX
  • Registratie: Februari 2002
  • Laatst online: 20:26

DinX

Motormuis

http://users.skynet.be/DinX/border2.html :?

height vergeten bij parent style

[ Voor 30% gewijzigd door DinX op 19-06-2003 23:56 ]

Marokko 2015: Route
Sat Tracker: SpotWalla
Blog: Gone for a ride


Verwijderd

Topicstarter
Hm.. Kom enigszins in de buurt. Hoe heb je die linker lijn voor elkaar gekregen..? Die komt niet van de child af. Die lijn moet nu nog rechts en onder mooi aansluiten en doorlopen.. Maar hoe?

  • DinX
  • Registratie: Februari 2002
  • Laatst online: 20:26

DinX

Motormuis

Ik heb hem gewoon gemaakt zoals het er op je pic uit ziet. Kan zijn dat het er bij jou iets anders uit ziet, maar dat zal wel komen doordat er met absolute en relatieve positionering door elkaar gewerkt is.

Dit is eigenlijk gewoon wat prulwerk, dat kan je zelf toch ook wel hè :p
Verander de hoogtes en breedtes eens enzo.

Marokko 2015: Route
Sat Tracker: SpotWalla
Blog: Gone for a ride


Verwijderd

Topicstarter
Bedankt voor je moeite! :)
Maar, ik mis rechts nog de lijn, maar die zit er onder wel... En de onderste lijn mis ik ook. *Zucht* :? Ja, dat prulwerk kan ik wel natuurlijk, maar het klopt in mijn browser (IE6) nog niet helemaal... Die Child2 gaat namelijk over de parent heen met de border ofzo...

  • DinX
  • Registratie: Februari 2002
  • Laatst online: 20:26

DinX

Motormuis

Verwijderd schreef op 20 June 2003 @ 00:06:
Bedankt voor je moeite! :)
Maar, ik mis rechts nog de lijn, maar die zit er onder wel... En de onderste lijn mis ik ook. *Zucht* :? Ja, dat prulwerk kan ik wel natuurlijk, maar het klopt in mijn browser (IE6) nog niet helemaal... Die Child2 gaat namelijk over de parent heen met de border ofzo...
Ik zie nu dat hij er in IE niet goed uit ziet. Rechts ontbeekt inderdaad een stukje.
In mozilla werkt hij perfect. Ik heb het al eerder gehad dat IE anders met de breedtes omspringt dan mozilla. :X

Marokko 2015: Route
Sat Tracker: SpotWalla
Blog: Gone for a ride


Verwijderd

Topicstarter
Hmm.. Ja probleem dan.. :'( De site gaat toch vooral bekeken worden door IE-mensen... Nogmaals bedankt voor je moeite!

  • Rickets
  • Registratie: Augustus 2001
  • Niet online

Rickets

Finger and a shift

Dat is niet de goede instelling natuurlijk ;)
Cascading Stylesheet:
1
2
3
4
5
*
{
   box-sizing: border-box
   -moz-box-sizing: border-box;
}
Dit zorgt ervoor dat Mozilla en IE hetzelfde box-model gebruiken.

If some cunt can fuck something up, that cunt will pick the worst possible time to fucking fuck it up, because that cunt’s a cunt.


  • Jaymz
  • Registratie: Januari 2000
  • Laatst online: 15:28

Jaymz

Keep on moving !

P&W -> W&G

  • Pelle
  • Registratie: Januari 2001
  • Laatst online: 22-08 02:40

Pelle

🚴‍♂️

* Pelle schopt Jaymz

Luie donder :+

Oh ja, basic CSS stuff dit; www.w3schools.com helpt je verder :)
Pagina: 1

Dit topic is gesloten.