Форум программистов
 

Восстановите пароль или Зарегистрируйтесь на форуме, о проблемах и с заказом рекламы пишите сюда - alarforum@yandex.ru, проверяйте папку спам!

Вернуться   Форум программистов > Web программирование > HTML и CSS
Регистрация

Восстановить пароль
Повторная активизация e-mail

Купить рекламу на форуме - 42 тыс руб за месяц

Ответ
 
Опции темы Поиск в этой теме
Старый 22.01.2010, 19:02   #1
bondik
Форумчанин
 
Регистрация: 24.04.2008
Сообщений: 300
По умолчанию CSS ,высота контента

Помогите пожалуйста,как нужно исправить CSS чтобы высота страницы изменялась при увеличении контента:

CSS
Код:
body {
	text-align:center;
}
a {
	text-decoration:none;
}
a:hover {
	text-decoration: underline;
}
#wrap {
	width:800px;
	text-align:left;
	margin:0 auto;
}
.float-l {
	float:left
}
.folat-r {
	float:right
}
.clearfix {
	clear:both
}
/* header */
#header {
	background:url(images/header.gif) no-repeat;
	height:229px
}
#header h1 {
	font-size:38px;
	padding-top: 50px;
	padding-left: 130px;
	color:#9cdbfb
}
#header div {
	font-size:14px;
	padding-left: 140px;
	color:#9cdbfb
}
ul#meun li a {
	padding-left:5px
}
/* content */
#content {
	background:url(images/content.gif) no-repeat;
	height:430px
}
#content {
	padding:0px 55px 0 55px;
}
#content .left {
	width:400px
}
#content h2 {
	font-size:30px
}
#content p {
	padding:10px 0px;
}
#content .right {
	width: 243px;
}
#top {
	width: 200px;
	padding-left: 50px;
	padding-top: 50px;
}
#top li {
	list-style:url(images/arrow.gif) inside
}
#top a {
	color:#99cc66;
	line-height:20px
}
#inner {
	padding-top: 100px;
}
#img {
	background:url(images/imgbg.gif);
	height:83px
}
#img img {
	padding:8px
}
/* footer */
#footer {
	background:url(images/footer.gif) no-repeat;
	height:141px;
	text-align:center
}
#ftlink {
	padding-top: 40px;
}
#ftlink, #copyright {
	padding-bottom:8px;
}
Index.html
Код:
<!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</title>
<link rel="stylesheet" type="text/css" href="/assets/templates/Butterfly/reset.css" />
<link rel="stylesheet" type="text/css" href="/assets/templates/Butterfly/style.css" />
</head>
<body>
<div id="wrap">
  <div id="header">
    <h1>Кафедра БИАС </h1>
    <div>То что для вас волшебство,для нас типичные будни</div>
  </div>
  <!-- /header -->
  <div id="content">
    <div id="inner">
      <div class="left float-l">
        <div id="blog">
          <h2>Free CSS Templates</h2>
          <p>This is Butterfly, a free, fully standards-compliant CSS template designed by <a href="http://www.free-css-templates.com/">Free CSS Templates</a>.
            
            This free template is released under a Creative Commons Attributions 2.5 license, so you’re pretty much free to do whatever you want with it (even use it commercially) provided you keep the links in the footer intact. Aside from that, have fun with it :) </p>
        </div>
        <div id="img"> <img src="/assets/templates/Butterfly/images/img.gif" alt="" /> <img src="/assets/templates/Butterfly/images/img.gif" alt="" /> <img src="/assets/templates/Butterfly/images/img.gif" alt="" /> <img src="/assets/templates/Butterfly/images/img.gif" alt="" /> </div>
      </div>
      <div class="right folat-r">
        <div id="top">
          <h2>Sections</h2>
          <ul id="meun">
            <li><a href="#">Home</a></li>
            <li><a href="#">About us</a></li>
            <li><a href="#">Production</a></li>
            <li><a href="#">Submission</a></li>
            <li><a href="#">Contact</a></li>
          </ul>
        </div>
      </div>
    </div>
  </div>
  <!-- /content -->
  <div id="footer">
    <div id="ftlink"> <a href="#">Home</a> | <a href="#">About Us</a> | <a href="#">Production</a> | <a href="#">Submission</a> | <a href="#">Contact</a> </div>
    <p id="copyright">В© 2008. All Rights Reserved. <br/>
      Designed by <a href="http://www.free-css-templates.com/">Free CSS Templates</a>, Thanks to <a href="http://www.dubaiapartments.biz/">Dubai Villas</a></p>
    <div id="xhtml"><img src="images/xhtml.gif" alt=" xhtml vaild" /> <img src="images/css.gif" alt="css vaild" /></div>
  </div>
  <!-- /footer -->
</div>
</body>
</html>
bondik вне форума Ответить с цитированием
Старый 25.01.2010, 19:35   #2
eyo
Помощник
Пользователь
 
Регистрация: 24.12.2008
Сообщений: 55
По умолчанию

Убрать свойство height у элемента content.
Продал кроссовки Fila, купил текилу.
eyo вне форума Ответить с цитированием
Ответ


Купить рекламу на форуме - 42 тыс руб за месяц



Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
Настройка web сервера на отдачу контента Mixasik PHP 6 18.12.2009 22:51
Изменение высоты фрецма от контента cwit JavaScript, Ajax 6 19.11.2008 07:25
Менеджер контента Insainer HTML и CSS 1 27.04.2008 11:06