<?php
//запрещаем кеширование страницы.!!!!!!!!!!!!!!!!!
Header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
Header('Pragma: no-cache');
?>
<!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" dir="ltr" lang="ru-RU">
<head>
<title>Главная</title>
<meta http-equiv="Content-Language" content="ru">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<meta name="author" content="storozhukua@gmail.com">
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="">
<link rel="shortcut icon" type="image/x-icon" href="">
<link rel="stylesheet" type="text/css" href="css/1.css">
<!-- GAL-->
<link rel="stylesheet" type="text/css" href="include/gal/lightbox/css/jquery.lightbox-0.5.css" />
<link rel="stylesheet" type="text/css" href="include/gal/demo.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="include/gal/lightbox/js/jquery.lightbox-0.5.pack.js"></script>
<script type="text/javascript" src="include/gal/script.js"></script>
<!-- GAL-->
<?php include('include/db.php'); //соединяемся с базой данных
function selekt(&$result,&$myrow)//создаем функцию для выборки из базы
{
global $db, $b;
$result = mysql_query("SELECT * FROM novosti ORDER BY id DESC ",$db);
$myrow = mysql_fetch_array($result);
}
function selekt_status(&$result,&$myrow,$t)//nicaaai ooieoe? aey auai?ee ec aacu(aee/auee aeieia)
{
global $db, $b;
$result = mysql_query("SELECT block_st FROM block_status WHERE title='$t' ORDER BY id DESC ",$db);
$myrow = mysql_fetch_array($result);
}
?>
</head>
<body>
<div class='telo_dog'>
<table id='table' border='0px' align='center' width='1000px'>
<tr>
<td class='v_menu' ><?php include('include/head.php'); // вытяжка шапки
?>
<?php include('include/v_spiski.php'); // вытяжка главного меню
?>
</td>
</tr>
<tr><!--text-->
<td ><div class='telo_dog'>
<?php include('include/count_str.php'); // вытяжка новостей + разбивка на страницы
?>
</div>
</td>
</tr>
<tr><!--podval-->
<td class='podval'>
<img src='images/v_menu/fbook.jpg'/ style='padding-top:0px; margin:0px'><img src='images/v_menu/yt.jpg'/ style='padding-top:0px; margin:0px'><img src='images/v_menu/mail.jpg'/ style='padding-top:0px; margin:0px'><img src='images/v_menu/podpiska.jpg'/ style='padding-top:0px; margin:0px'><img src='images/v_menu/copy.png'/ style='padding-top:0px; margin:0px'align='right'>
</td>
</tr>
</table>
</div>
</body>
</html>
Почесав затылок, юзер дописал через 1 минуту
PHP код:
html,body{height:100%; margin:0;padding:0}
body{
margin:0px; background-color:#c2c2c2;overflow-y: scroll;
}
table
{
border:0px solid black; border-spacing:0px 0px; border-spacing:inherit; border-collapse: collapse;overflow:hidden;
}
#table {
}
td{
border: 0px solid #000;
}
.t_d{
overflow:hidden; display:block ;
}
.v_menu{
margin-top:0px; background-image:url(../images/v_menu/bg_body.jpg); background-repeat: repeat-x ; width:1000px; vertical-align:top; background-color:#c2c2c2; background-origin:padding-box;
}
.v_spiski{
color:#e9e0d7; font-family:'Lucida Sans Unicode', 'Lucida Grande', sans-serif, Georgia, serif, Trebuchet MS, Verdana, Trebuchet MS,Arial; text-align:center; text-decoration: none;
}
ul.v_spiski li a:hover{
color:#7bf3f7; text-decoration: none;
}
ul.v_spiski li a{
color:#e9e0d7; text-decoration: none;font-family:'Lucida Sans Unicode', 'Lucida Grande', sans-serif, Georgia, serif, Trebuchet MS, Verdana, Trebuchet MS,Arial; text-align:center; font-size: 15px; font-weight: 200;text-decoration: none;
}
ul.v_spiski {
padding: 6px;
margin-bottom:0px;
}
ul.v_spiski li {
display: inline; /* Отображать как встроенный элемент */
margin-right: 8px; /* Отступ справа */
margin-left: 8px;
margin-bottom:0px;
border: 0px solid #000; /* Рамка вокруг текста */
padding-bottom: 1px; /* Поля вокруг текста */
}
.telo_dog td{
background-color:#e9e0d7;table-layout: fixed; }
.telo_dog{margin-left:100px; padding-right:100px;
}
.podval{
margin-top:0px; background-image:url(../images/v_menu/bg_niz.jpg); background-repeat: repeat-x ; width:1000px; padding-left:100px; padding-right:100px;vertical-align:top; background-color:#c2c2c2; background-origin:padding-box;height:76px;
}
h1{
font-family:Trebuchet MS, Arial; color:#333333; font-size:20px; margin-top: 0.5em;
margin-bottom: 1em; margin-bottom: 5px;
}
h1.td_text{
line-height: 1px;
}
.yt{
border: 1px solid #000;
padding: 2px;
margin: 10px 5px 10px 0;
}
.interval a{
font-family:Trebuchet MS; color:#000000; font-size:18px; font-weight:500;
}
.interval a:hover{
font-family:Trebuchet MS; color:#000000; font-size:18px; font-weight:500;color:#61bbb2;
}
.interval a{
line-height: 40%;
}
.interval div{
min-height: 500px;
}
a{
font-family:Trebuchet MS; color:#434141; font-size:14px; font-weight:500;
}
a:hover{
font-family:Trebuchet MS; font-size:14px; font-weight:500;color:#61bbb2;
}
.news_data{
color:#434141;font-family: Trebuchet MS ; font-size:14px;
}
p{
font-family:Trebuchet MS ;line-height: 97%;
}
hr{
color:#f4f1ed;
}
Почесав затылок, юзер дописал через 1 минуту
Использовал растяжку таблицы и тд на 100%
http://tarasio.ru/content/view/16/41/
но в ИЕ отображается не правильно