FOK!forum / Digital Corner / [css] voor dummies
Chandlerwoensdag 20 juli 2005 @ 13:24
Omdat ik het topic niet kon vinden via google en fok.

weet iemand wat hier fout gaat!

Ik maak buttons voor bovenin (zie plaatje) alleen deze hebben een vaste breedte ennuh dat komt niet door in de layout? why?



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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<title>vertically and horizontally centred</title> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 

<style type="text/css"> 
body
{
  margin: 0;
  background-position: 0% 0%; 
  scrollbar-face-color: white; 
  background-attachment: fixed; 
  scrollbar-highlight-color: white; 
  scrollbar-shadow-color: #cccccc; 
  scrollbar-arrow-color: #99cc99; 
  scrollbar-track-color: white; 
  scrollbar-darkshadow-color: white; 
  scrollbar-base-color: #cccccc; 
  scrollbar-3d-light-color: white;
  font-family: verdana;
  font-size: 8pt;

}

#center
{
  position: absolute;
  top: 5px; /* for IE-mac */
  left: 0;


/* Hide from IE-mac */ 
#center
{
  top: 50%;
  width: 100%;
  margin-top: -200px;
  text-align: center;
  min-width: 800px;

/* End hide from IE-mac */ 

#main
{
  width: 800px;
  height: 400px;
  margin: 0 auto;
  text-align: left;
  border: 1px solid black;
}

#top
{
  width: 100%; 
  height: 50px;
}

#middle
{
  height: 350px; 
  text-align: left;
  margin: 5px;
}

#middlecontainer
{
  height: 340px; 
  width: 100%;
}

#left
{
  float: left; 
  height: 100%; 
  width: 383px;
  padding-left: 10px; 
  overflow: auto;
  border: 1px solid #cccccc;
}

#right
{
  float: right; 
  margin-left: 5px;
  height: 340px; 
  width: 390px;
}

#righttop
{
  height: 95%;
}

#rightbottom
{
  height: 5%; 
  text-align: left;
}

.button
{
  z-index: 9;
  width: 100px;
  margin: 5px;
  height: 25px;
  padding: 5px;
  color: green;
  background-color: A0C6F0;
  text-align: center;
  border: 1px solid red;
  underline: none;
  display: inline;
}
</style> 
</head>
 
<body> 
  <div id="center"> 
    <div id="main"> 
      <div id="top">
        <div class="button">1test</div> 
        <div class="button">test</div> 
        <div class="button">test</div>
        <div class="button">test</div>
        <div class="button">test</div>
        <div class="button">test</div>
        <div class="button">test</div>
        <div class="button">test</div>
        <div class="button">test</div>
        <div class="button">test</div>
        <div class="button">test</div>
        <div class="button">test1</div>
      </div>
      <div id="middle">
        <div id="middlecontainer">
          <div id="left"><br /><br /><br /><strong>Left</strong><br /><br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br />Left<br /></div>
            <div id="right">
               <div id="righttop">Top</div>
               <div id="rightbottom">Bottom</div>
            </div>
          </div>
        </div>
      </div> 
    </div>
  </div> 
</body> 
</html>


Meer foutjes gezien?! vertel ze graag!
Berkerywoensdag 20 juli 2005 @ 14:04
[CSS] voor dummietjes {deel2}

Gewoon de topic lijst op meer dagen zetten, en dan ctrl-F'en met css
Chandlerwoensdag 20 juli 2005 @ 15:48
tnx, dan post ik daar.
QuietGuywoensdag 20 juli 2005 @ 15:59
dicht