<div class="content">
<div class ="imgs">
<a href="#"><img src="images" alt="some_text" width="250" height="210"></a>
</div>
<div class = "compu">
<div id="titulo">text</br></div>
<div id="subtitle">text </div>
</div>
</div>
Как форматировать текст в титуле и подзаголовках?
Css, который у меня есть для compu:
.compu
{
position: relative;
width: 250px;
font-family: Helvetica, sans-serif;
color: #1B57A0;
letter-spacing:2px;
line-height:120%;
font-size: 12px;
font-weight: normal;
text-align: justify;
}
Я мало знаю о html и css, и это мой первый проект, спасибо
Вы можете дать css для стиля titulo и субтитров, как показано ниже.
.compu #titulo
{
/*write your style code here*/
}
.compu #subtitle
{
/*write your style code here*/
}
Просто выберите div с классом compu
и чем нижние div с id
. Как это
Css:
.compu #titulo { /* Style of the titulo div */ }
.compu #subtitle { /* Style of the subtitle div */ }
Здесь вы можете стилизовать оба div.
Вот работая DEMO
Css, используемый в демо:
.compu #titulo { color:red; font-size:20px;}
.compu #subtitle { color:green; font-size:14px;}
.compu #titulo
{
}
.compu #subtitle
{
}
#
#
отсутствует ....
format the text
?