Jump to content

SUBIECTE NOI
« 1 / 5 »
RSS
Adaptor usb3.1gigabit vs Adaptor ...

La multi ani @Atreides!

La multi ani @KENSINGTON!

La multi ani @burebista!
 La multi ani de Florii!

Stihl fs 70 c-e

Challengers (2024)

Care mai sunt mediile de admitere...
 Laptop cu HDD atasare memorie MMC...

Hartile google nu mai au chenarul...

Tomate in ghiveci la curte?

Idei cale de actiune recuperare g...
 Intoleranța lactoza- vegan v...

Tobe acustice insonorizare in blo...

Cine canta? Fragment din melodie...

Tablou sigurante Dacia Sandero 2012
 

CSS

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

#1
CristiCronik

CristiCronik

    Junior Member

  • Grup: Members
  • Posts: 238
  • Î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

Second Opinion Second Opinion

Folosind serviciul second opinion ne puteți trimite RMN-uri, CT -uri, angiografii, fișiere .pdf, documente medicale.

Astfel vă vom putea da o opinie neurochirurgicală, fără ca aceasta să poată înlocui un consult de specialitate. Răspunsurile vor fi date prin e-mail în cel mai scurt timp posibil (de obicei în mai putin de 24 de ore, dar nu mai mult de 48 de ore). Second opinion – Neurohope este un serviciu gratuit.

www.neurohope.ro

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