Форум программистов, компьютерный форум, киберфорум
HTML, CSS
Войти
Регистрация
Восстановить пароль
Карта форума Темы раздела Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 5.00/4: Рейтинг темы: голосов - 4, средняя оценка - 5.00
0 / 0 / 0
Регистрация: 17.01.2013
Сообщений: 9
1

html страничку в css

01.12.2013, 21:12. Показов 635. Ответов 2
Метки нет (Все метки)

Author24 — интернет-сервис помощи студентам
Добрый день! Я сейчас только учусь css и не могу вникнуть в парочку моментов. Подскажите пожалуйста.

Если код html

HTML5
1
2
3
4
5
6
7
<div align="left">
 <p align="justify"> <font face="Georgia, Times New Roman, Times, serif" color="#00FF00"><strong><img src="Grizzly_D.jpg" alt="1" width="200" height="138" align="left" border="2">Description </strong></font>- Grizzly Bears reach weights of 300-1500 pounds. The coat <i><b><u>color</u></b></i> ranges from shades of blond, brown, black or a combination of these; the long outer guard hairs <i><b><u>are</u></b></i> often tipped with white or silver giving it a grizzled appearance hence the name. The grizzly has a large humpover the shoulders <i><b><u>which is</u></b></i> a muscle mass used to power the forelimbs in digging. The head is large and roundwith a concave facial profile. They sleep in nests they make in trees or on the ground. They        live alone most of the time. Females have 1,        2 or 3 cubs at a time. Tiny cubs sometimes ride on their mother's        back.</p>
  
 
 
 <p align="justify"><font face="Georgia, Times New Roman, Times, serif" color="#00FF00"><strong><img src="grizzlybear2sm.jpg" alt="2" width="200" height="138" align="left" border="2">Distribution</strong></font> - In BC Grizzly Bears inhabit most of the province  except Vancouver Island, the <font color="#0000CC" size="+1">Queen Charlotte Islands</font> and the lower mainland. They climb trees        very well. They are awake at night and sleep in the daytime.        They sleep in nests they make in trees or on the ground. They        live alone most of the time. <font color="#0000CC" size="+1">Females have 1,        2 or 3 cubs at a time.</font> Tiny cubs sometimes ride on their mother's        back. Asiatic black bears        live in forests high up on mountains in many parts of Asia, such </p>
</div>

тогда css писаться будет следующим образом

CSS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
div {
text-align: left;
}
 
 
p {
text-align: justify;
font-style: italic;
font-weight: bold;
text-decoration: underline;
 
}
 
font, strong {
font-family: Georgia, 'Times New Roman', Times, serif;
color: 00FF00;
}
 
img {
width: 200px;
height: 138px;
float: left;
vertical-align: top;
border-top-width: 2px;
border-right-width: 2px;
border-bottom-width: 2px;
border-left-width: 2px;
}

и вот как правильно написать если таблица


HTML5
1
2
3
4
5
6
7
8
9
10
11
12
13
<table cellspacing="5" cellpadding="5" bgcolor="#CCFF66" >
  <tr>
    <td bgcolor="#006600" width="50%"><font face="Verdana, Arial, Helvetica, sans-serif" size="-1" color="#999999"><strong>Grizzly Bear Ecology</strong></font></td><td>&nbsp;</td>
  </tr>
  <tr>
    <td width="50%"><font face="Verdana, Arial, Helvetica, sans-serif" size="-1" color="#999999">Bears  are the largest land based carnivores on the planet. However, due to  their varied diet they are better characterized as omnivores.  The remainder is roots, herbs, berries, and insects.
      <p align="justify">Locally,  grizzlies make extensive use of avalanche chutes in search of foods  such as sedges, grasses, cow parsnip and various bulb producing  flowers. <font color="#FF0066"><strike>Aided by their</strike></font> long front claws and massive shoulder muscles,  <font color="#FF0066"><strike>they rototill beds</strike></font> of glacier lilies and spring beauty to harvest  nutritious bulbs and they excavate fat and protein rich Columbian  ground squirrels from their burrows. In mid-summer, grizzlies often  move to huckleberry patches in burned over forests to fatten on a diet  rich in carbohydrates to prepare for winter.</p>
       
    </font></td><td><font face="Verdana, Arial, Helvetica, sans-serif" size="-1" color="#999999">  <p align="justify">Bears  are opportunists, always looking for something to eat. They protect  prime sources of food and can be aggressive towards perceived  competitors. <font color="#FF0066"><strike>Because they</strike></font> hibernate for half the year, bears have to  eat enough in six months to last the whole year. Stores of body fat are  especially crucial for nursing grizzlies. Females give birth to one to  three cubs in early February while still in their winter dens and must  wait <font color="#FF0066"><strike>three more months</strike></font> before they can emerge and eat again. Males are  usually intolerant of other bears except at mating time.</p>
      <p align="justify">Protein  rich foods are not abundant in the Columbia Mountains. Deep snow limits  ungulate numbers and available carcasses. Dams built on the Columbia  River in the 1930's eliminated autumn salmon runs. Berry plants are  most productive in old burned areas but the control of forest fires has  reduced the extent of these patches.
        &nbsp;</p></font></td>
  </tr>
</table>

Подскажите пожалуйста . Заранее спасибо
0
Programming
Эксперт
94731 / 64177 / 26122
Регистрация: 12.04.2006
Сообщений: 116,782
01.12.2013, 21:12
Ответы с готовыми решениями:

просьба оценить страничку с использование HTML and CSS. Есть проблемы.
Итак, собирал страничку в гугле хроме. Отображается все отлично. В мозилле и ослике - косит...

Старые добрые HTML и CSS или новые HTML 5 и CSS 3?
Здравствуйте ) Дело собственно вот в чем. Я хочу на лето заняться изучением создания сайтов. ...

Открыть страничку в блоке div(css)
Добрый день! Не знаю в эту ли тему пишу! Имеется html css страничка и нужно другую страничку...

Создайте мне страничку на HTML
Мне так в лом разбираться в этих кодах=)) Совершенно не важно какой будет сайт и с чем, главное,...

2
0 / 0 / 0
Регистрация: 08.01.2013
Сообщений: 35
01.12.2013, 21:20 2
Можно и так, но лучше стили прописывать в css файлах. Как вариант, прописать тегам id либо class и потом их реализовать.
0
104 / 88 / 21
Регистрация: 19.05.2012
Сообщений: 458
01.12.2013, 21:51 3
Цитата Сообщение от Otr0k Посмотреть сообщение
Можно и так, но лучше стили прописывать в css файлах. Как вариант, прописать тегам id либо class и потом их реализовать.
Только лучше не как вариант, а обязательно, если это будет использоваться хоть сколько то часто.
Ибо вы просто замучаетесь.
Начинайте сразу.

Прописывать стили у каждого отдельного тега можно только если это используется единожды.
ну конечно решать вам.
0
01.12.2013, 21:51
IT_Exp
Эксперт
87844 / 49110 / 22898
Регистрация: 17.06.2006
Сообщений: 92,604
01.12.2013, 21:51
Помогаю со студенческими работами здесь

Как сделать вот такой макет через html и css (div и css)
Доброго времени суток.Подскажите как сделать по скрину ?* что бы было Лого на весь экран вот тот...

Есть 2 файла html и css как мне сделать чтоб файл css распространялся на одну ячейку а не на все
&lt;table class=&quot;s&quot;&gt; &lt;tr&gt; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot;...

Задание в HTML, CSS и сайт CSS.
Нет возможности скачать учебник по HTML, CSS помогите с заданием! В HTML как сделать вложенные...

Управление CSS анимацией HTML+CSS+JS
Суть вопроса: в HTML страничке реализована анимация средствами CSS: // CSS .fon_animate{ ...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
3
Ответ Создать тему
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2024, CyberForum.ru