Joomla 1.5 Добавление CSS-класса модуля

Discussion in 'Изменение шаблона (кастомизация)' started by watson13, Jun 9, 2009.

  1. Offline

    watson13 Недавно здесь

    Joined:
    Feb 6, 2009
    Messages:
    7
    Likes Received:
    0
    Gender:
    Male
    всем доброго времени суток такой вопрос соит джумла 1.5
    есть в таблице стилей такой код для модуля
    Код (CODE):
    1. /* begin Box, Block */
    2. .Block
    3. {
    4.   overflow: hidden;
    5.   min-width:1px;
    6.   min-height:1px;
    7.   margin: 0 auto;
    8.   position: relative;
    9.   z-index: 0;
    10. }
    11.  
    12.  
    13. .Block-body
    14. {
    15.   position: relative;
    16.   z-index: 0;
    17.   margin: 7px;
    18. }
    19.  
    20.  
    21. .Block-cc
    22. {
    23.   position: absolute;
    24.   overflow:hidden;
    25.   z-index: -2;
    26.   top: 0px;
    27.   left: 0px;
    28.   right: 0px;
    29.   bottom: 0px;
    30.   background-image: url('../images/Block-c.png');
    31. }
    32.  
    33. .Block-cs
    34. {
    35.   margin: 7px;
    36. }
    37.  
    38. /* end Box, Block */

    он используется по умолчанию для всех модулей в левой колонки как мне сделать новый клас и указать я делал так
    Код (CODE):
    1. /* begin Box, Block */
    2. .Block-cs
    3. {
    4.   overflow: hidden;
    5.   min-width:1px;
    6.   min-height:1px;
    7.   margin: 0 auto;
    8.   position: relative;
    9.   z-index: 0;
    10. }
    11.  
    12.  
    13. .Block-body
    14. {
    15.   position: relative;
    16.   z-index: 0;
    17.   margin: 7px;
    18. }
    19.  
    20.  
    21. .Block-cc
    22. {
    23.   position: absolute;
    24.   overflow:hidden;
    25.   z-index: -2;
    26.   top: 0px;
    27.   left: 0px;
    28.   right: 0px;
    29.   bottom: 0px;
    30.   background-image: url('../images/Block-cc.png');
    31. }
    32.  
    33. .Block-cs
    34. {
    35.   margin: 7px;
    36. }
    37.  
    38. /* end Box, Block */


    указываю например в модуле авторизации клас модуля -cs а измининения происходят во всех модулях подскажыте что можно сделать как правильно все прописать таких класа мне надо аж три сделать и чтобы работало
     
  2.  
  3. Offline

    Bardak Недавно здесь

    Joined:
    Jun 1, 2009
    Messages:
    24
    Likes Received:
    1
    Gender:
    Male
    Re: клас модуля

    .Block-cs { overflow: hidden; min-width:1px; min-height:1px; margin: 0 auto; position: relative; z-index: 0; }

    .Block-cs { margin: 7px; }


    у вас два раза определен
     
  4. Offline

    watson13 Недавно здесь

    Joined:
    Feb 6, 2009
    Messages:
    7
    Likes Received:
    0
    Gender:
    Male
    Re: клас модуля

    прошу прощения посмотрел в в таблице там все верно указано .Block { margin: 7px; }
     
  5. OlegM
    Offline

    OlegM Russian Joomla! Team Staff Member

    Joined:
    Apr 12, 2007
    Messages:
    4,310
    Likes Received:
    375
    Gender:
    Male
    Re: клас модуля

    watson13, класс - с двумя С

    грамотеи, блин... глаза сломаешь, пока прочитаешь
     

Share This Page

Loading...