Prijs tabel responsive maken
Ik heb een website die zich aanpast aan het scherm van de gebruiker.
Nu moet hier een prijs tabel in. Alleen is deze dan niet responsive.
Hoe kan ik die respnsive maken? Ik heb al weat gezocht maar ik kom er niet in uit.
Hier heb ik mijn css code.
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
164
165
166
167
168
169
170
171
172
173
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
164
165
166
167
168
169
170
171
172
173
#fdw-pricing-table {
margin:0 auto;
text-align: center;
width: 928px; /* total computed width */
zoom: 1;
}
#fdw-pricing-table:before, #fdw-pricing-table:after {
content: "";
display: table
}
#fdw-pricing-table:after {
clear: both
}
/* --------------- */
#fdw-pricing-table .plan {
font: 13px 'Lucida Sans', 'trebuchet MS', Arial, Helvetica;
background: #fff;
border: 1px solid #ddd;
color: #333;
padding: 20px;
width: 180px;
float: left;
_display: inline; /* IE6 double margin fix */
position: relative;
margin: 0 5px;
-moz-box-shadow: 0 2px 2px -1px rgba(0,0,0,.3);
-webkit-box-shadow: 0 2px 2px -1px rgba(0,0,0,.3);
box-shadow: 0 2px 2px -1px rgba(0,0,0,.3);
}
#fdw-pricing-table .plan:after {
z-index: -1;
position: absolute;
content: "";
bottom: 10px;
right: 4px;
width: 80%;
top: 80%;
-webkit-box-shadow: 0 12px 5px rgba(0, 0, 0, .3);
-moz-box-shadow: 0 12px 5px rgba(0, 0, 0, .3);
box-shadow: 0 12px 5px rgba(0, 0, 0, .3);
-webkit-transform: rotate(3deg);
-moz-transform: rotate(3deg);
-o-transform: rotate(3deg);
-ms-transform: rotate(3deg);
transform: rotate(3deg);
}
#fdw-pricing-table .popular-plan {
top: -20px;
padding: 40px 20px;
}
/* --------------- */
#fdw-pricing-table .header {
position: relative;
font-size: 20px;
font-weight: normal;
text-transform: uppercase;
padding: 40px;
margin: -20px -20px 20px -20px;
border-bottom: 8px solid;
background-color: #eee;
background-image: -moz-linear-gradient(#fff,#eee);
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
background-image: -webkit-linear-gradient(#fff, #eee);
background-image: -o-linear-gradient(#fff, #eee);
background-image: -ms-linear-gradient(#fff, #eee);
background-image: linear-gradient(#fff, #eee);
}
#fdw-pricing-table .header:after {
position: absolute;
bottom: -8px; left: 0;
height: 3px; width: 100%;
content: '';
background-image: url(images/bar.png);
}
#fdw-pricing-table .popular-plan .header {
margin-top: -40px;
padding-top: 60px;
}
#fdw-pricing-table .plan1 .header{
border-bottom-color: #FF7F27;
}
#fdw-pricing-table .plan2 .header{
border-bottom-color: #FF7F27;
}
#fdw-pricing-table .plan3 .header{
border-bottom-color: #FF7F27;
}
#fdw-pricing-table .plan4 .header{
border-bottom-color: #FF7F27;
}
/* --------------- */
#fdw-pricing-table .price{
font-size: 45px;
}
#fdw-pricing-table .monthly{
font-size: 13px;
margin-bottom: 20px;
text-transform: uppercase;
color: #999;
}
/* --------------- */
#fdw-pricing-table ul {
margin: 20px 0;
padding: 0;
list-style: none;
}
#fdw-pricing-table li {
padding: 10px 0;
}
/* --------------- */
#fdw-pricing-table .signup {
position: relative;
padding: 10px 20px;
color: #fff;
font: bold 14px Verdana, Arial, Helvetica;
text-transform: uppercase;
text-decoration: none;
display: inline-block;
background-color: #72ce3f;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
text-shadow: 0 -1px 0 rgba(0,0,0,.15);
opacity: .9;
}
#fdw-pricing-table .signup:hover {
opacity: 1;
}
#fdw-pricing-table .signup:active {
-moz-box-shadow: 0 2px 2px rgba(0,0,0,.3) inset;
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,.3) inset;
box-shadow: 0 2px 2px rgba(0,0,0,.3) inset;
}
#fdw-pricing-table .plan1 .signup{
background: #FF7F27;
}
#fdw-pricing-table .plan2 .signup{
background: #FF7F27;
}
#fdw-pricing-table .plan3 .signup{
background: #FF7F27;
}
#fdw-pricing-table .plan4 .signup{
background: #FF7F27;
}
margin:0 auto;
text-align: center;
width: 928px; /* total computed width */
zoom: 1;
}
#fdw-pricing-table:before, #fdw-pricing-table:after {
content: "";
display: table
}
#fdw-pricing-table:after {
clear: both
}
/* --------------- */
#fdw-pricing-table .plan {
font: 13px 'Lucida Sans', 'trebuchet MS', Arial, Helvetica;
background: #fff;
border: 1px solid #ddd;
color: #333;
padding: 20px;
width: 180px;
float: left;
_display: inline; /* IE6 double margin fix */
position: relative;
margin: 0 5px;
-moz-box-shadow: 0 2px 2px -1px rgba(0,0,0,.3);
-webkit-box-shadow: 0 2px 2px -1px rgba(0,0,0,.3);
box-shadow: 0 2px 2px -1px rgba(0,0,0,.3);
}
#fdw-pricing-table .plan:after {
z-index: -1;
position: absolute;
content: "";
bottom: 10px;
right: 4px;
width: 80%;
top: 80%;
-webkit-box-shadow: 0 12px 5px rgba(0, 0, 0, .3);
-moz-box-shadow: 0 12px 5px rgba(0, 0, 0, .3);
box-shadow: 0 12px 5px rgba(0, 0, 0, .3);
-webkit-transform: rotate(3deg);
-moz-transform: rotate(3deg);
-o-transform: rotate(3deg);
-ms-transform: rotate(3deg);
transform: rotate(3deg);
}
#fdw-pricing-table .popular-plan {
top: -20px;
padding: 40px 20px;
}
/* --------------- */
#fdw-pricing-table .header {
position: relative;
font-size: 20px;
font-weight: normal;
text-transform: uppercase;
padding: 40px;
margin: -20px -20px 20px -20px;
border-bottom: 8px solid;
background-color: #eee;
background-image: -moz-linear-gradient(#fff,#eee);
background-image: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#eee));
background-image: -webkit-linear-gradient(#fff, #eee);
background-image: -o-linear-gradient(#fff, #eee);
background-image: -ms-linear-gradient(#fff, #eee);
background-image: linear-gradient(#fff, #eee);
}
#fdw-pricing-table .header:after {
position: absolute;
bottom: -8px; left: 0;
height: 3px; width: 100%;
content: '';
background-image: url(images/bar.png);
}
#fdw-pricing-table .popular-plan .header {
margin-top: -40px;
padding-top: 60px;
}
#fdw-pricing-table .plan1 .header{
border-bottom-color: #FF7F27;
}
#fdw-pricing-table .plan2 .header{
border-bottom-color: #FF7F27;
}
#fdw-pricing-table .plan3 .header{
border-bottom-color: #FF7F27;
}
#fdw-pricing-table .plan4 .header{
border-bottom-color: #FF7F27;
}
/* --------------- */
#fdw-pricing-table .price{
font-size: 45px;
}
#fdw-pricing-table .monthly{
font-size: 13px;
margin-bottom: 20px;
text-transform: uppercase;
color: #999;
}
/* --------------- */
#fdw-pricing-table ul {
margin: 20px 0;
padding: 0;
list-style: none;
}
#fdw-pricing-table li {
padding: 10px 0;
}
/* --------------- */
#fdw-pricing-table .signup {
position: relative;
padding: 10px 20px;
color: #fff;
font: bold 14px Verdana, Arial, Helvetica;
text-transform: uppercase;
text-decoration: none;
display: inline-block;
background-color: #72ce3f;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
text-shadow: 0 -1px 0 rgba(0,0,0,.15);
opacity: .9;
}
#fdw-pricing-table .signup:hover {
opacity: 1;
}
#fdw-pricing-table .signup:active {
-moz-box-shadow: 0 2px 2px rgba(0,0,0,.3) inset;
-webkit-box-shadow: 0 2px 2px rgba(0,0,0,.3) inset;
box-shadow: 0 2px 2px rgba(0,0,0,.3) inset;
}
#fdw-pricing-table .plan1 .signup{
background: #FF7F27;
}
#fdw-pricing-table .plan2 .signup{
background: #FF7F27;
}
#fdw-pricing-table .plan3 .signup{
background: #FF7F27;
}
#fdw-pricing-table .plan4 .signup{
background: #FF7F27;
}
Het moet is zijn met @ media screen ofzo.
Hier heb ik een voorbeeld van wat het moet gaan worden.
http://wbpreview.com/previews/WB0S2347C/
Dat het onder elkaar komt staan.
Moet ik dan werken met procenten?
Ik hoop dat iemand me kan helpen.
Ik zou zeggen van de table afstappen en gaan werken met div's
nee, want dit is nou precies waar tabellen voor bedoelt zijn.
Nu staan ze naast elkaar en dat is voor de pc goed maar met mobiel moeten ze onder elkaar komen.