Форум программистов, компьютерный форум, киберфорум
HTML, CSS
Войти
Регистрация
Восстановить пароль
Карта форума Темы раздела Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.90/29: Рейтинг темы: голосов - 29, средняя оценка - 4.90
0 / 0 / 0
Регистрация: 08.11.2012
Сообщений: 8
1

Почему сайт растягивается?

08.11.2012, 21:06. Показов 5586. Ответов 11
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
Как сделать чтобы сайт во всех расширениях монитора был одинаковый не растягивался? Спасибо.
Кусочек css
CSS
1
2
3
4
5
6
7
8
9
body { padding:0; margin:0; min-height:100%;
 Arial, sans-serif;
 background: url('images/bgs/body.jpg')
 top left fixed no-repeat; 
 -o-background-size: 100% 100%; 
 -webkit-background-size:100% 100%; 
 -moz-background-size:100% 100%; 
 -khtml-background-size:100% 100%; 
 background-size: 100% 100%;}
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
08.11.2012, 21:06
Ответы с готовыми решениями:

Сайт не растягивается по всему экрану!
Ребят помогите пожалуйста! Шапка на сайте не растягивается по всему экрану, именно с разным...

Сайт не растягивается по высоте на весь экран
Здравствуйте! Сделал первый тренировочный сайт(вернее одну страницу сайта) и не могу организовать...

Сайт растягивается при длинном заголовке
Пытаюсь отредактировать центральный заголовок сайта: http://ahmedessa.net/box/index.html Сайт...

Почему ширина растягивается в одну сторону
При hover на каком-то из трех элементов его ширина тянется в правую сторону, а нужно, чтобы во все...

11
461 / 369 / 94
Регистрация: 01.05.2010
Сообщений: 1,761
08.11.2012, 21:23 2
написать:
CSS
1
body {width: 1000px;}
Вместо 1000px можно написать любую желаемую ширину сайна в пикселах.
0
603 / 578 / 103
Регистрация: 16.07.2012
Сообщений: 1,762
08.11.2012, 21:29 3
а потом еще добавить
CSS
1
margin: 0 auto;
и он всегда будет посерединке
0
0 / 0 / 0
Регистрация: 08.11.2012
Сообщений: 8
08.11.2012, 21:53  [ТС] 4
Изменил расширение 600 на 800 сайт всеравно растянулся?

Добавлено через 15 минут
Зверушь,Изменил расширение 600 на 800 сайт всеравно растянулся?

Добавлено через 1 минуту
alpex, Изменил расширение 600 на 800 сайт всеравно растянулся?
0
Администратор
12268 / 5333 / 268
Регистрация: 05.04.2011
Сообщений: 14,086
Записей в блоге: 2
08.11.2012, 22:00 5
Almaz1, дайте полный код страницы - так мы до второго пришествия гадать будем
0
0 / 0 / 0
Регистрация: 08.11.2012
Сообщений: 8
08.11.2012, 22:02  [ТС] 6
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
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
/*-----------------------------------------------------------------------------------------------*/
 
/*- Reset Styles -----------------------------------------------------------*/
    
    
        html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, 
        cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, 
        ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, hr, button
        {margin:0; padding:0; border:0; outline:0; font-size:100%;<div style="width:600px;">.}
        
        ol, ul {list-style:none;}
        h1, h2, h3, h4, h5, h6, li {line-height:100%;}
        blockquote, q {quotes:none;}
        table {border-collapse:collapse; border-spacing:0;}
        
 
/*- End Reset Styles -------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
 
/*- General Styles ---------------------------------------------------------*/
 
 
        body {font:100%
Arial, sans-serif;
background: url('images/bgs/body.jpg')
top left  fixed no-repeat; 
-o-background-size: 100% 100%;  
-webkit-background-size:100% 100%; 
-moz-background-size:100% 100%; 
-khtml-background-size:100% 100%; 
background-size: 100% 100%; no-repeat center top;}
        
            
            /*- Screen Size Limit -*/
            #header,
            #mainWrap,
            #footer {width:1000px; margin:0 auto;}
            
            /*- Links -*/
            a {text-decoration:none;}
            a:hover {text-decoration:underline;}
        
            /*- Special Fonts -*/
            #siteDescription h2,
            .mainTitle,
            .post h4,
            .post blockquote,
            .sidebarTitle h4,
            .sidebarBox li,
            #tagCloud li {font-family:Cambria, Georgia, serif;}
                
            /*- Sprite Load -*/
            .postShare a,
            .leftFold,
            .rightFold,
            .pointer,
            .replyLink a,
            #subscribe a,
            #searchBox button,
            #commentForm button,
            #navigation a,
            #codeIsPoetry {display:block; background-image:url(images/sprite.png);}
            
            /*- Text Hide -*/
            #subscribe a,
            .postShare a,
            #searchBox button,
            #commentForm button,
            .replyLink a,
            #navigation a,
            #codeIsPoetry {font-size:0; text-indent:-9999em;}
            
            /*- Rounded corners -*/
            #header .pageList a,
            div.comment,
            div.pingback {-moz-border-radius:5px; -webkit-border-radius:5px;}
            
            /*- Sub Titles -*/
            .subTitle {margin-bottom:30px; position:relative; clear:both;}
                .subTitle h4 {display:block; font-weight:normal; font-size:0.8em; text-transform:uppercase; line-height:130%; padding:11px 0 10px 95px;}
            
            /*- Float Clears -*/
            #header,
            .commentAuthorAndDate,
            #commentList li,
            .replyLink,
            #navigation,
            #tagCloud ul,
            #footer .pageList ul {overflow:hidden;}
            
            /*- Accesible labels -*/
            .accesible {width:1px; height:1px; position:absolute; top:0; left:-9000px; overflow:hidden;}
            
            /*- Fields on focus -*/
            .fieldFocus {color:#000 !important; border-color:#CCC !important; border-bottom:1px solid #999 !important;}
            
            /*- Buttons -*/
            #searchBox button,
            #commentForm button {display:inline; height:32px; cursor:pointer;}
            
            /*- Corrections for different pages -*/
            body.archive .post {padding-bottom:0;}
            
        
/*- End General Styles -----------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
 
/*- Unsemantic design elements added via JS (spectrum-min.js) --------------*/
 
 
            .leftFold,
            .rightFold,
            .edge,
            .pointer {position:absolute; z-index:1;}
            
            /*------------------------------------------*/
            /* PAPER FOLDINGS                           */
            /*------------------------------------------*/
            
            .leftFold,
            .rightFold {width:29px; height:29px; bottom:-30px;}
            .leftFold {left:0;}
            .rightFold {right:0;}
            
            .subTitle .leftFold,
            .subTitle .rightFold {bottom:-29px;}
            
            .mainTitle .leftFold {background-position:0 -66px;}
            #commentList .subTitle .leftFold {background-position:-30px -66px;}
            #commentForm .subTitle .leftFold {background-position:-60px -66px;}
            .rightFold {background-position:-120px -66px;}
            #tagCloud .subTitle .leftFold {background-position:-90px -66px;}
            
            /*------------------------------------------*/
            /* MAIN AND SIDEBAR TITLE'S IRREGULAR EDGES */
            /*------------------------------------------*/
            
            .edge {width:11px; height:55px;}
            .mainTitle .edge {background:url(images/bgs/post/main-title-edge.gif) no-repeat 0 0; top:0; right:-11px;}
            .sidebarTitle .edge {left:-11px; bottom:-1px; background:url(images/bgs/sidebar/sidebar-title-edge.gif) no-repeat 0 0;}
            
            /*------------------------------------------*/
            /* COMMENT-BOX ARROW POINTER                */
            /*------------------------------------------*/
            
            .pointer {width:8px; height:16px; background-position:-150px -66px; top:14px; left:-1px;}
            div.comment-author-admin .pointer,
            div.bypostauthor .pointer {background-position:-159px -66px;}
            
 
/*- End Unsemantic design elements added via JS (spectrum-min.js) ----------*/
/*-----------------------------------------------------------------------------------------------*/
 
/*- Header -----------------------------------------------------------------*/
 
 
        #header {padding-bottom:5px;}
 
            /*- Logo -*/
            #header #logo {float:left; padding-left:20px;}
            
            /*- Top Menu -*/
            #header .pageList {float:right; width:440px; padding-top:10px;} 
                #header .pageList li {float:right; margin-left:5px;}
                #header .pageList a {display:block; font-size:0.8em; font-weight:bold; text-transform:uppercase; color:#FFF; padding:5px 10px; margin-bottom:5px; background:#333;}
                #header .pageList a:hover {text-decoration:none;}
                            
            /*- Subscribe -*/
            #header #subscribe {float:right; padding:10px 50px 0 5px;}
                #header #subscribe a {width:26px; height:26px; background-position:-172px -42px;}
                #header #subscribe a:hover {background-position:-172px -69px;}
 
 
/*- End Header -------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
 
/*- Main Content -----------------------------------------------------------*/
 
 
        #mainWrap {background:url(images/bgs/mainWrap.gif) repeat-y center top;}
 
            #main {color:#333; background:url(images/bgs/main.jpg) no-repeat center top;}
                
                #content,
                #sidebar {margin-top:30px;}
            
                /*- The content (Left column) -*/
                #content {float:left; width:660px;}
                
                /*- The sidebar (Right column) -*/
                #sidebar {float:right; width:300px;}
            
 
/*- End Main Content -------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
 
 
            
 
/*- End Site Description ---------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
 
/*- The Post ---------------------------------------------------------------*/
 
 
        .post {float:left; width:100%; clear:both;}
        
            .postMeta {float:left; width:575px; font-size:0.8em; text-transform:uppercase; color:#999; padding:10px 15px; margin-left:55px; border-bottom:1px solid #DDD;}
                .postMeta p,
                .postMeta li {float:left;}
                .postMeta p {padding-left:25px;}
                .postMeta a {line-height:130%; color:#999;}
                .postMeta a:hover {color:#666;}
                
            /*------------------------------------------*/
            /* POST TITLE                               */
            /*------------------------------------------*/
            
            .mainTitle {padding:7px 0 9px 65px; background:#6AB32E url(images/bgs/post/main-title.png) no-repeat 0 0; border-bottom:1px solid #5A962F; position:relative;}
                
                /*- Post Name -*/
                .mainTitle h3,
                .mainTitle h3 a {color:#FFF;}
                .mainTitle h3 {font-size:1.9em; font-weight:normal; line-height:130%; text-shadow:1px 1px #5A962F; margin-right:130px;} 
                
                /*- Date -*/
                .postDate {font-size:1.6em; letter-spacing:-0.05em; text-shadow:1px 1px #84C050; position:absolute; top:13px; right:15px;}
                    .postDate span {margin-left:3px;}
                    .month {color:#447223;}
                    .day {color:#51892A;}
                    .year {color:#59962E;}
            
            /*------------------------------------------*/
            /* POST IMAGE (CUSTOM FIELD)                */
            /*------------------------------------------*/
            
            .postImage {margin-left:55px;}
                .postImage img {display:block; padding:1px; margin:10px 0 3px; border:1px solid #CCC;}  
                
            /*------------------------------------------*/
            /* POST INFO (AUTHOR + COMMENT AMOUNT)      */
            /*------------------------------------------*/      
            
            .author {background:url(images/icons/author.gif) no-repeat left center;}
            .commentNumber {float:right !important; background:url(images/icons/bubble.gif) no-repeat left center;}
                .commentNumber a {color:#6F95D7;}
            
            /*------------------------------------------*/
            /* POST TEXT                                */
            /*------------------------------------------*/
            
            .entry {clear:both; padding:10px 70px 15px;}
                    
                .entry h4,
                .entry h5,
                .entry h6,
                .entry ul,
                .entry ol,
                .entry blockquote {margin:5px 0 30px;}
                
                .entry p,
                .entry li {font-size:0.95em;}
                                
                
                        
                .entry a {text-decoration:underline; color:#AC6C13;}
                .entry a:hover {color:#000;}
                .entry a:visited {color:#666;}          
                
                .entry ul li,
                .entry ol li {line-height:130%; margin:0 0 7px 25px;}
                .entry ul li {list-style:url(images/icons/bullet.gif);}
                .entry ol li {list-style:lower-roman;}
                
                .entry h3.result {font-size:1.3em; line-height:130%; position:relative; left:-5px;}
                .entry h4 {font-size:1.3em; font-weight:normal; text-transform:uppercase; color:#8279AD; padding:5px 0 5px 10px; margin-top:10px; border-bottom:1px solid #D8D8FF; 
                position:relative; left:-10px; line-height:120%;}
                .entry h5 {text-transform:uppercase;}
            
                .entry img {max-width:600px;}
                
                .entry blockquote {font-size:1.2em; font-style:italic; padding:10px 20px 0; border-left:5px solid #E5E6E2;}
                    .entry blockquote p {line-height:130%;}
                    
                .aligncenter {display:block; margin:0 auto;}
                .alignleft {float:left;}
                .alignright {float:right;}
 
                        
            /*------------------------------------------*/
            /* POST CATEGORIES                          */
            /*------------------------------------------*/
            
            .postCategory {border-top:1px solid #DDD; background:url(images/icons/folder.gif) no-repeat 10px 11px;}
                .postCategory a {margin-left:5px;}
                .postCategory-elements {padding:0 !important; width:475px;}
            
            /*------------------------------------------*/
            /* POST TAGS                                */
            /*------------------------------------------*/
            
            .postTags {background:url(images/icons/tag.gif) no-repeat 10px 10px;}
                .postTags ul {float:left; width:450px;}
                    .postTags li {margin-left:5px;}
            
            /*------------------------------------------*/
            /* POST SHARE                               */
            /*------------------------------------------*/
    
            .postShare {padding-bottom:7px !important; background:url(images/icons/bookmark.gif) no-repeat 10px center;}
                .postShare p {margin-right:3px;}
                .postShare li {margin:2px 0 0 3px; position:relative; top:-3px;}
                    .postShare a {width:16px; height:16px;}
                    
                    .share-Email a {background-position:0 -96px;}
                    .share-Email a:hover {background-position:0 -113px;}    
                    .share-Delicious a {background-position:-17px -96px;}
                    .share-Delicious a:hover {background-position:-17px -113px;}            
                    .share-Digg a {background-position:-34px -96px;}
                    .share-Digg a:hover {background-position:-34px -113px;}         
                    .share-Facebook a {background-position:-51px -96px;}
                    .share-Facebook a:hover {background-position:-51px -113px;}         
                    .share-Myspace a {background-position:-68px -96px;}
                    .share-Myspace a:hover {background-position:-68px -113px;}          
                    .share-Google a {background-position:-85px -96px;}
                    .share-Google a:hover {background-position:-85px -113px;}           
                    .share-Linkedin a {background-position:-102px -96px;}
                    .share-Linkedin a:hover {background-position:-102px -113px;}        
                    .share-Twitter a {background-position:-119px -96px;}
                    .share-Twitter a:hover {background-position:-119px -113px;}         
                    .share-Reddit a {background-position:-136px -96px;}
                    .share-Reddit a:hover {background-position:-136px -113px;}
                    .share-Stumbleupon a {background-position:-153px -96px;}
                    .share-Stumbleupon a:hover {background-position:-153px -113px;}     
                    .share-Newsvine a {background-position:-170px -96px;}
                    .share-Newsvine a:hover {background-position:-170px -113px;}        
                    .share-Technoratti a {background-position:-187px -96px;}
                    .share-Technoratti a:hover {background-position:-187px -113px;}
                    
            /*------------------------------------------*/
            /* POST NAVIGATION (PREVIOUS + NEXT POSTS)  */
            /*------------------------------------------*/
            
            .postNav {width:605px; padding:1px 0; background:url(images/bgs/post/postNav.jpg) repeat-x 0 0; border-bottom:0;}
                .postNav p {padding:0;}
                .postNav .nextPost {float:right;}
                    .postNav a {display:block; color:#999; padding:9px 0;}  
                    .postNav a:hover {color:#5E9E28;}
                    .postNav .nextPost a {padding-right:40px; background:url(images/bgs/post/postNav-nextArrow.png) no-repeat 100% 0;}
                    .postNav .nextPost a:hover {background-position:100% -60px;}
                    .postNav .prevPost a {padding-left:40px; background:url(images/bgs/post/postNav-prevArrow.png) no-repeat 0 0;}
                    .postNav .prevPost a:hover {background-position:0 -60px;}
 
 
/*- End The Post -----------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
 
/*- Comment List -----------------------------------------------------------*/      
                
 
        #commentList {clear:both; padding:30px 0 50px;}
        
            #commentList li {clear:both; padding:20px 0 5px 65px;}          
                                            
                .avatarHolder,
                div.comment,
                div.pingback {float:left;}
                
                /*------------------------------------------*/
                /* TITLE                                    */
                /*------------------------------------------*/
                        
                #commentList .subTitle {background:url(images/bgs/comments/commentList-title.jpg) repeat-y 0 0;}
                    #commentList .subTitle .subTitleBorder {background:url(images/bgs/comments/commentList-title-border.jpg) no-repeat 0 100%;} 
                        #commentList .subTitle h4 {color:#648CCC; text-shadow:1px 1px #E6EFFC; background:url(images/icons/bubble-title.gif) no-repeat 65px 12px;}      
            
                /*------------------------------------------*/
                /* AVATAR                                   */
                /*------------------------------------------*/
                
                .avatarHolder {width:61px; height:52px; margin:7px 5px 0 0; background:url(images/bgs/comments/avatar.gif) no-repeat 0 0; position:relative;}
                    .avatarHolder img {margin:2px 0 0 2px;}
                    
                /*------------------------------------------*/
                /* COMMENT BOX                              */
                /*------------------------------------------*/
                
                div.comment,
                div.pingback {padding:15px 15px 0; border:1px solid #EBEBEB; position:relative;}
            
                    .commentDate,
                    .commentText {font-size:0.84em;}
                    
                    /*- Author and Date -*/
                    .commentAuthorAndDate {padding:0 10px 10px; border-bottom:1px solid #EBEBEB;}
                        .commentAuthor em {color:#999;}
                        .commentAuthor {float:left;}
                        .commentAuthor a {color:#333;}
                        .commentDate {float:right;}
                        .commentDate a {color:#CCC;}
                        .commentDate a:hover {color:#666;}
                    
                    /*- Comment text -*/
                    .commentText {padding:10px;}
                        .commentText p {line-height:130%; padding-bottom:10px;}
                        .commentText a {color:#000;}
                
                /*------------------------------------------*/
                /* COMMENT DEPTH                            */
                /*------------------------------------------*/
                
                #commentList .children {clear:both;}
                
                #commentList li.depth-1 div.pingback {width:511px;}
                #commentList li.depth-1 div.comment {width:445px;}
                #commentList li.depth-2 div.comment {width:378px;}
                #commentList li.depth-3 div.comment {width:308px;}
                
                #commentList li.depth-2,
                #commentList li.depth-3 {padding-left:67px; background:url(images/bgs/comments/reply.gif) no-repeat 18px 28px;}
                                            
                    #commentList li.depth-2 .commentDate,
                    #commentList li.depth-3 .commentDate {float:left; clear:left; margin-top:3px;}  
                    
                    
                /*------------------------------------------*/
                /* PINGBACK                                 */
                /*------------------------------------------*/
                
                #commentList li.pingback .avatarHolder {display:none;}
                            
                /*------------------------------------------*/
                /* ADMIN COMMENT                            */
                /*------------------------------------------*/
                        
                #commentList div.comment-author-admin,
                #commentList div.bypostauthor,
                #commentList div.comment-author-admin .commentAuthorAndDate,
                #commentList div.bypostauthor .commentAuthorAndDate {border-color:#DDD;}
                
                #commentList div.comment-author-admin,
                #commentList div.bypostauthor {background:#EBEBEB url(images/bgs/comments/admin.jpg) repeat-x 0 0;}
                    #commentList div.comment-author-admin .commentAuthorAndDate,
                    #commentList div.bypostauthor .commentAuthorAndDate {text-shadow:1px 1px #FFF;}
                    #commentList div.comment-author-admin .replyLink a,
                    #commentList div.bypostauthor .replyLink a {background-position:-172px -21px;}
                    
                /*------------------------------------------*/
                /* REPLY LINK                               */
                /*------------------------------------------*/
                
                .replyLink {text-align:right; padding-bottom:0 !important; display:none; height:20px;}
                    .replyLink a {float:right; width:47px; height:20px; background-position:-172px 0;}
                
                /*------------------------------------------*/
                /* WAITING FOR MODERATION                   */
                /*------------------------------------------*/
                .waiting4Mod {font-style:italic; color:#E26F5A;}
                
                /*------------------------------------------*/
                /* EDIT COMMENT                             */
                /*------------------------------------------*/
                .editComment {text-align:right;}
                    .editComment a {font-size:0.8em; font-weight:bold; text-transform:uppercase; color:#8F3A2C;}
                    
                /*------------------------------------------*/
                /* CANCEL REPLY + LOGGED IN OPTIONS         */
                /*------------------------------------------*/
                .cancel-comment-reply,
                .logged-in-as {font-size:0.9em;}
                    .cancel-comment-reply a,
                    .logged-in-as a {color:#AC6C13;}
                
        
/*- End Comment List -------------------------------------------------------*/                                                          
/*-----------------------------------------------------------------------------------------------*/
 
/*- Comment Form -----------------------------------------------------------*/
 
 
        #commentForm {padding-bottom:50px;}
            
            /*- Title -*/
            #commentForm .subTitle {background:url(images/bgs/comments/commentForm-title.jpg) repeat-y 0 0;}
                #commentForm .subTitle .subTitleBorder {background:url(images/bgs/comments/commentForm-title-border.jpg) no-repeat 0 100%;}
                #commentForm .subTitle h4 {color:#C09104; text-shadow:1px 1px #FBEECA; background:url(images/icons/pencil.gif) no-repeat 65px 11px;}
                
            /*- Form elements -*/
            #commentForm p {padding:0 0 15px 65px;} 
            #commentForm label {display:block; font-size:0.8em; text-transform:uppercase; color:#999; padding-bottom:3px;}
            #commentForm input,
            #commentForm textarea {width:380px; font-family:inherit; font-size:1em; color:#999; padding:8px 10px; border:1px solid #DDD;}
            #commentForm textarea {font-size:0.9em; height:170px; overflow:auto;}
            #commentForm button {width:128px; background-position:-43px 0;}
            #commentForm button.hoverBtn {background-position:-43px -33px;}
            
 
/*- End Comment Form -------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
 
/*- Sidebar ----------------------------------------------------------------*/
 
 
        .sidebarBox {padding-bottom:20px;}
                        
            /*------------------------------------------*/
            /* TITLES                                   */
            /*------------------------------------------*/      
            .sidebarTitle {background:url(images/bgs/sidebar/sidebar-title.jpg) repeat-y 100% 0; border-bottom:1px solid #E0E0DF; position:relative;}
                .sidebarTitle h4 {font-size:1.5em; font-weight:normal; text-transform:uppercase; color:#7F7F7F; text-shadow:1px 1px #FFF; padding:16px 15px 12px 25px; margin-bottom:5px;}      
                .sidebarBox a:hover {text-decoration:none;}
            
            /*------------------------------------------*/
            /* LINK LISTS                               */
            /*------------------------------------------*/      
            .sidebarBox ul {margin-right:50px;}
                .sidebarBox li a {display:block; font-size:1.15em; line-height:130%; color:#999;  border-bottom:1px solid #DDD;}
                .sidebarBox li.last a {border:0;}
                
            /*------------------------------------------*/
            /* SEARCH BOX                               */
            /*------------------------------------------*/  
            #searchBox {}
                #searchBox p {padding:20px 20px 0 25px;}
                #searchBox input {font-size:1em; font-family:inherit; width:165px; color:#999; padding:5px; margin-right:5px; background:#FFF; border:1px solid #DDD;}  
                #searchBox button {width:42px; background-position:0 0; position:relative; top:-5px;}
                #searchBox button.hoverBtn {background-position:0 -33px;}   
                        
            /*------------------------------------------*/
            /* CATEGORY BOX                             */
            /*------------------------------------------*/
            #categoryBox {}
                
                #categoryBox a:hover {color:#B95050; border-color:#E3CBC4;}
                
            /*------------------------------------------*/
            /* RECENT POSTS BOX                         */
            /*------------------------------------------*/
            #recentPostsBox {}
                #recentPostsBox a {background:url(images/icons/file-sidebar.gif) no-repeat 0 0;}
                #recentPostsBox a:hover {color:#7D5197; border-color:#E1CFF7;}
                
            /*------------------------------------------*/
            /* RECENT COMMENTS BOX                      */
            /*------------------------------------------*/
            #recentCommentsBox {}
                #recentCommentsBox span,
                #recentCommentsBox em {display:block;}
                #recentCommentsBox em {font-size:0.9em;}
                #recentCommentsBox a {background:url(images/icons/bubble-sidebar.gif) no-repeat 0 0;}
                #recentCommentsBox a:hover {border-color:#D2E4E4;}
                #recentCommentsBox a:hover span {color:#739AD7;}  
                #recentCommentsBox a:hover em {color:#6AB32E;}
                
            /*------------------------------------------*/
            /* ARCHIVES BOX                             */
            /*------------------------------------------*/
            #archivesBox {}
                #archivesBox a {background:url(images/icons/clock-sidebar.gif) no-repeat 0 0;}
                #archivesBox a:hover {color:#C59703; border-color:#F0E5C0;}
                
            /*------------------------------------------*/
            /* BLOGROLL BOX                             */
            /*------------------------------------------*/  
            #blogrollBox {}
                #blogrollBox a {background:url(images/icons/arrow-sidebar.gif) no-repeat 0 0;}
                #blogrollBox a:hover {color:#73B73A; border-color:#D5E9C4;} 
                
            /*------------------------------------------*/
            /* LINKS ON HOVER                           */
            /*------------------------------------------*/  
            #categoryBox a:hover,
            #recentPostsBox a:hover,
            #recentCommentsBox a:hover, 
            #archivesBox a:hover,
            #blogrollBox a:hover {background-position:-246px 0;}
                
 
/*- End Sidebar ------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
 
/*- Widgets ----------------------------------------------------------------*/
 
 
        #widgetList {}
            #widgetList .sidebarTitle {margin-bottom:10px;}
            #widgetList li {color:#666; list-style:none; padding:15px 27px; border-bottom:1px solid #DDD;}
            #widgetList li.first {padding-top:0;}
            #widgetList li.last {border:0;}
            #widgetList h4 a {color:#7F7F7F;}
            #widgetList a {display:inline; color:#999; padding:0; border:0;}
            #widgetList a:hover,
            #widgetList h4 a:hover {color:#333;}                        
            
            /*- Calendar -*/
            #calendar_wrap {padding:0 50px 0 15px;}
                #wp-calendar {width:100%; color:#999;}
                    #wp-calendar th {padding-top:10px;}
                    #wp-calendar th,
                    #wp-calendar td {text-align:center;}
                    #wp-calendar a {color:#666;}
                    #wp-calendar a:hover {text-decoration:underline;}
            
            /*- Text Widget -*/
            .textwidget {padding:10px 27px 5px;}
                .textwidget p {line-height:130%; padding-bottom:5px;}
 
 
/*- End Widgets ------------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
 
 
 
/*- End Navigation ---------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
 
/*- Tag Cloud --------------------------------------------------------------*/
 
        
        #tagCloud {clear:both; padding-top:30px;}
            
            /*- Title -*/
            #tagCloud .subTitle {background:url(images/bgs/tag-cloud/tagCloud-title.jpg) repeat-y 0 0;}
                #tagCloud .subTitle .subTitleBorder {background:url(images/bgs/tag-cloud/tagCloud-title-border.jpg) no-repeat 0 100%;}
                #tagCloud .subTitle h4 {color:#999; text-shadow:1px 1px #FFF; background:url(images/icons/tag-title.gif) no-repeat 65px 11px;}
                        
            /*- The tag list -*/
            #tagCloud ul {padding:0 20px 50px; margin:0 30px; background:url(images/bgs/tag-cloud/zig-zag.gif) repeat-x left bottom;}
                #tagCloud li {float:left; text-transform:capitalize; padding:15px 0 0 20px;}
                #tagCloud a {font-size:0.8em; color:#CD5550;}
                    
                    #tagCloud .tagSize-1 a {font-size:1.8em; color:#4C80FE;}
                    #tagCloud .tagSize-2 a {font-size:1.4em; color:#1AA4E1;}
                    #tagCloud .tagSize-3 a {font-size:1.2em; color:#5AAD97;}
                    #tagCloud .tagSize-4 a {font-size:1em; color:#B3A40C;}
                    #tagCloud .tagSize-5 a {font-size:0.9em; color:#D79017;}
                                    
                /*- Divider -*/
                #tagCloud .divider {float:none; clear:both; width:100%; height:1px; padding:15px 0 0 0; border-bottom:1px solid #DDD;}
                #tagCloud .divider.last {border:0;} 
 
 
/*- End Tag Cloud ----------------------------------------------------------*/
/*-----------------------------------------------------------------------------------------------*/
 
/*- Footer -----------------------------------------------------------------*/
 
 
        #footer {font-size:0.75em; color:#999; padding:20px 0 40px;}
        
            #footer .pageList,
            #copywright {padding:10px 20px; margin:0 50px;}
            
                #footer a {color:#999;}
                #footer a:hover {color:#666;}
        
            /*- Footer page list -*/    
            #footer .pageList {padding-bottom:5px;}
                #footer .pageList li {float:left; line-height:180%; padding-right:10px;}
                #footer .pageList a {text-transform:uppercase;}
        
            /*- Copywright -*/
            #copywright {border-top:1px solid #DDD;}
                #about {float:left; width:700px;}
                #codeIsPoetry {float:right; width:134px; height:11px; background-position:0 -130px;}
 
 
/*- End Footer -------------------------------------------------------------*/
/*--------------
0
Администратор
12268 / 5333 / 268
Регистрация: 05.04.2011
Сообщений: 14,086
Записей в блоге: 2
08.11.2012, 22:24 7
Almaz1, у Вас по идее прописана ширина для сайта - вот

CSS
1
2
3
4
 /*- Screen Size Limit -*/
            #header,
            #mainWrap,
            #footer {width:1000px; margin:0 auto;}
Разве не отрабатывает? Что вообще Вы имеете ввиду под "растягивается"?
0
0 / 0 / 0
Регистрация: 08.11.2012
Сообщений: 8
08.11.2012, 22:29  [ТС] 8
например на моем расширении монитора в 1440 на 900 сайт выглядить меньше и все видно, а если поставлю расширение 600 на 800 экран увеличится и содержимое сайта тоже увеличится.Как сделать чтобы при любом расширении сайт выглядел 1440 на 900?
0
Администратор
12268 / 5333 / 268
Регистрация: 05.04.2011
Сообщений: 14,086
Записей в блоге: 2
08.11.2012, 22:40 9
Ооо.... это веселое занятие - все стили переписать в процентах. Весь шаблон переделать. Да и бессмысленное это занятие - не нужно этого.
1
0 / 0 / 0
Регистрация: 08.11.2012
Сообщений: 8
08.11.2012, 22:41  [ТС] 10
А что можно сделать кроме этого?Просто некрасиво выглядит(
0
Администратор
12268 / 5333 / 268
Регистрация: 05.04.2011
Сообщений: 14,086
Записей в блоге: 2
08.11.2012, 22:45 11
Ну, в принципе вариант попроще - задать для общего контейнера min-width и max-width

К примеру, min-width=800xp а max-width=1200px Но там скорее всего еще кое-что придется переделать чтобы работало как надо.
0
0 / 0 / 0
Регистрация: 08.11.2012
Сообщений: 8
08.11.2012, 22:47  [ТС] 12
напримере можете показат спасибо!
0
08.11.2012, 22:47
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
08.11.2012, 22:47
Помогаю со студенческими работами здесь

Почему не растягивается ul на высоту вложенных элементов
Добрый день. Подскажите где косяк: http://jsfiddle.net/nFJ98/5/ &lt;div id=&quot;top_menu&quot;&gt; &lt;ul&gt; ...

Почему div не растягивается на всю страницу?
Здраствуйте, мне нужно футер разтянуть на всю страницу, когда браузер открыт на весь экран, то всё...

Почему не растягивается правый блок до конца вправо?
ссылка на песочницу &lt;div class=&quot;left-right&quot;&gt; &lt;div class=&quot;left&quot;&gt; &lt;h2&gt;Some...

С !doctype высота header не растягивается попроцентно, а без него растягивается
Не нашел подобной другой темы. Имею такую же проблему. &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML...


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

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