box schaalt niet mee met beeld formaat
Kijk HIER
Maar het lukt mij niet.
Hier is mijn css
Code (php)
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
/*-----------------------------------------------------
| html, body |
-----------------------------------------------------*/
html
{
background-color: #DBDBDB;
background-image: url('img/1.jpg');
background-size: 100%;
background-repeat: no-repeat;
background-attachment: fixed;
height: 101%;
}
body
{
padding : 0;
margin-left: 0%;
margin-right: 0%;
margin-bottom: 0%;
margin-top: 0%;
}
/*------------------------------------------------------
| input, textarea, select |
------------------------------------------------------*/
input, textarea, select
{
font-family: Arial;
font-size: 14px;
color: #ffffff;
background-color: #ffffff;
background-image: url('');
border-style: ridge;
border: #ffffff 3px;
padding: 1pt;
}
/*------------------------------------------------------
| container |
------------------------------------------------------*/
.container
{
top: 0px;
overflow: hidden;
background-image: url('');
width: 70%;
margin-left: 15%;
margin-right: 15%;
padding: 0px;
border-style: ridge;
border: #ffffff 0px;
}
.container A:link { color: #ffffff; }
.container A:visited { color: #ffffff; }
.container A:hover { color: #c4c4c4; }
.container A:active { color: #ffffff; }
/*------------------------------------------------------
| header menu links rechts |
------------------------------------------------------*/
.header
{
top: 0px;
height: 150px;
background-image:url('img/ogen.gif');
padding: 3pt;
background-size: 100%;
background-repeat: no-repeat;
background-attachment: fixed;
}
.menu
{
height: 26px;
text-align: right;
font-family:"Times New Roman", Times, serif;
font-size: 16px;
text-transform:uppercase;
font-weight: bold;
background-image: url('');
padding: 4pt;
}
.links
{
background-image: url('');
width: 20%;
padding: 2px 10px 10px 20px;
float: left;
padding-bottom: 30000px;
margin-bottom: -29995px;
font-family: Arial;
font-size: 16px;
}
.rechts
{
background-image: url('');
width: 72%;
margin-left: 20px;
padding: 2px 10px 10px 10px;
padding-bottom: 30000px;
margin-bottom: -30000px;
font-family: Arial;
font-size: 16px;
float: left;
}
.boxed
{
border: 1px solid black ;
border-radius:25px;
-moz-border-radius:25px; /* Old Firefox */
background-color: #ffffff;
color: #000000;
background-image: url('');
padding: 3pt;
font-weight:bold;
opacity:0.3;
filter:alpha(opacity=70);
}
p.padding
{
padding-top:2px;
padding-bottom:2px;
padding-right:2px;
padding-left:5px;
}
/*------------------------------------------------------
| footer |
------------------------------------------------------*/
.footer
{
width: 70%;
margin-left: 15%;
margin-right: 15%;
background-image: url('');
text-align: center;
font-family:"Times New Roman", Times, serif;
font-size: 14px;
}
/*------------------------------------------------------
| eind |
------------------------------------------------------*/
| html, body |
-----------------------------------------------------*/
html
{
background-color: #DBDBDB;
background-image: url('img/1.jpg');
background-size: 100%;
background-repeat: no-repeat;
background-attachment: fixed;
height: 101%;
}
body
{
padding : 0;
margin-left: 0%;
margin-right: 0%;
margin-bottom: 0%;
margin-top: 0%;
}
/*------------------------------------------------------
| input, textarea, select |
------------------------------------------------------*/
input, textarea, select
{
font-family: Arial;
font-size: 14px;
color: #ffffff;
background-color: #ffffff;
background-image: url('');
border-style: ridge;
border: #ffffff 3px;
padding: 1pt;
}
/*------------------------------------------------------
| container |
------------------------------------------------------*/
.container
{
top: 0px;
overflow: hidden;
background-image: url('');
width: 70%;
margin-left: 15%;
margin-right: 15%;
padding: 0px;
border-style: ridge;
border: #ffffff 0px;
}
.container A:link { color: #ffffff; }
.container A:visited { color: #ffffff; }
.container A:hover { color: #c4c4c4; }
.container A:active { color: #ffffff; }
/*------------------------------------------------------
| header menu links rechts |
------------------------------------------------------*/
.header
{
top: 0px;
height: 150px;
background-image:url('img/ogen.gif');
padding: 3pt;
background-size: 100%;
background-repeat: no-repeat;
background-attachment: fixed;
}
.menu
{
height: 26px;
text-align: right;
font-family:"Times New Roman", Times, serif;
font-size: 16px;
text-transform:uppercase;
font-weight: bold;
background-image: url('');
padding: 4pt;
}
.links
{
background-image: url('');
width: 20%;
padding: 2px 10px 10px 20px;
float: left;
padding-bottom: 30000px;
margin-bottom: -29995px;
font-family: Arial;
font-size: 16px;
}
.rechts
{
background-image: url('');
width: 72%;
margin-left: 20px;
padding: 2px 10px 10px 10px;
padding-bottom: 30000px;
margin-bottom: -30000px;
font-family: Arial;
font-size: 16px;
float: left;
}
.boxed
{
border: 1px solid black ;
border-radius:25px;
-moz-border-radius:25px; /* Old Firefox */
background-color: #ffffff;
color: #000000;
background-image: url('');
padding: 3pt;
font-weight:bold;
opacity:0.3;
filter:alpha(opacity=70);
}
p.padding
{
padding-top:2px;
padding-bottom:2px;
padding-right:2px;
padding-left:5px;
}
/*------------------------------------------------------
| footer |
------------------------------------------------------*/
.footer
{
width: 70%;
margin-left: 15%;
margin-right: 15%;
background-image: url('');
text-align: center;
font-family:"Times New Roman", Times, serif;
font-size: 14px;
}
/*------------------------------------------------------
| eind |
------------------------------------------------------*/
Kan iemand mij vertellen wat ik hie fout doe.
Alvast bedankt
Die paarse background?
This text is enclosed in a box.
En die met de tekst uitleg van het lorum ipsem.
Deze schruiven onder elkaar door als ik het op een kleiner scherm bekijk.
Gewijzigd op 21/02/2013 16:08:00 door Arthur Heijmen
---
float: left; is niet echt uitgevonden om alle andere html-element rechts te zetten. Maar wel om tekst om een element te hullen.
bv. zo: de foto van Hugo Camps staat op float: right; de tekst hult zich er om (langs links).
http://www.demorgen.be/dm/nl/2461/Opinie/article/detail/1582567/2013/02/20/pdw-was-een-vrijheidsrebel-op-ijzers-a-la-lettre.dhtml
---
Een mogelijke piste:
zet
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
.container {
position: relative;
}
.links {
position: absolute;
z-index: 5;
top: 0;
left: 0;
width: 20%;
}
.rechts {
margin-left: 20%;
/* geen width meegeven */
}
position: relative;
}
.links {
position: absolute;
z-index: 5;
top: 0;
left: 0;
width: 20%;
}
.rechts {
margin-left: 20%;
/* geen width meegeven */
}
... je moet dat wel verder uitwerken, niet zomaar copy/pasten.
--
Zoek ook eens op "faux columns"
bv. met 978 grid: http://978.gs/
Als je je site in zo'n structuur zet; staat alles gegarandeerd mooi onder mekaar.
Dan ontwerp je je site wel met de gedachte om alles mooi in denkbeeldige kolommen te zetten
Oke bedankt, ga even kijken als het zo zal gaan lukken.