Jump to content
  • 0

Проблемы с вставкой изабражения.


red-nicolas
 Share

Question

Нарисовал меню в фотошопе, разрезал его. Верхнюю и нижнюю часть задал как вставка рисунка над и под кнопками меню, а середину задал как фон, но изображения не состыкуются, в чем проблема? Фон смещен в право.

Так же при вставки изображения слево и снизу образуется какой то зазор, как его убрать?

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

  • 0

:) так видимо мои толчки не действуют :))

почитай про параметры margin и padding

ну а вообще в своем стиливом файле пропиши обнуление

* {margin:0; padding:0}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<style type="text/css">
* {margin:0; padding:0}
</style>
</head>
<body>

</body>
</html>

Link to comment
Share on other sites

  • 0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Документ без названия</title>
<style type="text/css">
<!--
@import url("stile.css");
-->
</style>
<link href="stile.css" rel="stylesheet" type="text/css" />
</head>
<table align="center" border="3" width="980" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" valign="top">
<img src="CAHORE.gif"/>
</td>
<td valign="top">
<a href=""><img src="Dom.gif" align="right" border="0" hspace="20"/></a>
<a href=""><img src="mail.gif" align="right" border="0" /></a>
</td>
</tr>
<tr>
<td colspan="2">
<p class="меню2"><a class="меню" href="">ГЛАВНАЯ</a>
<a class="меню" href="">НОВОСТИ</a>
<a class="меню" href="">ФОРУМ</a>
<a class="меню" href="">РЕКЛАМА</a>
<a class="меню" href="">КОНТАКТЫ</a>
<a class="меню" href="">КАРТА</a></p>
</td>
<td>
vremya
</td>
</tr>
<tr>
<td>
<table align="center" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="210" align="center" bgcolor="#CCCCCC">
<img style="margin: 0; padding:0" alt=" " width="210" height="34" src="Главное-меню_верх.gif"/>
<a href=""><img border="0" src="Cafe.gif"/></a>
<a href=""><img border="0" src="Hotel.gif"/></a>
<a href=""><img border="0" src="Restaurant.gif"/></a>
<img style="margin: 0; padding:0" width="210" height="34" src="Главное-меню_низ.gif"/>
</td>
</tr>
<tr>
<td width="200" height="50">poisk</td>
</tr>
<tr>
<td width="210" align="center" bgcolor="#CCCCCC">
<img style="margin: 0; padding:0" width="210" height="34" src="Menu_baner.gif" align="absbottom"/>
<img src="baner_1_200x150.gif"/>
<img src="baner_2_200x150.gif"/>
<img style="margin: 0; padding:0" width="210" height="34" src="Menu_baner_1.gif"/>
</td>
</tr>
</table>
</td>
<td width="66%" valign="top">
<table align="center" width="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td height="100" align="center"><img src="baner_1_500x100.gif"/></td>
</tr>
<tr>
<td height="100%">baner</td>
</tr>
<tr>
<td align="center"><img src="baner_2_500x100.gif"/></td>
</tr>
</table>
</td>
<td valign="top" background="Квадрат_серый.gif">
<table align="center" border="0" cellpadding="0" cellspacing="0">
<td align="center">

<img src="baner_1_100x100.gif"/>
<img src="baner_2_100x100.gif"/>
<img src="baner_3_100x100.gif"/>
<img src="baner_4_100x100.gif"/>
</td>
</table>
</td>
</tr>
<tr>
<td colspan="3" height="20" valign="top" align="left" background="Нижнее_узкон_меню_фон.gif">
<img src="Нижнее_узкон_меню_л.gif" align="left"/>
<img src="Нижнее_узкон_меню_п.gif" align="right"/>
</td>
</td>
</tr>
<tr>
<td colspan="3" height="20" align="center">
info@cahore.ru
</td>
</tr>
</table>

<body>
</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