GithubHelp home page GithubHelp logo

web-designing-css's Introduction

CSS Nedir?

CSS, bir HTML belgesine stil vermek için kullandığımız dildir. CSS, HTML öğelerinin nasıl görüntülenmesi gerektiğini açıklar. HTML sayfalarına farklı şekillerde CSS stilleri verebiliriz.
  • Inline CSS: Satır içerisinde kullanmak.
  • Örneğin < p style="background-color:red">
  • Internal CSS: Html sayfasının head bölümünde style etiketi kullanılarak sayfaya stil verebiliriz.
  • External CSS: CSS kodlarını .css uzantılı bir dosyada yazarak html sayfasında head bölümünde < link rel="stylesheet" href="dosyaadı.css"> css dosyasını konumlandırılara kullanmak.
CSS kodları için{ } süslü parantezler kullanılır.
Selector { CSS Cod} şeklinde yazılır.

Selector Çeşitleri
Etiket HTML < > CSS { }
Etiket isminini kullanılarak < p> Paragraf < /p> p {color: red}
Class etiketi kullanılarak < p class="blog1"> Paragraf < /p> .blog1 {color: red}
Id kimliğini kullanılarak < p id="blog1"> Paragraf < /p> #blog1 {color: red}
Sayfanın bütün etiketlere uygulamak için
* selector
< p> Paragraf < /p> * {color: red}
sayfadaki tüm yazıları kırmızı yapar.


CSS'de Etiketlerin Önceliği

Aynı etiket ismi(selector)kullanıldığında en baskın olan en son yazılan etiket olur.
Örneğin style etiketinin içerisine;
h1 {background-color: red;}
h1 {background-color: blue;}
Şeklinde yazdığımız css kodların en baskını en son satırdaki olur. Yani bu durumuda sayfanın arka plan rengi mavi olacaktır.

Öncelik Etiket Sıralaması
  • Inline Selector: < p style="">
  • Id Selector: #Selector{ }
  • Class Selector: .Selector{ }
  • Tag Selector: p { }



HTML ve CSS codlarını derlemek için HTML-CSS-JavaScript tıklayınız.

web-designing-css's People

Contributors

emrahakcal avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.