Форум программистов, компьютерный форум, киберфорум
HTML, CSS
Войти
Регистрация
Восстановить пароль
Карта форума Темы раздела Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.54/13: Рейтинг темы: голосов - 13, средняя оценка - 4.54
63 / 3 / 1
Регистрация: 11.05.2011
Сообщений: 666
1

Почему ширина растягивается в одну сторону

06.03.2014, 01:04. Показов 2568. Ответов 9
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
При hover на каком-то из трех элементов его ширина тянется в правую сторону, а нужно, чтобы во все стороны равномерно растягивалась. Подскажите, пожалуйста. И как, кстати, без align="center" выровнять по центру эти кнопки (шапка, содерж и подвал)?
Почему ширина растягивается в одну сторону

HTML5
1
2
3
4
5
6
<div class="contentBlock">
                <div>
                    <div class="openBlock" align="center">
                        <input type="button" value="Шапка" class="spoilerBtn">
                    </div>
...
CSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.contentBlock {
    width: 70%;
    min-height: 70%;
    margin: 90px auto;
    padding: 15px;
}
.spoilerBtn {
    width: 100%;
    height: 60px;
    margin: 3px auto;
    font-size: 17pt;
    font-family: Georgia, Trebuchet MS, Arial;
    border: 1px solid rgba(0,0,0,0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    border-radius: 15px;
    cursor: pointer;
}
 
.spoilerBtn:hover {
    width: 102%;
}
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
06.03.2014, 01:04
Ответы с готовыми решениями:

Шапка сайта растягивается только в одну сторону
При изменении размера шапки, размер увеличивается только в правую сторону. Помогите, пожалуйста ...

СМА Атлант 1040т1 (аналог Ardo S1000x) не крутит в одну сторону, не вращается двигатель в одну сторону
СМА Атлант 1040т1 модуль 546059301 не вращает барабан в одну сторону. Проверил резисторы R51a R51b...

Почему не срабатывает услоивие ни в одну ни в другую сторону
mingw char S1=&quot;Hello&quot;; char S2={}; cin.getline(S2,255); if (S1==S2) cout&lt;&lt;&quot;OK&quot;; ...

Почему TextBox не растягивается?
Пытаюсь сделать приятную масштабируемую компоновку,но не могу понять почему текстбокс не...

9
269 / 261 / 35
Регистрация: 21.02.2012
Сообщений: 1,078
06.03.2014, 08:13 2
CSS
1
2
3
.spoilerBtn:hover {
    width: 102%;
}
Вот из-за этого у вас увеличивается при ховере. Поставьте 100%;

Чтобы отцентрировать по другому, нужно кнопкам задать фиксированную ширину и прописать margin:0 auto;

Но у вас там все в процентах, так что это будет геморрой )) Пусть будет как есть или нужно все переписывать
0
Администратор
12268 / 5333 / 268
Регистрация: 05.04.2011
Сообщений: 14,086
Записей в блоге: 2
06.03.2014, 09:35 3
Johnlion, кода недостаточно. нужен весь код и окружающего пространства тоже
0
63 / 3 / 1
Регистрация: 11.05.2011
Сообщений: 666
06.03.2014, 10:08  [ТС] 4
Taatshi, maximus2011, вот весь код
Кликните здесь для просмотра всего текста
HTML5
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <link rel="stylesheet" type="text/css" href="style/style.css">
        <link rel="stylesheet" type="text/css" href="style/buttonstyle.css">
        <link rel="stylesheet" type="text/css" href="style/spoilerbutton.css">
        <script src="jquery-2.1.0.js"></script>
        <script src="script.js"></script>
 
        <title>Сделай сайт</title>
    </head>
    <body>
        <div class="main">
            
            <!-- Header of generator -->
            <div class="header">
                <div class="rect">
                    <span>Website generator</span>
                </div>
            </div>
            <div class="contentBlock">
                <iframe id="fr1" style="display:none"></iframe>
                <iframe id="fr2" style="display:none"></iframe>
                
                <div>
                    <div class="openBlock" align="center">
                        <input type="button" value="Шапка" class="spoilerBtn">
                    </div>
                    
                        <div class="part">
                            <span class="headOfMiniPart">Логотип</span>
                            <div class="miniPart">
                                        <form action="uploadHead.php" target="fr1" enctype="multipart/form-data" method="post">
                                            <input type="file" name="uploadfileHead" accept="image/*">
                                            <input type="submit" value="Загрузить" class="classname">
                                        </form><br>
                                        
                                        <span>Ширина X Высота:</span>
                                            <input type="text" name="inpLogoW" class="InForSize"></input>
                                            <span>X</span>
                                            <input type="text" name="inpLogoH" class="InForSize"></input>
                                            <span>px</span><br><br>
                                        
                                        <span>Расположение:</span>
                                            <form class="formWithoutBr">
                                                <input type="radio" name="radioL" id="radioInL" onClick="radioFunL();" value="Слева" checked> Слева</input>
                                                <input type="radio" name="radioR" id="radioInR" onclick="radioFunR();" value="Справа"> Справа</input>
                                                <input type="radio" name="radioC" id="radioInС" onclick="radioFunCenter();" value="По центру"> По центру</input>
                                            </form><br><br>
                                        <span>Отступ <span id="indent">слева:</span></span>
                                            <input type="text" name="indentIn" id="indentFromSideField" class="InForSize"></input>
                                            <span>px</span><br><br>
                                        <span>Отступ сверху:</span>
                                            <input type="text" name="TOPindentIn" class="InForSize" ></input><br><br>
                                        <span>Отступ снизу:</span>
                                            <input type="text" name="BOTTOMindentIn" class="InForSize" ></input>
                            </div> <!-- конец мини-части -->
                                    <hr>
                            <span class="headOfMiniPart">Текст напротив логотипа</span><br>
                                    <span>Цвет:</span>
                                        <input type="text" name="ColorIn" class="InPoint"></input>
                                        <input type="color" id="palette" name="color"><br><br>
                                    <span>Шрифт:</span>
                                        <select name="fontSelect">
                                            <option value="Times New Roman">Times New Roman</option>
                                            <option value="Arial">Arial</option>
                                            <option value="Comic Sans">Comic Sans</option>
                                            <option value="Georgia">Georgia</option>
                                        </select>
                                        <select name="fontWSelect">
                                            <option value="10">10</option>
                                            <option value="12">12</option>
                                            <option value="14">14</option>
                                            <option value="16">16</option>
                                            <option value="18">18</option>
                                            <option value="24">24</option>
                                            <option value="28">28</option>
                                        </select>
                                        <input type="checkbox" value="B"> B</input>
                                        <input type="checkbox" value="I"> I</input>
                                        <input type="checkbox" value="U"> U</input>
                                        <br><br>
                                    <span>Расположение:</span>
                                        <form class="formWithoutBr">
                                            <input type="radio" name="radioL2" id="radioInL2" onclick="radioFunL2();" value="Слева"> Слева</input>
                                            <input type="radio" name="radioR2" id="radioInR2" onclick="radioFunR2();" value="Справа" checked> Справа</input>
                                        </form><br><br>
                                    <span>Отступ <span id="indent2">слева:</span></span>
                                        <input type="text" name="indentIn" class="InForSize"></input>
                                        <span>px</span><br><br>
                                    <span>Отступ сверху:</span>
                                        <input type="text" name="TOPindentIn2" class="InForSize"></input><br><br>
                                    <span>Отступ снизу:</span>
                                        <input type="text" name="BOTTOMindentIn2" class="InForSize"></input><br><br>
                                    <div>
                                        <span class="headText">Текст:</span>
                                        <textarea class="TA"></textarea>
                                    </div><br><br><br><br><br>
                                    <hr>
                                    <details>
                                        <summary style="cursor:pointer">посмотреть код</summary>
                                        <pre>появляющаяся информация</pre>
                                    </details>
                            <span class="headOfMiniPart">Меню</span><br>
                                    <span>Цвет блока:</span>
                                        <input type="text" name="ColorIn" class="InPoint"></input>
                                        <input type="color" id="paletteMenuBlock" name="color"><br><br>
                                    <span>Высота блока</span>
                                        <input type="text" class="InForSize"></input>
                                        <span>px</span><br><br>
                                    <span>Цвет шрифта:</span>
                                        <input type="text" name="ColorIn" class="InPoint"></input>
                                        <input type="color" id="paletteFontMenu" name="color"><br><br>
                                    <span>Шрифт:</span>
                                        <select name="fontSelect">
                                            <option value="Times New Roman">Times New Roman</option>
                                            <option value="Arial">Arial</option>
                                            <option value="Comic Sans">Comic Sans</option>
                                            <option value="Georgia">Georgia</option>
                                        </select>
                                        <select name="fontWSelect">
                                            <option value="10">10</option>
                                            <option value="12">12</option>
                                            <option value="14">14</option>
                                            <option value="16">16</option>
                                            <option value="18">18</option>
                                            <option value="24">24</option>
                                            <option value="28">28</option>
                                        </select><br><br>
                                    <span>Пункты меню:</span><br><br>
                                        <div id="divForPointAndButton">
                                            <input type="text" size="20" name="inPoint_1" class="InPoint"></input>
                                            <input type="submit" onclick="delPoint('1');" value="X" name="delBtn_1" title="Удалить пункт" id="minusBtn" class="classname"></input>
                                        </div>
                                        <br>
                                        <input type="submit" value="Новый пункт" onclick="addNewPoint();" class="classname new_p"></input>
                        </div>
                </div>
                
                <div>
                    <div class="openBlock">
                        <input type="button" value="Содержимое" class="spoilerBtn">
                    </div>
                    <!-- Content block -->
                        <div class="part">
                            <span class="headOfMiniPart">Оформление</span>
                            <div class="miniPart">
                                    <span>Цвет фона:</span>
                                        <input type="text" name="ColorIn" class="InPoint"></input>
                                        <input type="color" id="palette" name="color">
                                    <span>Ширина X Высота:</span>
                                        <input type="text" name="inpContW" class="InForSize"></input>
                                        <span>X</span>
                                        <input type="text" name="inpContH" class="InForSize"></input>
                                        <span>px</span><br><br>
                            </div>
                                <hr>
                            
                            <span class="headOfMiniPart">Картинка</span><br>
                            <div class="miniPart">
                                    <form action="uploadContent.php" target="fr2" enctype="multipart/form-data" method="post">
                                        <input type="file" name="uploadfileContent" accept="image/*">
                                        <input type="submit" value="Загрузить" class="classname">
                                    </form>
                                    <br>
                                    <span>Ширина X Высота:</span>
                                        <input type="text" name="inpPicW" class="InForSize"></input>
                                        <span>X</span>
                                        <input type="text" name="inpPicH" class="InForSize"></input>
                                        <span>px</span><br><br><br>
                                    
                                    <span>Расположение:</span>
                                        <form class="formWithoutBr">
                                            <input type="radio" name="radioL3" id="radioInL3" onClick="radioFunL('radionInR3');" value="Слева" checked> Слева</input>
                                            <input type="radio" name="radioR3" id="radioInR3" onclick="radioFunR('radionInL3');" value="Справа"> Справа</input>
                                        </form><br><br>
                            </div>
                                    <hr>
                            
                                    
                            <span class="headOfMiniPart">Текст</span>
                            <div class="miniPart">
                                    <span>Цвет:</span>
                                        <input type="text" name="ColorIn" class="InPoint"></input>
                                        <input type="color" id="palette" name="color"><br><br>
                                    <span>Шрифт:</span>
                                        <select name="fontSelect">
                                            <option value="Times New Roman">Times New Roman</option>
                                            <option value="Arial">Arial</option>
                                            <option value="Comic Sans">Comic Sans</option>
                                            <option value="Georgia">Georgia</option>
                                        </select>
                                        <select name="fontWSelect">
                                            <option value="10">10</option>
                                            <option value="12">12</option>
                                            <option value="14">14</option>
                                            <option value="16">16</option>
                                            <option value="18">18</option>
                                            <option value="24">24</option>
                                            <option value="28">28</option>
                                        </select><br><br>
                                    <div>
                                        <span class="headText">Текст:</span>
                                        <textarea class="TA"></textarea>
                                    </div><br><br><br><br><br>
                            </div>  
                                    <hr>
                            <span class="headOfMiniPart">Блок обратной связи</span>
                            <div class="miniPart">
                                    <span>Ширина X Высота текстового поля:</span>
                                        <input type="text" name="inpContW" class="InForSize"></input>
                                        <span>X</span>
                                        <input type="text" name="inpContH" class="InForSize"></input>
                                        <span>px</span><br><br>
                                    <span>Ширина поля имени отправителя:</span>
                                        <input type="text" name="inpContW" class="InForSize"></input>
                                        <span>px</span><br><br>
                                    <span>Ширина поля e-mail:</span>
                                        <input type="text" name="inpContW" class="InForSize"></input>
                                        <span>px</span><br>
                            </div>
                            <!--<span class="headOfMiniPart">Таблица</span>
                            <div class="miniPart">
                                    <span>Название таблицы:</span>
                                        <input type="text" class="InPoint"></input><br><br>
                                    <span>Цвет фона:</span>
                                        <input type="text" class="InPoint"></input><br><br>
                                    <span>Толщина границы:</span>
                                        <input type="text" class="InForSize"></input>
                                        <span>pt</span><br><br>
                                    <span>Цвет границы:</span>
                                        <input type="text" class="InPoint"></input><br><br>
                                    <span>Количество строк X столбцов:</span>
                                        <input type="text" class="InForSize"></input>
                                        <span>X</span>
                                        <input type="text" class="InForSize"></input><br><br>
                                    <input type="button" value="Сформировать таблицу" onclick="createTable();" class="classname btTable"></input>
                            </div>-->
                        </div><!-- end of part 'Content'-->
                </div><!-- end of Content block with caption-->
                
                <div>
                    <div class="openBlock">
                        <input type="button" value="Подвал" class="spoilerBtn">
                    </div>
                    
                        <div class="part">
                            <span class="headOfMiniPart">Оформление</span>
                            <div class="miniPart">
                                        <span>Ширина X Высота:</span>
                                            <input type="text" name="inpLogoW" class="InForSize"></input>
                                            <span>X</span>
                                            <input type="text" name="inpLogoH" class="InForSize"></input>
                                            <span class="forSpace">px</span>
                                        <span>Цвет фона:</span>
                                            <input type="text" name="ColorIn" class="InPoint"></input>
                                            <input type="color" id="palette" name="color"><br><br>
                            </div> <!-- конец мини-части -->
                                    <hr>
                            <span class="headOfMiniPart">Текст</span><br>
                            <div class="miniPart">
                                    <span>Цвет:</span>
                                        <input type="text" name="ColorIn" class="InPoint"></input>
                                        <input type="color" id="palette" name="color">
                                    <span>Шрифт:</span>
                                        <select name="fontSelect">
                                            <option value="Times New Roman">Times New Roman</option>
                                            <option value="Arial">Arial</option>
                                            <option value="Comic Sans">Comic Sans</option>
                                            <option value="Georgia">Georgia</option>
                                        </select>
                                        <select name="fontWSelect">
                                            <option value="10">10</option>
                                            <option value="12">12</option>
                                            <option value="14">14</option>
                                            <option value="16">16</option>
                                            <option value="18">18</option>
                                            <option value="24">24</option>
                                            <option value="28">28</option>
                                        </select>
                                        <input type="checkbox" value="B"> B</input>
                                        <br><br>
                                    <span>Расположение:</span>
                                        <form class="formWithoutBr">
                                            <input type="radio" name="radioL2" id="radioInL2" onclick="radioFunL2();" value="Слева"> Слева</input>
                                            <input type="radio" name="radioR2" id="radioInR2" onclick="radioFunR2();" value="Справа"> Справа</input>
                                            <input type="radio" name="radioR2" id="radioInC2" onclick="radioFunR2();" value="По центру" checked> По центру</input>
                                        </form><br><br>
                                    <div>
                                        <span class="headText">Текст:</span>
                                        <textarea class="TA"></textarea>
                                    </div><br><br><br><br><br>
                            </div>
                        </div>
                </div><!-- end of Footer block with caption-->
            </div>
            
            <!-- Footer of generator -->
            <div class="footer">
                Bambam
            </div>
        </div> <!-- end of "main" div -->
        
    </body>
</html>
Кликните здесь для просмотра всего текста
CSS
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
* {
    margin: 0;
    padding: 0;
}
 
html, body {
    width: 100%;
    /*height: 10%;*/
    background: url('../img/back.png');
}
.main {
    height: 100%;
    min-height: 100%;
}
 
.header {
    background: url('../img/back.png');
    width: 72%;
    height: 50px;
    margin: 5px auto 10px;
    border-radius: 10px;
    position: relative;
}
 
.content {
    background-color: rgba(0, 0, 0, 0.3);
    width: 70%;
    min-height: 70%;
    margin: 90px auto;
    padding: 15px;
    color: #F1F2F3;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 1px rgba(255, 255, 255, 0.35);
    -moz-box-shadow: inset 0 1px 3px rgba(0,0,0,0.25), 0 1px 1px rgba(255,255,255,0.35);
    -ms-box-shadow: inset 0 1px 3px rgba(0,0,0,0.25), 0 1px 1px rgba(255,255,255,0.35);
    -o-box-shadow: inset 0 1px 3px rgba(0,0,0,0.25), 0 1px 1px rgba(255,255,255,0.35);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 1px rgba(255, 255, 255, 0.35);
    font-family: Monaco, monospace, sans-serif;
}
 
.contentBlock {
    width: 70%;
    min-height: 70%;
    margin: 90px auto;
    padding: 15px;
}
 
.part {
    background-color: rgba(255, 255, 255, 1);
    display: inline-block;
    min-height: 800px;
    margin: -8px 0 8px 26px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
    border-radius: 0 0 10px 10px;
-webkit-box-shadow: 0px 1px 5px 0px rgba(50, 50, 50, 1);
-moz-box-shadow:    0px 1px 5px 0px rgba(50, 50, 50, 1);
box-shadow:         0px 1px 5px 0px rgba(50, 50, 50, 1);
    font-family: Georgia;
    width: 94.5%;
    display: none;
    z-index: 0;
    padding-top: 15px;
}
 
.headOfMiniPart {
    color: #1C3648;
    font-size: 14pt;
    padding-left: 20px;
}
 
.miniPart {
    width: 100%;
    padding-left: 40px;
    padding-top: 15px;
}
 
.forSpace {
    margin-right: 45px;
}
 
.footer {
    width: 100%;
    height: 200px;
    background: black;
}
 
/*.classname.btTable {
    width: 200px;
}/*
 
.part hr {
    margin: 10px 1px;
}
 
.formWithoutBr {
    margin: 0; 
    padding: 0; 
    display: inline;
}
 
.InForSize {
    border-radius: 5px;
    width: 55px;
    margin: 0px 5px;
}
    
#btGen {
    top: 50px;
    left: 50px;
}
 
.InColor {
    border-radius: 5px;
    width: 200px;
    margin: 0px 5px;
}
 
.InPoint  {
    border-radius: 5px;
    width: 200px;
    margin: 0 5px 5px 0;
}
 
#minusBtn {
    width: 22px;
    height: 22px;
    color: #A00;
    margin: 0 100px 0 0;
}
 
#fontBtB, #fontBtI, #fontBtU {
    width: 30px;
    height: 40px;
}
 
#btIn {
    border-radius: 5px;
    width: 200px;
    margin: 0px 5px;
}
 
.TA {
    width: 360px;
    height: 90px;
    float: left;
}
 
.headText {
    width: 66px;
    float: left;
}
 
.content .part p {
    font-size: 12pt;
    margin: 0px 7px;
}
 
.content p {
    font-size: 18pt;
    margin: 0px 5px;
}
 
.rect {
    position: relative;
    background: url('../img/back.png');
    border-radius: 8px;
    top: 38px;
    left: 20px;
    width: 180px;
    text-align: center;
}
 
.rect span {
    color: black;
    font-family: Arial;
    font-weight: bold;
    top: 30%;
    font-size: 14pt;
    text-shadow: 1px 1px 0px rgba(136, 149, 145, 1);
}
CSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
.spoilerBtn {
    width: 100%;
    height: 60px;
    margin: 3px auto;
    font-size: 17pt;
    font-family: Georgia, Trebuchet MS, Arial;
    border: 1px solid rgba(0,0,0,0.5);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    border-radius: 15px;
    cursor: pointer;
}
 
.spoilerBtn:hover {
    width: 102%;
}
0
13208 / 6596 / 1041
Регистрация: 10.01.2008
Сообщений: 15,069
06.03.2014, 15:31 5
Johnlion, Потому что width+padding+border > 100%.
CSS
1
box-sizing: border-box;
0
63 / 3 / 1
Регистрация: 11.05.2011
Сообщений: 666
06.03.2014, 19:52  [ТС] 6
maximus2011, поставил, а как без align по центру выровнять? margin-способ не работает
0
94 / 67 / 23
Регистрация: 22.09.2013
Сообщений: 626
06.03.2014, 21:41 7
Johnlion, может не работать из за того что нету clear:both
0
63 / 3 / 1
Регистрация: 11.05.2011
Сообщений: 666
06.03.2014, 22:13  [ТС] 8
zme9, не помогает

Добавлено через 15 минут
Vovan-VE, можете объяснить куда это вставить? я не понимаю, может что не так делаю
0
94 / 67 / 23
Регистрация: 22.09.2013
Сообщений: 626
07.03.2014, 13:07 9
Johnlion, Он имеет ввиду , что 100% ширина это padding+border+width , то есть все эти свойства имеют свою ширину , блок в блоке как бы , у обводки есть ширина и у пэдинга , то есть вам следует изменить значение width:100% чуть меньше. Если я правильно понял что хотел сказать Vovan-VE )
0
13208 / 6596 / 1041
Регистрация: 10.01.2008
Сообщений: 15,069
07.03.2014, 13:57 10
Johnlion, http://www.quirksmode.org/css/... izing.html . Иллюстрации там же.
0
07.03.2014, 13:57
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
07.03.2014, 13:57
Помогаю со студенческими работами здесь

Почему не растягивается форма?
Здравствуйте. Мне заказчик прислал проект где форма, она создается через tkinter и называется root....

Почему TextBox не растягивается?
Подскажите пожалуйста почему TextBox упорно не хочет растягиваться? &lt;DockPanel...

Почему сайт растягивается?
Как сделать чтобы сайт во всех расширениях монитора был одинаковый не растягивался? Спасибо. ...

Пингует в одну сторону
В Google Cloud Platform создал виртуальную машину в зоне asia-east1-c. Управляю этой машиной через...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
10
Ответ Создать тему
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2024, CyberForum.ru