Introducere in CSS

postat acum 6 ani de Stefanescu Mihai in categorie CSS

Ce trebuie sa stiu?

Inainte sa incepem sa discutam despre CSS trebuie sa stii ca ai nevoie de cunsotinte minime de HTML.

Ce este CSS?

Pai, pentru inceput CSS este prescurtarea de la Cascading Style Sheets. Aceste stiluri definite in CSS hotarasc modul de afisare al elementelor HTML.

CSS-ul poate fi de 3 feluri:

  • Extern
  • Intern
  • Inline

Iata un exemplu de cum poate arata un document fara CSS si un document ce foloseste CSS.

 Style-urile salveaza multe probleme

HTML nu a fost menit sa aiba tag-uri ce vor tine de formatarea unui document ci a fost menit sa contina tag-uri ce defineste continutul unui document, precum:

h1, p, etc.

Cand au inceput sa fie folosite tag-uri precum <font> si atribute de culoare (ce au fost adaugate in HTML 3.2), HTML a devenit un cosmar pentru programatori. Programarea site-urilor mari, care au multe pagini cu informatii, fonturi diferite, culori diferite, s.a.m.d…totul a devenit un proces lung si scump.

Pentru a rezolva aceasta problema a fost creeat CSS-ul. Incepand cu HTML 4.0 toate elementele de formatare pot fi scoase din HTML si folosite doar in fisierul CSS (tip de fisier suportat de toate browserele moderne).

CSS te scapa de multa munca

CSS defineste modul in care elementele HTML vor fi afisate, deci daca la unmoment dat va hotarati sa schimbati designul site-ului nu trebuie decat sa modificati fisierul CSS.

Sunt un tanar programator din Bucuresti ce lucreaza in PHP/Mysql (MySqli/PDO), Laravel, CodeIgniter, MySQL, PostgreSQL, Wordpress, HTML5/CSS3, Sass, Photoshop si multe altele.
Google+ Community Facebook Group
Acest articol a fost mutat de pe vechea platforma.
Pentru orice eroare aparuta la mutare va rog sa ma contactati!

Comentariu postate de mojang minecraft download la data de 15.05.2019
I'm amazed, I have to admit. Rarely do I come across a blog that's both equally educative and engaging, and without a doubt, you have hit the nail on the head. The issue is an issue that too few folks are speaking intelligently about. I am very happy I found this during my hunt for something concerning this.
Comentariu postate de minecraft download free la data de 16.05.2019
Good day! I know this is kinda off topic however , I'd figured I'd ask. Would you be interested in trading links or maybe guest authoring a blog post or vice-versa? My blog discusses a lot of the same subjects as yours and I think we could greatly benefit from each other. If you're interested feel free to shoot me an email. I look forward to hearing from you! Excellent blog by the way!
Comentariu postate de nike shox for men la data de 18.05.2019
I want to express some thanks to this writer just for bailing me out of this particular challenge. As a result of surfing around through the online world and coming across ideas which are not powerful, I thought my life was done. Living devoid of the solutions to the problems you've resolved by way of this website is a critical case, and the kind which could have in a wrong way affected my career if I hadn't encountered your web page. The natural talent and kindness in taking care of all the stuff was excellent. I don't know what I would have done if I had not come upon such a thing like this. It's possible to now relish my future. Thanks a lot very much for the expert and result oriented help. I will not be reluctant to refer the website to any person who ought to have counselling about this problem.