Jump to content
  • 0

Css - цвет блока меню


kia
 Share

Question

Доброго времени суток.:)

Подскажите, пожалуйста.С версткой и php/css раньше особо дел не имел. Насколько я понимаю, собака зарыта именно в css'e.

99dd861f095f.jpg

Нужно, чтобы в цвет красилась вся ячейка, а не только шрифт в левом меню, невыпадающем...Поможете?

Кусок кода, который вроде как за это отвечает.

/*** Navigation ***/

.nav {border-top: 1px solid #d9d9d9;}
.dd {height: 48px;}
.dd li {float: left; display: block; border-left: 1px solid #d9d9d9; text-align: center; font-size: 14px; text-transform: uppercase;}

.dd li a {color: #000;/*COLOR OF TEKSTA*/ text-decoration: none; display: block; background: #70d612; padding-top: 18px; margin: 0 14px; white-space: nowrap;}
.dd li a:hover {text-decoration: underline; background: #70d612;}


.dd li ul {position: absolute; padding: 8px 0 10px; visibility: hidden; background: #767a76/*FON TABLE*/; z-index: 100;}
.dd li ul li {float: none; border: none; font-size: 12px; text-align: left; margin: 16px/*PX TABLE*/ 0; padding: 0 8px;}
.dd li ul li a {color: #fff;/*COLOUR OF TEKSTA MENU*/ display: inline; margin: 0 !important; white-space: normal; padding-top: 0;}
.dd li.dd_hover {background: #70d612/*VL*/;}


a.dd_hover:hover {text-decoration: none !important;}
.submenu a:hover {text-decoration: underline;}
.dd li.parent a {margin: 0 8px; padding-right: 12px; background: url("images/dd.png") 100% 24px no-repeat;}
.dd li.parent a.dd_hover {color: #fff; background: url("images/dd_hover.png") 100% 24px no-repeat; margin: 0 8px; padding-right: 12px; border-bottom: 1px solid #fff; padding-bottom: 10px;}

Edited by kia
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Не помешало бы привести НТМЛ-код или живой сайт с проблемой

Да,да, вот сам сайт http://kiadesign.ru/

И материалы шаблона с wordpress, если оно поможет (kiadesign.ru/wp-content/uploads/2011/12/sight.rar)

Edited by kia
Link to comment
Share on other sites

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy