Jump to content
  • 0

Не получается с двумя слоями.


JeФoks
 Share

Question

1.JPG

2.JPG

Не могу совместить два слоя в одной ячейке таблицы (такое вообще, возможно?).

Ж?лтая область - это область, где по умолчанию должна находится строка "On-line заказ.....", эта область растягивает ячейку по высоте, да и вообще портит вид, какого бы цвета не была.

Саму строчку я передвинул (но ж?лтая область осталась), однако в этой же ячейке находится рисунок, который тоже описан отдельным слоем.

Вобщем отрывок кода ячейки такой:

<td colspan="2" class="menubar">
<span class="pic_left"><img src="images/left_bar.gif"></span>
<div id="menubar_text">On-line заказ</div>
</td>

CSS:

.menubar {
background:
#fc0 /* ж?лтый для наглядности */
url('images/fon_menubar.gif')
repeat-x;
}

.pic_left {
position: relative;
top: 0px;
left: 0px;
}

#menubar_text {
position: relative;
top: -34px;
left: 65px;
font-family: Arial Narrow, Helvetica, sans-serif;
font-size: 16px;
color: #ffffff;
font-weight: regular;

Link to comment
Share on other sites

2 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