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

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

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

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

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

Ответ
 
Опции темы Поиск в этой теме
Старый 10.06.2011, 13:32   #1
CoderGirl
Новичок
Джуниор
 
Регистрация: 21.06.2010
Сообщений: 1
Печаль Не работает CSS

адрес файла html L:\CSS\Index.htm
файл css L:\CSS\style.css

содержимое файла html

Код HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META NAME="ROBOTS" CONTENT="NOINDEX">
<title>Пример12: Учебник CSS | Работа с цветом и фоном | Сайт Zvirec.com - учебник создания сайтов</title>
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1 align="center"> 75% от ширины экрана по горизонтали, и 25%- по вертикали</h1>
<p>Blogs (short for web logs) are free and pretty easy to setup. In fact, most people will agree they are easier to setup than websites.</p>
<p>But don't be fooled.</p>
<p>That doesn't mean they are easier to promote, build traffic and turn a profit.</p>

<p>Both websites and blogs require work, patience, an understanding of Internet marketing and search engine optimization (the process of getting ranked high in Google, Yahoo, etc.) </p>
<p>So please don't go into this thinking that creating a blog is an easier way to make money online. Even bloggers making a lot of money have put in their share of time and effort.So please don't go into this thinking that creating a blog is an easier way to make money online. Even bloggers making a lot of money have put in their share of time and effort.<br>
</p>
<h1></h1>
<p>So please don't go into this thinking that creating a blog is an easier way to make money online. Even bloggers making a lot of money have put in their share of time and effort.<br>
</p>
<h1></h1>
<p>So please don't go into this thinking that creating a blog is an easier way to make money online. Even bloggers making a lot of money have put in their share of time and effort.<br>
</p>
<h1></h1>
<p>So please don't go into this thinking that creating a blog is an easier way to make money online. Even bloggers making a lot of money have put in their share of time and effort.<br>
</p>

<h1></h1>
<p>So please don't go into this thinking that creating a blog is an easier way to make money online. Even bloggers making a lot of money have put in their share of time and effort.<br>
</p>
<h1></h1>
<p>So please don't go into this thinking that creating a blog is an easier way to make money online. Even bloggers making a lot of money have put in their share of time and effort.<br>
</p>
<h1></h1>
<p><br>
</p>
<p>Another thing you should know is that blogs can be somewhat limiting compared to a website (in terms of design and data manipulation) until you learn more about how blogs are coded.</p>
<p>However, if you use WordPress, you'll have the flexibility to do so much with your blog's content and layout. <br>
  Blog or Website? Can't Decide?</p>

<p>A lot of people get confused and wonder if they should create a blog, website or both? </p>
<p>Watch the video below to get my take on the subject.</p>
<p>So please don't go into this thinking that creating a blog is an easier way to make money online. Even bloggers making a lot of money have put in their share of time and effort.<br>
</p>
<h1></h1>
<p>So please don't go into this thinking that creating a blog is an easier way to make money online. Even bloggers making a lot of money have put in their share of time and effort.<br>
</p>
<h1></h1>
<p>So please don't go into this thinking that creating a blog is an easier way to make money online. Even bloggers making a lot of money have put in their share of time and effort.<br>
</p>
<h1></h1>
<p>So please don't go into this thinking that creating a blog is an easier way to make money online. Even bloggers making a lot of money have put in their share of time and effort.<br>

</p>
<h1></h1>
<p><br>
</p>
<p>Another thing you should know is that blogs can be somewhat limiting compared to a website (in terms of design and data manipulation) until you learn more about how blogs are coded.</p>
<p>&nbsp;</p>
</body>
</html>
содержимое файла CSS

Код:
body {
background: #ffee8c upl(img/smile.png) no-repeat fixed top right;
}
<--!h1{
color:red;
background-color:blue;
background-image:url(img/litle_smile.png); 
}-->
p{
color:green;
}
Стиль вообще не применяется работает только то что в аштмл

Подскажите пожалуйста в чем ошибка.
Skype valcat1994
ICQ 647819422
valeri.marquise.des.anges@gmail.com
CoderGirl вне форума Ответить с цитированием
Старый 10.06.2011, 14:00   #2
ZvEr_HaCkEr
VisualC++/DirectX
Форумчанин
 
Аватар для ZvEr_HaCkEr
 
Регистрация: 16.07.2010
Сообщений: 831
По умолчанию

Код:
body {
background: url(img/smile.png) no-repeat fixed top right;
}
h1{
color:red;
background-color:blue;
background-image:url(img/litle_smile.png); 
}
p{
color:green;
}
А прежде чем задавать такие глупые вопросы, почитайте это.

Последний раз редактировалось ZvEr_HaCkEr; 10.06.2011 в 14:04.
ZvEr_HaCkEr вне форума Ответить с цитированием
Старый 10.06.2011, 14:09   #3
Wicort
Форумчанин
 
Аватар для Wicort
 
Регистрация: 04.08.2009
Сообщений: 684
По умолчанию

Написано с ошибкой, потому и не применяется
исправьте upl на url для тега body
Еслия Вам помог, не поленитесь нажать на весы и оставить отзыв. Это не займет много времени, но даст понять, что я старался не зря =)
Мой ник зарегистрирован, а твой?
Wicort вне форума Ответить с цитированием
Ответ


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

Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск


Похожие темы
Тема Автор Раздел Ответов Последнее сообщение
проблемы с css? не работает меню в опере jikonast HTML и CSS 1 16.10.2010 16:26
Почему здесь css не работает? Иришка753 Помощь студентам 1 03.04.2010 02:54
CSS - неправильно работает в IE и Mozilla AlexKrause HTML и CSS 2 15.02.2010 10:48
Css меню не работает в Internet Explorer CoDaJJe HTML и CSS 0 27.08.2009 21:16