Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Cutie de viteze manuala schimbata

Sofer pe ambulanta

Cum lipesc o lustra pe beton? Cum...

Achiziție boxa portabila sau...
 Pareri despre DS 923+? Procesor R...

Samsung Galaxy S10 probleme DNS

Extravalerianic și tiroidita...

Trigliceride ușor scazute - ...
 Problema internet DIGI - zte zxhn...

Suport umbrele 80 - 100 cm

Eroare calculator - Releu bujii O...

Plane (2023)
 Nesimtire si/sau incompetenta?

Physical: 100 (2023)

Este Kaufland și Carefour in...

The Three-Body Problem
 

CSS

- - - - -
  • Please log in to reply
1 reply to this topic

#1
CristiCronik

CristiCronik

    Junior Member

  • Grup: Members
  • Posts: 230
  • Înscris: 08.11.2008
salut,fac niste exercitii care contin html si css si m-am blocat putin
am asa:
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<title>Ultimate Text Challenge</title>
</head>
<body>
<p>Introduction: Cascading with CSS</p>
<div>
<p>Synopsis: When you set a property of a selector like 'p' to a certain value, that value applies to <em>all</em> p tags.
If, however, you change that same property to a different value for a more specific instance of p,
that change will <em>override</em> the 'general rule'.
</p>
<ul>
<li><p>If you say p { font-family: Garamond}, all 'p's will have the font Garamond.</p></li>
<li><p>BUT if you say li p {font-family: Verdana}, 'p's outside of 'li's will be
	 in Garamond, and 'p's INSIDE 'li's will be in Verdana.
</p></li>
<li><p>The more specific your selectors are, the higher importance CSS gives to the styling you apply!</p></li>
</ul>
</div>
<p>Summary: Greater specificity makes CSS prioritize that particular styling.</p>
</body>
</html>


va rog sa-mi subliniati greselile
in css vreau:
toate parafragurile font garamond
 p { 
font-family:Garamond }


paragraful synopsis o culoare :

div p { 
color: #7ac5cd 
}


paragrafurile din lista neordonata , o culoare si underlined

ul p {
color:#000000;
text-decoration:underline;


vreau sa fac paragrafurile Introduction si Summary  font-weight bold si nu reusesc ... initial am vrut
body p {
font-weight:bold
}

   pentru ca body e parintele acestor 2 paragrafuri din moment ce ele nu se afla in div
Stima mersi

Edited by CristiCronik, 08 April 2013 - 19:05.


#2
poadol

poadol

    Guru Member

  • Grup: Senior Members
  • Posts: 14,104
  • Înscris: 13.12.2010
In HTML:
<!DOCTYPE html>
<html>
<head>
<link type="text/css" rel="stylesheet" href="stylesheet.css"/>
<title>Ultimate Text Challenge</title>
</head>
<body>
<p><strong>Introduction: Cascading with CSS</strong></p>
<div>
<p >Synopsis: When you set a property of a selector like 'p' to a certain value, that value applies to <em>all</em> p tags.
If, however, you change that same property to a different value for a more specific instance of p,
that change will <em>override</em> the 'general rule'.
</p>
<ul>
<li><p ><u>If you say p { font-family: Garamond}, all 'p's will have the font Garamond.</u></p></li>
<li><p ><u>BUT if you say li p {font-family: Verdana}, 'p's outside of 'li's will be
in Garamond, and 'p's INSIDE 'li's will be in Verdana.</u></p></li>
<li><p ><u>The more specific your selectors are, the higher importance CSS gives to the styling you apply!</u></p></li>
</ul>
</div>
<p><strong>Summary: Greater specificity makes CSS prioritize that particular styling.</strong></p>
</body>
</html>
In CSS (stylesheet.css):
p { 
font-family: Garamond ;
}

.synopsys { 
color: #7ac5cd; 
}

.sra {
color: #000000;
font-family: Verdana ;
}

Te-ai blocat?
Mai ai de invatat. Spor la invatat.

Imi pare rau dar a luat gresit codul lipsesc class="sra" la paragrafele din lista neordonata si class="synopsys" la paragraful Synopsis. Posted Image

Underline si bold este facut direct in HTML.

Anunturi

Bun venit pe Forumul Softpedia!

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Forumul Softpedia foloseste "cookies" pentru a imbunatati experienta utilizatorilor Accept
Pentru detalii si optiuni legate de cookies si datele personale, consultati Politica de utilizare cookies si Politica de confidentialitate