Jump to content
  • 0

Как добавить новый стиль меню


money121
 Share

Question

Возник такой вопрос! Вот Html код меню и его стиль, мне нужно сделать так чтобы для одного

пункта меню (Акции) был другой стиль (точнее чтобы этот пункт меню был красного цвета, а при

наведении курсора синего), как мне это сделать, а то чето сижу и немогу никак вникнуть!!!

HTML

<tr>

<td class="left" valign="top">

<div id="menu">

<div class="m"><a href="/about/" class="menu_a">О компании</a></div>

<div class="m"><a href="/news/" class="menu_a">Новости компании</a></div>

<div class="m"><a href="/articles/" class="menu_a">Статьи</a></div>

<div class="m"><a href="/shop/" class="menu_a">Каталог</a></div>

<div class="m"><a href="/akcia/" class="menu_a">Акции</a></div>

<div class="m"><a href="/servise/" class="menu_a">Доставка</a></div>

<div class="m"><a href="/usloviya/" class="menu_a">Условия</a></div>

<div class="m"><a href="/contact/" class="menu_a">Контакты</a></div>

</div>

CSS

.left {width:289px; height:100%;}

#menu{padding-left: 40px;text-align:left;}

.m {font-weight: normal; font-family: Times New Roman; font-size: 16pt; padding-top:10px;}

.m a{color: #ED9823; text-decoration: underline;}

.m a:hover{color: #FFF; text-decoration: none;}

Edited by money121
Link to comment
Share on other sites

3 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.

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