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

Как закрепить хедер?

21.06.2013, 10:26. Показов 5995. Ответов 10
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
Помогите пожалуйста...
Весь день мучился...
А делов скорее всего на 10 минут...

В общем нужно чтобы текст в контенте всегда был в белой рамке (на скрине)

Я смог сконфигурировать его по ширене, смог сделать нужный отступ сверху.
Но только когда проматываю вниз страницу, текст уходит вверх и накладывается на верхнюю часть фона. А мне этого вовсе не надо.

Текст должен обрезаться строго по белой рамке и не входить за ее границы.

http://imglink.ru/thumbnails/2... 31424b.jpg

шаблон вот этот
http://www.joomla24.com/galler... board_av_1
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
21.06.2013, 10:26
Ответы с готовыми решениями:

Как добавить виджеты в хедер?
Привет! Как добавить виджеты в хедер? Все перепробовал. Юзаю тему Avada. Может дело в этом?...

как обеденить хедер и исходники в мейне
Здравствуйте я занимаюсь программированием примерно два месяца, я ни разу не делал отдельные...

Как вынести объявление класса в хедер?
Есть некий класс с функц-членами. набрал в Geany и вынес в отдельный файл cool.cpp функции-члены...

Как в <?php ?> подключить блок, например, хедер
&lt;?php &lt;?php include(&quot;block/header.php&quot;);?&gt; ?&gt; так не работает

10
5 / 5 / 0
Регистрация: 24.08.2011
Сообщений: 191
21.06.2013, 10:30 2
А если весь текст в блок и overflow:scroll; ?
0
0 / 0 / 0
Регистрация: 21.06.2013
Сообщений: 18
21.06.2013, 11:14  [ТС] 3
А можно по точнее? Как это сделать.
Дело в том, что все дивы тоам - менюшные...
Или я не там смотрю...
0
5 / 5 / 0
Регистрация: 24.08.2011
Сообщений: 191
21.06.2013, 12:10 4
В смысле менюшные? Нельзя просто текст обернуть в новый блок div? Или всё в шаблоне?
0
3 / 3 / 1
Регистрация: 09.09.2012
Сообщений: 36
21.06.2013, 13:38 5
Вас не совсем понятно, лучше бы скинули код CSS и HTML. А так, если вам нужно, чтобы элемент двигался синхронно вместе с вашим экраном, то добавьте свойство position: fixed;

Для примера я сделал вам код:

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
<html>
<style>
 
#body {
    background: #e9e9e9;
}
#wrapper {
    background: #161616;
    width: 1000px;
    height: 2000px;
    margin: 0 auto;
}
#text {
    display: block;
    position: fixed;
    color: gray;
    padding: 20px;
}
 
</style>
<body>
 
 
<div id="wrapper">
    <div id="text">
        ВАШ ТЕКСТ
    </div>
</div>
 
</body>
</html>
0
0 / 0 / 0
Регистрация: 21.06.2013
Сообщений: 18
21.06.2013, 15:36  [ТС] 6
На картинке, что я прикрепил в первом сообщении есть надпись "Наш веселый дет сад". Так же есть рамка (на картинке - это коричневая веревка с круглишками.) Так вот в этой рамке мне нужно разместить текст (более подробно - я обвел белой линией.) Изначально он там и размещается. Но когда я проматываю текст вниз, то он накладывается на надпись "Наш веселый дет сад", что не эстетично...

Фон я зафиксировал, Теперь он при промотке остается наместе.

А вот, сделать чтобы при промотке текста вниз статьи, он не накладывался на надпись - не получается.

Вот содержимое файла css

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
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
/*CSS-Document
schmucker-av*/
 
/* [url]http://meyerweb.com/eric/tools/css/reset/[/url] 
   v2.0 | 20110126
   License: none (public domain)
*/
 
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, 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,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    /*font-size: small;*/
    /*font: inherit;*/
    /*vertical-align: baseline;*/
}
 
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
 
html {
    height: 100%;
    display: table;
    background: url('../images/page-background.jpg') ;
    width: 100%
    
}
 
body {
    min-width: 1020px;
    font-family: Arial, Helvetica, sans-serif;
    background-image: url('../images/transparenz.png');
    display: table-cell;
    vertical-align: top;
    font-size: 100.1%;
    height: 100%;
    /*background-clip: padding-box;
    -moz-border-radius: 25px;*/
    border: 1.6em solid #882500;
    -webkit-box-shadow: rgba(152, 37, 0, 1) 0 0 15px inset;
    -webkit-box-shadow: rgba(152, 37, 0, 0.8) 0 0 30px inset;
    -moz-box-shadow: rgba(152, 37, 0, 1) 0 0 15px inset;
    -moz-box-shadow: rgba(152, 37, 0, 0.8) 0 0 30px inset;
    box-shadow: rgba(152, 37, 0, 1) 0 0 15px inset;
    box-shadow: rgba(152, 37, 0, 0.8) 0 0 30px inset;
    background: hsla(180, 100%, 100%, 0.3);
 
}
 
ul {
    list-style: none;
}
 
ol {
    list-style-position: inside;
}
 
.item-page ul {
    list-style: disc;
    list-style-position: inside;
}
 
blockquote, q {
    quotes: none;
}
 
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
 
table {
    border-collapse: collapse;
    border-spacing: 0;
}
 
/*-----------Begin css av ------------------*/
* {
    font-family: Arial, Helvetica, sans-serif;
    color: #0d0d0d;
}
 
 
h1, h2, h3, h4, h5, p {
    margin: 8px 0;
}
 
table.contentpane  table td {
    padding: 5px;
    vertical-align: top;
}
 
h1 {    
    /*font-size: 1.2em;*/
}
 
h2 {
    color: #882500;
}
 
h3 {
    color: #ab4f26;
}
 
span.item-title {
    font-size: 1.2em;
    font-weight: bold;
}
 
p, td, li, form, dl ,.breadcrumbs, address {
    line-height: 1.4em;
}
 
a, a span {
    color: #882500;
}
 
a:link, a:visited {
    color: #882500; 
}
 
a:hover, a:hover span {
    color:  #ab4f26;
    text-decoration: underline;
}
 
.clr {
    clear: both;
}
 
.clr_l {
    clear: left;
}
 
.clr_r {
    clear: right;
}
 
#page-wrapper {
    min-height: 100%;
    min-width: 100%
}
 
#container-in {
    margin: 0 20px;
    height: 100%;
    min-width: 94%;
}
 
#column-right, #column-left {
    float: right;
    width: 22%;
    margin-left: 1%;
    margin-right: 1%;
    /*padding-top: 90px;*/
}
 
#column-left {
    clear:left;
    float: left;
    margin-right: 3%;
    margin-left: 0;
}
 
#page, #page-small, #page-m {
    float: left;
}
 
#page-m{
    width: 72%;
}
 
#page-small {
    width: 49%;
}
 
#top {
    /*height: 33px;*/
    min-height: 178px;
    background-image: url('../images/header-background.png');
    background-position: 73% 0;
    background-repeat: no-repeat;
    width: 100%;
    margin-top: 20px;
}
 
#fontsize  {
    float: right;
    margin-right: 30px;
}
 
#fontsize  h3, #fontsize p, #fontsize a{
    display: block;
    float: left;
    font-size: 1em;
    line-height: 1.4em;
    height: 1.4em;
    margin: 0;
    vertical-align: middle;
}
 
#fontsize a {
    padding: 0 0.3em;
    text-decoration: none;
}
 
#topmenu {
    height: 1em;
    width: 50%;
}
 
#logo {
    margin-left: 50%;
}
 
#content {
    padding-top: 10px;
    float: left;
    width: 100%;
}
 
#breadcrumbs {
    padding: 5px 0  10px 10px;
}
 
#modules-left {
    width: 100%;
    float: left;
    padding: 0 10px 0 0;
}
 
#showcontent {
    width: 100%;
}
 
#modules-bottom {
    width: 100%;
    padding-top: 1em;
}
 
#spacer-bottom {
    height: 1em;
}
 
#body-wrapper {
    padding-bottom: 4em;
    min-width: 100%;
}
 
#modules-bottom-in .module {
    /*float: left;*/
    background: none;
    padding: 10px 0;
    margin: 0 10px;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    -moz-border-radius: 0;
    border-radius: 0;
    border-top: 1px solid #ab4f26;
}
 
#footer-out {
    width: 98%;
    margin: -4em auto 0 auto;
    height: 4em;
    /*position: absolute;
    bottom: 0;
    left:0;*/
}
 
#copy, #vis-wrapper {
    width: 49%;
    height: 1.5em;
    line-height: 1.5em;
    padding-top: .5em;
}
 
#footer-nav {
    clear: both;
    padding-top: .5em;
    text-align: center;
}
 
#vis-wrapper {
    float: right;
    text-align: right;
}
 
#copy {
    float: left;
}
 
#com-form-login ul {
    list-style: none;
}
 
 
/*-------- Top-Menue menu-class-suffix -nav -----------*/
#topmenu ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    /*height: 5em;*/
    width: 100%;
}
 
#topmenu ul.menu li
{
    float: left;
    height: 9em;
    line-height: 3em;
    
}
 
#topmenu ul.menu li a
{
    font-family: arial, Helvetica, sans-serif;
    color: #deb36c;
    display: block;
    height: 2.5em;
    text-decoration: none;
    padding: 35px 1.6em 0.8em;
    margin: 0 1.4em 2.8em 0;
    background: url(../images/nadel_hell.png) 55% 2px #fff0a5;
    background-repeat: no-repeat;
    font-weight: bold;
    -moz-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: hsla(39, 80%, 20%, 1) 0.6em 1.4em 0.8em;
    -moz-box-shadow: hsla(39, 80%, 20%, 1) 0.6em 1.4em 0.8em;
    box-shadow: hsla(39, 80%, 20%, 1) 0.6em 1.4em 0.8em;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
 
#topmenu ul.menu li a:hover {
    text-decoration: underline;
    color: #ab4f26;
    border-bottom-right-radius: 40px 20px;
    
}
 
/*#topmenu ul#mainlevel #active_menu {
    color: #882500;
    text-decoration: none;
}*/
 
/*Dropdown Topmenu menu style = list 
always show sub-menu items 
menu class suffix -nav*/
 
#topmenu ul.menu  ul{
 
}
 
#topmenu ul.menu li:hover , #topmenu ul.menu li.sfhover,
#topmenu ul.menu ul li:hover
{
    position: relative;
}
 
#topmenu ul.menu li li {
    float: none;
    background-image: none;
    background-color: #882500;
    text-align: left;
    /*necessary for equal width of dropdown-li-elements*/
    width: 150px;
    height: 1.4em;
    line-height: 1.4em;
    padding: 3px 0;
}
 
#topmenu ul.menu li li a , #topmenu ul.menu li li a:hover,
#topmenu ul.menu li li li a, #topmenu ul.menu li li li a:hover 
 
{
/*necessery, if missing pulldown menu dissapears unexpectedly*/
    background-image: none;
    background-color: #882500;
    margin:0;
    padding: 5px;
    height: 1.4em;
    line-height: 1.4em;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}
 
#topmenu ul.menu li li li a {
    color: #882500;
    background: #ffb732;
}
 
#topmenu ul.menu ul {
    position: absolute;
    left: -9999px;
    /*necessery, if missing pulldown menu dissapears unexpectedly*/
    z-index: 1;
    padding: 35px 1.6em 0.8em;
    margin: 0 1.4em 2.8em 0;
    background:#882500;
    background-repeat: no-repeat;
    font-weight: bold;
    -moz-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-shadow: hsla(39, 80%, 20%, 1) 0.6em 1.4em 0.8em;
    -moz-box-shadow: hsla(39, 80%, 20%, 1) 0.6em 1.4em 0.8em;
    box-shadow: hsla(39, 80%, 20%, 1) 0.6em 1.4em 0.8em;
}
 
#topmenu ul.menu li:hover ul ul {
    position: absolute;
    left: -9999px;
}
 
#topmenu ul.menu li:hover ul ul, #topmenu ul.menu li li li, 
#topmenu ul.menu li li li a:hover  {
    background: #ffb732;
}
 
#topmenu ul.menu li:hover ul {
    left: 35px;
    top: 4em;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
 
#topmenu ul.menu ul li:hover ul {
    left: 15px;
    top: 2em;
    -moz-transition: all 0.5s ease;
    -webkit-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
 
/*Ende Dropdown Menue */
 
/*------------ Main-Menue left module-class-suffing -menu ------------*/
/*Menue-texts are in span
format fonts in span element
textdecoration for links in a element*/
 
div.module h3, div.moduletable h3, div.module_menu h3{
    color: #0d0d0d;
    color: #ab4526;
    line-height: 26px;
    font-weight: bold;
}
 
div.module_menu ul {
    list-style: none;
    width: 100%;
}
 
div.module_menu li {
    padding-bottom: 5px;
    width: 100%;
}
 
div.module_menu li a {
    display: block;
    border-bottom: 1px solid #deb36c;
    width: 100%;
    text-decoration: none;
    color: #fff0a5;
    font-weight: bold;
}
 
div.module_menu li li {
    padding: 2px 0 2px 2%;
    width: 98%;
}
 
/*#column-left div.moduletable_menu li ul {
    width: 97%;
}*/
 
#column-left div.module_menu li li a{
    width: 97%;
    padding-right: 3%;
}
 
#column-left div.module_menu li li li a{
    width: 94%;
    padding-right: 6%;
}
 
#column-left div.module_menu li li li li a{
    width: 91%;
    padding-right: 9%;
}
 
#column-left div.module_menu li li li li li a{
    width: 88%;
    padding-right: 12%;
}
 
#column-right div.module_menu li li a{
    width: 97%;
    padding-left: 3%;
}
 
#column-right div.module_menu li li li a{
    width: 94%;
    padding-left: 6%;
}
 
#column-right div.module_menu li li li li a{
    width: 91%;
    padding-left: 9%;
}
 
#column-right div.module_menu li li li li li a{
    width: 88%;
    padding-left: 12%;
}
 
div.module_menu li li a {
    line-height: 1.4em;
}
 
 div.module_menu li span {
    font-size: 0.9em;
    color: #deb36c;
}
 
div.module_menu li.active>a, div.module_menu li.active>a >span{
    color: #882500;
}
 
.module_menu li.current a {
    padding-left: 20px;
    background-image: url('../images/menu-arrow.png');
    background-position: 0 50%;
    /*-moz-background-size: .9em;*/
    -webkit-background-size: .9em;
    background-size: .8em;
    background-repeat: no-repeat;
}
 
.module_menu li.current li a {
    padding-left: 0;
    background-image: none;
}
 
div.module_menu li a:hover ,
div.modulet_menu li a:hover span, div.module_menu .actice a:hover span {
    color: #882500; text-decoration: none;
}
.contentpaneopen ul {
    list-style: disc inside;
}
 
/*----------- Footer Navigation, User Navigation ----------*/
 
div#footer-nav ul {
    list-style: none;
}
 
div#footer-nav ul li {
    border-left: 1px solid #882500;
    padding-left: 0.5em;
    padding-right: .5em;
    display: inline;
    font-size: 0.9em;
}
 
div#footer-nav a {
    color: #882500;
}
 
div#footer-nav a:hover, div#footer-nav a:active {
    color: #ab4f25;
}
 
div#footer-nav ul li:first-child {
    border: none;
}
 
/*   System Messages   */
 
div#message_out {
    width: 100%;
    margin: 10px 0;
}
 
#system-message dt {
    font-weight: bold;
    padding: 5px 0 5px 8px;
    font-size: 1.6em;
    color: #000;
}
 
#system-message dd {
    padding: 5px 0 5px 8px;
    font-size: 12px;
    color: #000;
}
 
#system-message ul li {
    background-image: none;
    padding-left: 0;
}
 
#system-message dt.message { 
    border-top: 3px solid #0d0d0d;
}
 
#system-message dd.message {  
    border-bottom: 3px solid #0d0d0d;
}
 
#system-message .message {
    background-color: #d9d9d9;
}
 
#system-message dt.error { border-top: 3px solid #f20505;}
#system-message dd.error { border-bottom: 3px solid #f20505; }
#system-message .error {  background: #f2bcbc; }
 
#system-message dt.notice { 
    border-top: 3px solid #0d0d0d;
}
 
#system-message dd.notice {  
    border-bottom: 3px solid #0d0d0d;
}
 
#system-message .notice {
    background-color: #d9d9d9;
}
 
/*---------------- Content --------------------*/
/*-----------------Modules---------------------*/
 
.module, .module_menu, .moduletable {
    background: url(../images/nadel.png) 50% 0 #ffb732;
    background-repeat: no-repeat;
        padding: 35px 20px 10px;
    margin-bottom: 40px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    -webkit-box-shadow: hsla(39, 80%, 20%, 1) 10px 20px 10px;
    -moz-box-shadow: hsla(39, 80%, 20%, 1) 10px 20px 10px;
    box-shadow: hsla(39, 80%, 20%, 1) 10px 20px 10px;
}
 
.module div, .module_menu div {
    /*background-color: #ffb732;
    z-index: -1;*/
}
 
/*------------------Articles and Categories--------------*/
 
.items-leading  div, .item{
    padding: 10px 20px;
    /*padding-top: 30px;*/
    margin-bottom: 10px;
    /*background: url(../images/sheet_gelb_720.png);*/
    border: 1px solid #ab4f26;
}
 
.item {
    margin-bottom: 0;
}
 
.items-leading div div {
    padding: 0;
    margin: 0;
    border: 0;
}
 
.items-row {
    /*margin-bottom: 10px;*/
    text-align: justify;
    width: 100%;
}
 
.items-row .item {
    padding: 10px 1% 0;
    /*display: inline-block;*/
    vertical-align: top;
    margin-left: 1%;
    text-align: left;
}
 
.cols-1 .item {
    width: 97.9%;
}
 
.cols-2 .item {
    width: 45.6%;
}
 
.cols-3 .item {
    width: 29.5%;
}
 
.cols-4 .item {
    width: 21%;
}
 
.items-row .column-1 {
    margin-left: 0;
}
 
.cols-2 .column-1, .cols-3 .column-1,
.cols-3 .column-2, .cols-4 .column-1,
.cols-4 .column-2, .cols-4 .column-3 {
    float: left;
    margin-right: 1%;
}
 
.cols-2 .column-2, .cols-3 .column-3,
.cols-4 .column-4 {
    float: right;
}
 
.row-separator {
    display: inline-block; /* Opera */
    padding-left: 100%;
}
 
/*------------------Pagination-------------------------*/
 
.pagination .counter {
    float: left;
    margin: 5px 0;
}
 
.pagination ul, .pagination .counter, ul.pagenav {
    text-align: center;
}
 
.pagination ul li, ul.pagenav li {
    display: inline;
    margin: 5px;
}
 
.pagenavcounter {
    margin: 5px 0;
}
 
.pagination:after {
    content: ".";
    display: block;
    clear: left;
    height: 0;
    visibility: hidden;
}
 
/*-------------------------Forms-----------------------------*/
 
.inputbox {
    /*background: #ffb732;*/
}
 
ul.actions {
    text-align: right;
}
 
ul.actions li { 
    display: inline;
}
 
/*--------------------Categories-----------------------------*/
 
.categories-list ul  ul{
    padding-left: 2%;
}
 
.categories-list li {
    border: 1px solid #ab4f26;
    padding: 10px 20px;
    margin-top: 10px;
}
 
.categories-list li li {
    border:none;
    border-top: 1px solid #ab4f26;
    padding: 10px 0 0 0;
}
 
.categories-list span.item-title {
    font-weight: normal;
    font-size: 1em;
}
 
.article-count dd, .article-count dt {
    display: inline;
}
 
#article-index {
    margin-top: 10px;
    margin-bottom: 10px;
}
 
table.category {
    width: 98%;
    margin-top: 10px;
}
 
table.category th, table.category td {
    border: 1px solid #ab4f26;
    text-align: left;
    padding: 2px 5px;
}
 
table.category .cat-list-row1, table.category th,
table.category .odd {
    background-color: #fff0a5;
}
 
.cat-children ul li {
    margin-top: 10px;
}
 
/* Contacts, login */
address span {
    display: block;
}
 
.contact-form label, .login label {
    display: block;
    float: left;
    min-width: 200px;
}
 
div.contact-email div, .login div {
    padding: 5px 0;
}
 
/* user-profil, submit forms */
 
.profile fieldset , .profile-edit fieldset, #adminForm fieldset,
.remind fieldset, .reet fieldset, .registration fieldset {
    padding-bottom: 8px;
}
.profile legend, .profile-edit legend, #adminForm legend,
.remind legend, .rest legend, .registration legend {
    color: #882500;
    font-weight: bold;
    padding: 8px 0;
}
 
.profile dt , .profile-edit dt, #adminForm label,
.remind dt, .reset dt, .categories-list dt, .registration dt {
    display: block;
    padding: 3px 0;
    float: left;
    min-width: 200px;
    margin-right: 5px;
    line-height: 1.4em;
    clear: left;
    height: 1.8em;
}
 
.profile dd, .profile-edit dd, #adminForm .formelm, .formelm-buttons,
.remind dd, .reset dd , .categories-list dd, .registration dd{
    padding: 3px 0;
    line-height: 1.4em;
    height: 1.8em;
}
 
span.spacer label {
    white-space: nowrap;
    font-weight: bold;
    padding-top: 8px;
    display: block;
}
 
/*----------------------search---------------------------*/
.search label {
    min-width: 100px;
    margin-right: 5px;
}
 
.search-results dt, .search-results .result-created,
.search .phrases div, .search .only, .search .form-limit {
    margin-top: 5px;
}
 
.phrases, .only {
    border: 1px solid #ab4f26;
    padding: 15px;
}
 
.search .phrases legend, .search .only legend {
    font-weight: bold;
    /*padding-top: 10px;
    padding-bottom: 8px;*/
    padding: 3px 5px;
}
 
.form-note {
    font-weight: bold;
}
 
/*---------------forms-----------------*/
 
input.button, button.button, button.validate {
    border: 1px solid #882500;
    color: #fff0a5;
    padding: 3px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    background-color: #ab4f26;
}
 
#login-form .inputbox, .registration input, 
.profile-edit input, #login-form .inputbox, 
.contact .inputbox, .login-fields input, 
.remind input, .reset input, .search .inputbox {
    border: 1px solid #ab4f26;
    padding: 3px;
    -moz-border-radius: 5px;
    border-radius: 5px 5px 5px 5px;
}
 
.button2-left {
    float: left;
    margin: 10px 10px 0 0;
    background: url(../images/j_button2_left.png) no-repeat;
}
 
.button2-left div{
    padding: 2px 10px 5px;
    background: url(../images/j_button2_right.png) 100% 0 no-repeat;
    text-align: center;
    min-width: 75px;
}
 
.button2-left a {
    font-size: 0.9em;
}
 
#adminForm #jform_description-lbl {
    float: none;
    
}
 
.form-limit, .display-limit {
    margin: 20px 0 0;
    padding: 0 10px 0 20px;
    text-align: right;
}
 
div.feed-description {
    margin: 10px 0;
}
 
 
/* Tooltips */
div.tooltip {
        float: left;
        background: #d9d9d9;
        border: 1px solid #deb36c;
        padding: 5px;
        max-width: 200px;
}
 
div.tooltip h4 {
        padding: 0;
        margin: 0;
        font-size: .9em;
        font-weight: bold;
        margin-top: -15px;
        padding-top: 15px;
        padding-bottom: 5px;
        }
 
div.tooltip p {
        
        margin: 0;
}
 
.tip
{
    border:solid 1px #ab4f26;
    background:#fffda5;
    line-height: 1.4em;
    padding:3px;
}
 
.tool-tip {
        float: left;
        background: #fffda5;
        border: 1px solid #ab4f26;
        padding: 5px;
        max-width: 200px;
        text-align:left;
}
 
.tool-title {
        padding: 0;
        margin: 0;
        font-size: 1em;
        font-weight: bold;
        margin-top: -15px;
        padding-top: 15px;
        padding-bottom: 5px;
}
 
.tool-text {
        font-size: 1em;
        margin: 0;
}
 
.nowrap { white-space: nowrap; }
0
3 / 3 / 1
Регистрация: 09.09.2012
Сообщений: 36
21.06.2013, 16:19 7
Цитата Сообщение от Oleg_svv Посмотреть сообщение
На картинке, что я прикрепил в первом сообщении есть надпись "Наш веселый дет сад". Так же есть рамка (на картинке - это коричневая веревка с круглишками.) Так вот в этой рамке мне нужно разместить текст (более подробно - я обвел белой линией.) Изначально он там и размещается. Но когда я проматываю текст вниз, то он накладывается на надпись "Наш веселый дет сад", что не эстетично...

Фон я зафиксировал, Теперь он при промотке остается наместе.

А вот, сделать чтобы при промотке текста вниз статьи, он не накладывался на надпись - не получается.

Вот содержимое файла css
Весь ваш CSS код в 1к строк я читать не буду, поэтому напрямик спрошу.
А вы не пробовали для текста применить свойство position или width/height?)
0
0 / 0 / 0
Регистрация: 21.06.2013
Сообщений: 18
24.06.2013, 02:23  [ТС] 8
Цитата Сообщение от Diador Посмотреть сообщение
Весь ваш CSS код в 1к строк я читать не буду, поэтому напрямик спрошу.
А вы не пробовали для текста применить свойство position или width/height?)
Вы хотите сказать не для тексат, а для контента? (строка 232)
0
162 / 162 / 11
Регистрация: 07.09.2011
Сообщений: 995
25.06.2013, 21:02 9
@Oleg_svv, для хеадера
0
0 / 0 / 0
Регистрация: 21.06.2013
Сообщений: 18
26.06.2013, 03:55  [ТС] 10
В данном шаблоне хедера нет. Вот его демо страничка Для фона я использовал одно целое изображение
Как закрепить хедер?


Я уже подумал что лучше будет отменить фиксацию, разбить его на верх, центр и низ и соответствующим способом разместить.
0
162 / 162 / 11
Регистрация: 07.09.2011
Сообщений: 995
27.06.2013, 21:48 11
если хотите фиксации не всего бэкграунда а отдельных его элементов, то режьте картинку на части и позиционируйте
0
27.06.2013, 21:48
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
27.06.2013, 21:48
Помогаю со студенческими работами здесь

CCS + GRACE + Interrupts Как создать хедер с переменными
Вопрос вроде идиотизм но суть такова. Делаю вольтамперваттметр на 430g2553. Пишу в Код композере...

Как интегрировать ссылку с рефреша в жс в хедер пхп для редиректа?
помогите интегрировать этот рефреш редирект var convertSuccessMsg = (retVals == 1) ?...

Как можно сделать авто генерацию хедер файла в VS2010
Задача такая нужно для каждого .cpp файла с функциями делать .h файл с прототипами всех функций...

Как закрепить?
Ребят как закрепить сообщение на стене(стена как в соц. сети)?


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

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