Subcomandante.A Posted August 19, 2011 Report Share Posted August 19, 2011 (edited) Друзья, подскажите, пожалуйста, почему к элементу не применяется один из заданных классов.HTML<table border="0" cellpadding="15" cellspacing="15" class="bonusChoice"> <tr> <td> <div class="accountForm"> <div class="input"> <div class="submit"> <input type="submit" value="Select"> </div> </div> </div> </td> </tr></table>CSS.body.ar .bonusChoice .accountForm .input { float: right; height: 1%; overflow: hidden; width: auto; display:inline; line-height: 15px;}При арабской раскладке не применяется класс bonusChoice. Соответственно применяется следующий стиль:body.ar .accountForm .input { float: left; height: 1%; overflow: hidden; width: 54%; display:inline; line-height: 15px;}Возможно, я что-то неверно прописал в style.css. Скорее всего так и есть, иначе бы все работало Заранее спасибо.updСлучайно опубликовал недописанный пост - без стилей. Edited August 19, 2011 by Subcomandante.A Quote Link to comment Share on other sites More sharing options...
0 sigma77 Posted August 19, 2011 Report Share Posted August 19, 2011 Subcomandante.A, а где сами стили? Quote Link to comment Share on other sites More sharing options...
0 psywalker Posted August 19, 2011 Report Share Posted August 19, 2011 1) Вот это чё такое? body.ar2) Давай лучше ссылку на тестовую страницу. Quote Link to comment Share on other sites More sharing options...
0 bonyany Posted August 19, 2011 Report Share Posted August 19, 2011 видимо это один из элементов body на странице с классом "ar" Quote Link to comment Share on other sites More sharing options...
0 CalvinKlein Posted August 19, 2011 Report Share Posted August 19, 2011 (edited) что за .body.ar ?! Edited August 19, 2011 by CalvinKlein Quote Link to comment Share on other sites More sharing options...
0 Subcomandante.A Posted August 19, 2011 Author Report Share Posted August 19, 2011 (edited) 1) Вот это чё такое? body.ar2) Давай лучше ссылку на тестовую страницу.1) Это арабский дирекшн для всего, что находится между тегами <body>HTML<body{% if LANGUAGE_CODE == "ar" %} class="ar"{% endif %}>CSSbody.ar { direction: rtl; etc...}Соответственно, когда пользователь переключает язык на арабский, игнорируется класс .bonusChoice, и мы имеем совсем не то выравнивание {float} для кнопки, которое нужно:.body.ar .bonusChoice .accountForm .input { float: right; height: 1%; overflow: hidden; width: auto; display:inline; line-height: 15px;}2)Редактирую страницу на отладочной версии сайта, на основной версии ее еще нет. Пароли к демо-версии даются только разработчикам Edited August 19, 2011 by Subcomandante.A Quote Link to comment Share on other sites More sharing options...
0 psywalker Posted August 19, 2011 Report Share Posted August 19, 2011 1) Это арабский дирекшн для всего, что находится между тегами <body>HTML<body{% if LANGUAGE_CODE == "ar" %} class="ar"{% endif %}>Вот скорее всего из-за этого и не пашет. Где класс .body ? Quote Link to comment Share on other sites More sharing options...
0 Subcomandante.A Posted August 19, 2011 Author Report Share Posted August 19, 2011 (edited) Спасибо всем, кто откликнулся - уже разобрался, в чем ошибся. Как обычно, все дело в криворукости - прописал body.ar .bonusChoice .accountForm .input с точкой перед body. Edited August 19, 2011 by Subcomandante.A Quote Link to comment Share on other sites More sharing options...
0 psywalker Posted August 19, 2011 Report Share Posted August 19, 2011 Спасибо всем, кто откликнулся - уже разобрался, в чем ошибся. Как обычно, все дело в криворукости - прописал body.ar .bonusChoice .accountForm .input с точкой перед body.Воот, другое дело Quote Link to comment Share on other sites More sharing options...
Question
Subcomandante.A
Друзья, подскажите, пожалуйста, почему к элементу не применяется один из заданных классов.
HTML
CSS
.body.ar .bonusChoice .accountForm .input {float: right;
height: 1%;
overflow: hidden;
width: auto;
display:inline;
line-height: 15px;
}
При арабской раскладке не применяется класс bonusChoice. Соответственно применяется следующий стиль:
body.ar .accountForm .input {float: left;
height: 1%;
overflow: hidden;
width: 54%;
display:inline;
line-height: 15px;
}
Возможно, я что-то неверно прописал в style.css. Скорее всего так и есть, иначе бы все работало
Заранее спасибо.
upd
Случайно опубликовал недописанный пост - без стилей.
Edited by Subcomandante.ALink to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.