https://www.w3.org/Style/CSS/Overview.en.htmlhttps://www.w3schools.com/css/HTML
<title>Document</title>
<!-- interni style -->
<!-- <style>
@import url(style.css);
a {
font-size: 20px;
color: green;
}
</style> -->
<!-- externi style -->
<!-- <link rel="stylesheet" type="text/css" href="style.css" /> -->
<link rel="stylesheet" href="style.css" />
<!-- apsolutna putanja -->
<!-- <link rel="stylesheet" href="/CSS/style.css"> -->
</head>
<body>
<header>
<!-- inline style -->
<!-- <h1 style="color: blue; font-size: 40px">Dobrodosli na moju stranicu</h1> -->
<h1>Dobrodosli na moju stranicu</h1>
<h1>Marija</h1>
</header>
<nav>
<a class="first ancor" href="#about">About</a>
<a class="second ancor" href="#photo">Photo</a>
<a class="third ancor" href="#contact">Contact</a>
</nav>
<main>
<section class="sec sectionAbout">
<!-- <h2 id="about" style="color: red">About</h2> -->
<h2 id="about">About</h2>
<p>Ja sam Marija, predavac na kursu Java Script development</p>
<p>
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Non iste ea
dolor unde reiciendis soluta harum eos facere excepturi laborum
tenetur officia aliquam placeat, nihil molestias perspiciatis,
praesentium cum sequi.
</p>
<p>
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Assumenda
culpa cupiditate accusantium labore maxime distinctio eveniet
consectetur! Ab possimus, odio fugit voluptatem rem voluptate voluptas
reprehenderit quos eaque, esse explicabo?
</p>
</section>
<section class="sec sectionPhoto">
<h2 id="photo">My photo</h2>
<img
src="https://fotostudio-beograd.rs/wp-content/uploads/2024/12/Fotografisanje-za-CV-2.jpg"
alt="my photo"
/>
<p class="opisSlike">
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Ut eaque
officia dolor, rem voluptate sequi ad repellendus magni consequuntur
inventore animi iure nostrum tempora recusandae aliquam placeat
laborum, sapiente accusamus.
</p>
</section>
<section class="sec sectionContact">
<h2 id="contact">Contact</h2>
<p>Adresa: Vojvodjanska bb</p>
<p>Telefon: +38164-5555-555</p>
<h6>Vasa email adresa:</h6>
<input type="email" name="email" />
<h6>Posaljite poruku</h6>
<textarea name="message"></textarea>
</section>
</main>
<footer class="footer">
<p>Made by me ❤ © All rights reserved!</p>
</footer>
</body>
CSS
/* id atribut MORA BITI JEDINSTVEN */
/* * univerzalni selektor koji se retko koristi
svi elementi koji nisu dobili boju dobice tu boju*/
* {
/* background-color:rgb(190, 222, 250) ; */
/* font-family: cursive; */
/* border: 2px solid rgb(2, 194, 194); */
}
body {
/* background-color: rgb(250, 185, 75); */
margin: 0;
font-family: "Courier New", Courier, monospace;
font-size: 20px;
color: chocolate;
}
header {
/* height: 40px; */
background-color: aqua;
padding: 25px 0;
text-align: center;
margin-bottom: 20px;
/* height jedna vrednost se odnosi na levo desno, druga gore dole, ili obrnuto */
}
/* {}-blok deklaracija */
/* sve u {} je block deklaracija */
header h1 {
/* css deklaracija */
font-size: 30px;
margin: 0;
color: black;
}
/* h1 {
font-size: 30px;
margin: 0;
} */
nav {
text-align: center;
margin-bottom: 20px;
}
nav a {
/* css deklaracija koja ce se primeniti samo na a elemente u okviru nav elementa */
/* deklaracija se suzava samo na nav a elemente */
}
/* a{
color: rgb(254, 46, 240);
font-size: 20px;
margin-left: 20px;
text-decoration: none;
} */
.ancor {
color: rgb(254, 46, 240);
font-size: 20px;
margin-left: 20px;
text-decoration: none;
}
/* komentar */
/* tipski selektor: body, p, h1, span - to znaci da odnosi na sve delove koda u tom delu/
/* klasni selektori */
/* id selektori */
/* univerzalni selektori */
.sec {
/* background-color: rgb(226, 163, 163) !important; */
text-align: center;
margin-bottom: 20px;
/* border-width, border-style, border-color */
/* border ima 3 vrednosti prva je border-width druga border-stile treca border-color */
border: 4px solid rgb(109, 108, 108);
}
/* !important se koristi ako se napravi neka greska, ali se izbegava */
.sectionAbout {
background-color: rgb(40, 215, 215);
padding: 10px;
}
/* .sectionAbout p {
font-family: "Courier New", Courier, monospace;
font-weight: 800;
} */
/* selektujemo sve p elemente koji se nalaze nakoh h elementa, ali su u istom nivou */
.sectionAbout h2 ~ p {
font-family: "Courier New", Courier, monospace;
font-weight: 800;
}
/* selektujemo samo prvi p element koji se nalazi nakon h elementa , u istom nivou */
.sectionAbout h2 + p {
color: blue;
}
#about {
font-size: 25px;
}
.sectionPhoto {
background-color: rgb(6, 143, 143);
padding: 30px;
}
#photo {
color: white;
}
img {
width: 300px;
height: 400px;
}
.opisSlike {
font-size: 12px;
font-style: normal;
color: white;
text-align: start;
}
/* komentar */
/* tipski selektor: body, p, h1, span */
/* p {
font-size: 20px;
font-style: italic;
} */
.sectionContact {
background-color: rgb(31, 71, 71);
color: white;
}
.footer {
background-color: rgb(4, 52, 52);
color: white;
/* height: 50px; */
text-align: center;
padding: 25px;
}
footer p {
margin: 0;
font-size: 15px;
}
[name] {
width: 60%;
}
[name="message"] {
width: 90%;
}
/* ^='em'- vrednost type atributa pocinje sa em */
/* [type^="em"]{
background-color: chocolate;
} */
/* $= - vrednost atributa se zavrsava sa "il" */
/* [type$="il"] {
background-color: darkolivegreen;
} */
/* *= - vrednost atributa ima u sebi deo "ai" */
[type*="ai"] {
background-color: darkolivegreen;
}
/* id selektori se hvataju preko # tarabice, klasni preko tackice . */
VEZBANJE<title>vClassSel</title>
<link rel="stylesheet" href="vClassSel.css">
</head>
<body>
<header>
<h1 id="mainHeader">Telefon se iskljucio</h1>
</header>
<nav>
<a class="uno ancor" href="#neRadi">Ner</a>
<a class="due ancor" href="#broken">Section1</a>
<a class="tre ancor" href="#mainHeader">Glavni Naslov</a>
<a class="quatro ancor" href="#contact">Contact</a>
</nav>
<section>
<h2 id="neRadi"></h2>
</section>
<section>
<h2 id="broken">Pokvario se</h2>
</section>
<footer id="contact">Contact servis</footer>
</body>.ancor{
font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
#neradi{
color: aqua;
}
#broken{
color: blue;
font-style: italic;
}
#mainHeader{
color: orange;
font-size: 35px;
}
#contact{
color: blueviolet;
font-style: oblique;
}