|
|
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
Всем привет. Хз, чёта не могу на весь документ поставить цвет текста! вот бэкграун ставиться, а color не хочет. пробывал: html {color:цвет;} body {color:цвет;} Как заставить принять цвет?? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.02.2010, 19:04:45 |
|
||
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
vandervВсем привет. Хз, чёта не могу на весь документ поставить цвет текста! вот бэкграун ставиться, а color не хочет. пробывал: html {color:цвет;} body {color:цвет;} Как заставить принять цвет?? Вы почитайте литературу. В интернете много. В том числе и на русском языке. ПС. Можете привести примерчик, где у Вас чего-то не получается. Так, чтобы скопипастить и запустить, а где надо подправить. То, что Вы написали ни в какие ворота не лезет. Начиная с первого междометия. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.02.2010, 19:17:20 |
|
||
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <title>Документ без названия</title> <style> * { outline: none;} html {color:#FF9; !important} body { font: 62.5% "Lucida Grande", Arial, sans-serif; background-color: #f6f6f6; color:#FFF;} h1, h2, h3, h4, h5 { color:#222; } a { text-decoration: none; color: #08c; } a:hover { text-decoration: none; } h1 { font: 30px Arial, Helvetica, sans-serif; letter-spacing:-1px; padding:30px 0 0 0; margin: 0; } h2 { font:15px Arial, Helvetica, sans-serif; padding: 0 0 3px 0; margin-bottom: 0; } .list { margin: 0 auto; width: 380px; padding: 10px; background-color: #fff; } .exists { background: #FBE3E4 url(assets/cross.gif) no-repeat 98% center; border-color: #FBC2C4; color:#8a1f11; } .avail { background: #D6FFD8 url(assets/success.gif) no-repeat 98% center; border-color: #A0D997; color:#436213; } #main, #header, #footer { margin: 0 auto; width: 70%; margin-bottom: 0px; overflow: hidden; } #main { padding: 15px; width: 59%; min-width:510px; border: 1px solid #cbcbcb; -moz-border-radius: 10px; -webkit-border-radius:10px; background:#39F; position:relative; left:80px; top:-123px; } #main2{ padding: 15px; width: 10%; border: 1px solid #cbcbcb; -moz-border-radius: 10px; -webkit-border-radius:10px; background:#39F; } #title { float: left; } #title a { color: #333; } #login { float: right; } #logout {float: right; } .error_message { display: block; height: 22px; line-height: 22px; background: #FBE3E4 url(assets/error.gif) no-repeat 10px center; padding: 3px 10px 3px 35px; margin: 3px 0; color:#8a1f11;border: 1px solid #FBC2C4; -moz-border-radius: 5px; -webkit-border-radius:5px; } .success_message { display: block; height: 22px; line-height: 22px; padding: 3px 10px 3px 35px; margin: 3px 0; color:#666; border: 1px solid #A0D997; -moz-border-radius: 5px; -webkit-border-radius:5px; background-color: #D6FFD8; background-image: url(assets/success.gif); background-repeat: no-repeat; background-position: 10px center; color:#436213; } #footer { text-align: right; font-size: 10px; } label { display:block; font-weight:bold; color:#888; font:10px Arial, Helvetica, sans-serif; text-transform:uppercase; margin:12px 0 4px; } input, textarea, select { padding:7px; border:1px solid #eee; font:16px Arial, Helvetica, sans-serif; width:490px; color:#999; -moz-border-radius:5px; -webkit-border-radius:5px; } input[type=submit], input.submit { width:auto; background:#08c; border:1px solid #06a; color:#fff; font-weight:bold; margin-top:15px; cursor:pointer; width:auto; -moz-border-radius:5px; -webkit-border-radius:5px; padding:5px; } input[type=submit]:hover, input[type=submit]:focus, input.submit:hover, input.submit:focus { background:#06a; color:#fff; } ul.success-reg { margin: 5px 0; padding:0; }; ul.success-reg li { line-height: 25px; color: #999; list-style: none; } span.success-info { width: 70px; } input.edit_search { width:400px; } select { width:auto; } input:focus, textarea:focus { border-color:#ccc; color:#555; } ul.success-reg { margin:10px 10px 10px 0; font-size:120%; } ul.success-reg li { padding: 5px 0; list-style: none; color: #999; border-bottom:1px dotted #ccc; } ul.success-reg li span.success-info b { padding-right:5px; color:#222; display:inline-block; width:80px; } .credentials { width:149px; float:left; text-align: center; padding:0 5px; margin:10px 5px; border-right:1px dotted #ccc; } /* Form style */ fieldset { padding:20px; border:1px solid #eee; -moz-border-radius: 5px; -webkit-border-radius:5px; } legend { padding:7px 10px; font-weight:bold; color:#000; border:1px solid #eee; -moz-border-radius: 5px; -webkit-border-radius:5px; } span.required{ font-size: 13px; color: #08c; } #succsess_page h1 { background: url('assets/success.gif') left no-repeat; padding-left:22px; } /* Buttons */ a.admin { display:block; width:250px; height:52px; background:url(assets/btn_adminpanel.png) bottom no-repeat; text-indent:-9999px; float:left; margin-right:9px; margin-bottom:10px; } a.admin:hover { background-position:top; } a.protected { display:block; width:250px; height:52px; background:url(assets/btn_protected1.png) bottom no-repeat; text-indent:-9999px; float:left; margin-right:0px;} a.protected:hover { background-position:top; } a.protected2 { display:block; width:250px; height:52px; background:url(assets/btn_protected2.png) bottom no-repeat; text-indent:-9999px; float:left; margin-right:9px; margin-bottom:10px; } a.protected2:hover { background-position:top; } a.protected3 { display:block; width:250px; height:52px; background:url(assets/btn_protected3.png) bottom no-repeat; text-indent:-9999px; float:left; margin-right:0px; } a.protected3:hover { background-position:top; } a.register { display:block; width:509px; height:52px; background:url(assets/btn_register.png) bottom no-repeat; text-indent:-9999px; float:left; margin-right:0px; } a.register:hover { background-position:top; } hr { height:1px; background:#ccc; border:none; } </style> </head> <body> <div id="header"> <a href="http://bukstavka.ru/">Главная</a> <a href="http://bukstavka.ru/rule.php">Правила</a> <a href="http://bukstavka.ru/line.php">Линия</a> <a href="http://bukstavka.ru/result.php">Результаты</a> <a href="http://bukstavka.ru/teh.php">Тех. поддержка</a> <a href="http://bukstavka.ru/help.php">Помощь</a> <div id="main2"> <a href="/home.php">профиль</a><br> <a href="/edit.php">изменить данные</a><br> <a href="#">пополнить счет</a><br> <a href="#">вывести деньги</a><br> <a href="#">мои ставки</a><br> <a href="#">история ставок</a><br> <a href="#">история денег</a></div> </div> </body> </html> ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.02.2010, 19:20:57 |
|
||
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
ShSerge , ты хотел пример? Таки ты его получил! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.02.2010, 19:28:57 |
|
||
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
vanderv , даже навскидку видно, что у тебя бовольно много определений типа Код: plaintext значит цвет "всего документа" будет переопределен для этих элементов... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.02.2010, 19:32:20 |
|
||
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
дык мне надо чтоб он их перебивал! так сказать глобальное правило=) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.02.2010, 19:39:05 |
|
||
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
vandervКак заставить принять цвет?? В твоём примере можно применить наследование... Код: plaintext Только не понятно, зачем переопределять КОЛОР, если он нужен везде одинаковый... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.02.2010, 19:40:58 |
|
||
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
vandervдык мне надо чтоб он их перебивал! Хочешь устроить "батл" в ЦССе? Ппц настрой... vandervтак сказать глобальное правило=) Вопрос - почему тогда переобъявляешь? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.02.2010, 19:43:12 |
|
||
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
это не мой css, он со скрипта. Я хочу его изменить. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.02.2010, 19:45:50 |
|
||
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
vandervЯ хочу его изменить. Благородный порыв! Таки и начни с того, что убери все переобъявления КОЛОРа... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.02.2010, 19:47:04 |
|
||
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
vandervэто не мой css, он со скрипта. Я хочу его изменить. регулярки в js Отменяли? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 13.02.2010, 17:51:02 |
|
||
|
[CSS] color на весь документ
|
|||
|---|---|---|---|
|
#18+
vanderv, Начнем с того, что не определен DOCTYPE , а это важно. Отсюда, хз как браузер применяет стили. Второе - лентяй, Вы, батенька. Этот CSS переписать - меньше времени потребует, чем здесь париться. А если на этом уровне ждем готового решения, то лучше перепрофилироваться - например, в продавцы.... ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.02.2010, 10:37:20 |
|
||
|
|

start [/forum/topic.php?fid=22&msg=36466899&tid=1453540]: |
0ms |
get settings: |
10ms |
get forum list: |
17ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
45ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
52ms |
get tp. blocked users: |
2ms |
| others: | 237ms |
| total: | 386ms |

| 0 / 0 |
