Jump to content
  • 0

DIV


Flanker
 Share

Question

Есть сайт разверстанный таблицами, вот вопрос - как сделать так, чтобы слой был точно сверху одной таблицы, ну или сверху картинки ,чтобы можно было спокойно писать текст как бы поверх картинки ?

Link to comment
Share on other sites

22 answers to this question

Recommended Posts

  • 0
<html>
<head>
<title>podsol5</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<link rel="stylesheet" href="soulstudio.css" type="text/css" />

<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:538px;
height:157px;
z-index:1;
left: 391px;
top: 173px;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (podsol5.psd) -->
<table align="center" width="1024" height="768" border="0" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td>
<img src="images/podsol5_01.gif" width="2" height="113" alt=""></td>
<td>
<img src="images/podsol5_02.gif" width="220" height="113" alt=""></td>
<td colspan="3">
<img src="images/podsol5_03.gif" width="802" height="113" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/podsol5_04.gif" width="2" height="247" alt=""></td>
<td>
<img src="images/podsol5_05.gif" alt="" width="220" height="45" align="top"> </td>
<td colspan="3" background="images/podsol5_06.gif" bgcolor="#FFFFFF">
<table width="620" height="45" border="0" align="left" class="tableclass" id="navigation">
<tr>
<td><a href="#">Главная</a> </td>
<td><a href="#">Веб-дизайн</a></td>
<td><a href="#">Видео</a></td>
<td><a href="#">Фото</a></td>
<td><a href="#">Портфолио</a></td>
<td><a href="#">О нас</a> </td>
<td><a href="#">Цены</a></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<img src="images/podsol5_07.gif" width="220" height="202" alt=""></td>
<td colspan="3">
<img src="images/podsol5_08.gif" width="802" height="202" alt="">
<div style=" style="background-image:url('images/podsol5_08.gif'); position:absolute" id="Layer1" >текст </div></td>
</tr>
<tr>
<td colspan="2" rowspan="2">
<img src="images/podsol5_09.gif" width="222" height="274" alt=""></td>
<td colspan="3">
<img src="images/podsol5_10.gif" width="802" alt=""></td>
</tr>
<tr>
<td colspan="2"> </td>
<td>
<img src="images/podsol5_12.gif" width="217" height="149" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/podsol5_13.gif" width="222" height="134" alt=""></td>
<td>
<img src="images/podsol5_14.gif" width="202" height="134" alt=""></td>
<td>
<img src="images/podsol5_15.gif" width="383" height="134" alt=""></td>
<td>
<img src="images/podsol5_16.gif" width="217" height="134" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->

</body>
</html>

Link to comment
Share on other sites

  • 0
<html>
<head>
<title>podsol5</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<link rel="stylesheet" href="soulstudio.css" type="text/css" />

<style type="text/css">
.back {
background: url(images/podsol5_08.gif) no-repeat;
text-align: left;
vertical-align: top;
}
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (podsol5.psd) -->
<table align="center" width="1024" height="768" border="0" cellpadding="0" cellspacing="0" id="Table_01">
<tr>
<td>
<img src="images/podsol5_01.gif" width="2" height="113" alt=""></td>
<td>
<img src="images/podsol5_02.gif" width="220" height="113" alt=""></td>
<td colspan="3">
<img src="images/podsol5_03.gif" width="802" height="113" alt=""></td>
</tr>
<tr>
<td rowspan="2">
<img src="images/podsol5_04.gif" width="2" height="247" alt=""></td>
<td>
<img src="images/podsol5_05.gif" alt="" width="220" height="45" align="top"> </td>
<td colspan="3" background="images/podsol5_06.gif" bgcolor="#FFFFFF">
<table width="620" height="45" border="0" align="left" class="tableclass" id="navigation">
<tr>
<td><a href="#">Главная</a> </td>
<td><a href="#">Веб-дизайн</a></td>
<td><a href="#">Видео</a></td>
<td><a href="#">Фото</a></td>
<td><a href="#">Портфолио</a></td>
<td><a href="#">О нас</a> </td>
<td><a href="#">Цены</a></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<img src="images/podsol5_07.gif" width="220" height="202" alt=""></td>
<td colspan="3" class="back">
текст писать прямо в ячейке! Зачем ты используешь имаджи? Лучше записать все картинки бэкграундом к ячейкам и прописать ячейкам стили (посмотри как я сделал).
</td>
</tr>
<tr>
<td colspan="2" rowspan="2">
<img src="images/podsol5_09.gif" width="222" height="274" alt=""></td>
<td colspan="3">
<img src="images/podsol5_10.gif" width="802" alt=""></td>
</tr>
<tr>
<td colspan="2"> </td>
<td>
<img src="images/podsol5_12.gif" width="217" height="149" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/podsol5_13.gif" width="222" height="134" alt=""></td>
<td>
<img src="images/podsol5_14.gif" width="202" height="134" alt=""></td>
<td>
<img src="images/podsol5_15.gif" width="383" height="134" alt=""></td>
<td>
<img src="images/podsol5_16.gif" width="217" height="134" alt=""></td>
</tr>
</table>
<!-- End ImageReady Slices -->

</body>
</html>

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