Website Development Prices

Pretrazite Blog // Search This Blog

Wednesday, March 9, 2016

Kako da dobijete sva velika ili sva mala slova u tekstu (How to get all the capital or lowercase letters in the text)

Pitanje: kako da dobijete sva velika ili sva mala slova u tekstu?

Resenje: svojstvo text-transform.

Primer:

HTML kod

<!DOCTYPE html>
<html>
<head>
<title>Kako da dobijete sva velika slova u tekstu</title>

<meta charset="UTF-8"/>
<meta name="description" content="Description that search reads" />
<meta name="keywords" content="page keywords, keywords" />
<meta name="author" content="Marija Rikic">
<link rel="icon" type="image/png" href="images/favicon.jpg">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>

Kako da promenite visinu teksta izmedju redova (How to change the height of the text between the lines)

Pitanje: kako da promenite visinu teksta izmedju redova?

Resenje: svojstvo line-height.

Primer:

HTML kod

<!DOCTYPE html>
<html>
<head>
<title>Kako da promenite visinu teksta izmedju redova</title>

<meta charset="UTF-8"/>
<meta name="description" content="Description that search reads" />
<meta name="keywords" content="page keywords, keywords" />
<meta name="author" content="Marija Rikic">
<link rel="icon" type="image/png" href="images/favicon.jpg">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>

Sunday, March 6, 2016

Grouping elements

HTML has special elements that serve to group other elements. Thus it is made possible to group logically related elements, which will be located in the same part of the page, to be positioned along and the like. There are tags that serve to surround and other types of elements such as:

  • <div> - element which divides ie. grouping other HTML elements. The most commonly is used to define the layout of elements on the page - layout.
  • <span> - an element which by default does not affect the position of the elements that surround. It is mainly used so that elements that are contained in it, assigns some look.

The difference between <div> and <span> tags is that a div (division) element is block line (which is basically equivalent to having a line break before and after it) and is used to group larger pieces of code  and a span element is inline and usually used for a small piece of HTML inside a line (for example, inside a paragraph).

Prolaz kroz visedimenzionalni niz (Looping through a multidimensional array)

Ako imate niz sa dve dimenzije, prvo promenite prvi indeks, a onda drugi u unutrasnjoj petlji. Ovo mozete uraditi pomocu ugnjezdenih petlji.

Primer:

<?php

$cene_motora[0] [] = 2500;
$cene_motora[0] [] = 2350;
$cene_motora[1] [] = 3700;
$cene_motora[1] [] = 3550;

for ($spoljni_indeks = 0; 
$spoljni_indeks < count($cene_motora);
$spoljni_indeks++) {
for ($unutrasnji_indeks = 0; 
$unutrasnji_indeks < count($cene_motora[$spoljni_indeks]);
$unutrasnji_indeks++) {
echo "\$cene_motora[$spoljni_indeks][$unutrasnji_indeks] = ", 
$cene_motora[$spoljni_indeks][$unutrasnji_indeks], "<br />";
}

}

?>

Friday, March 4, 2016

CSS: Fade in neon glow tekst efekat (Fade in neon glow text effect)


HTML kod

<!DOCTYPE html>
<html>
<head>
<title>CSS: Fade in neon glow tekst efekat</title>
<meta charset="UTF-8"/>
<meta name="description" content="Description that search reads" />
<meta name="keywords" content="page keywords, keywords" />
<meta name="author" content="Marija Rikic">
<link rel="icon" type="image/png" href="images/favicon.jpg">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.11.3.js"></script>
<script>
$(document).ready(function() {
$('body').hide().fadeIn(5000);
});
</script>
</head>

Kreiranje visedimenzionalnih nizova (Creating multidimensional arrays)

Do sada smo radili sa jednodimenzionalnim nizovima. Moguce je napraviti i nizove sa vise skupova kljuceva. 

Primer: mozete da skupove cena motora za razlicite motore sacuvate na sledeci nacin.

<?php

$cene_motora["suzuki"] = 2500; 

$cene_motora["lifan"] = 3700;

?>

Ako imate jos jednu cenu motora, mozete da dodate drugi indeks koji oznacava broj motora.

Nastavak primera:

<?php

$cene_motora["suzuki"] [1] = 2500;
$cene_motora["suzuki"] [2] = 1900;
$cene_motora["honda"] [1] = 3700;
$cene_motora["honda"] [2] = 2550;


print_r($cene_motora)

?>

Wednesday, March 2, 2016

Kako da podvucete naslove (How to create underline for headings)

Pitanje: kako da podvucete naslove?

Resenje 1: svojstvo text-decoration.
Resenje 2: svojstvo border-bottom.

Primer 1: ako koristite svojstvo text-decoration, boja podvucenog naslova bice ista kao i boja fonta.

HTML kod

<!DOCTYPE html>
<html>
<head>
<title>CSS - Kako da podvucete naslove</title>

<meta charset="UTF-8"/>
<meta name="description" content="Description that search reads" />
<meta name="keywords" content="page keywords, keywords" />
<meta name="author" content="Marija Rikic">
<link rel="icon" type="image/png" href="images/favicon.jpg">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>

Search Blog

Price za decu