[{"data":1,"prerenderedAt":1789},["Reactive",2],{"/posts/css-nedir":3,"/posts/css-nedir:related":1602,"/posts/css-nedir:alternate":1788},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"seoTitle":10,"thumbnail":11,"date":12,"read":13,"lang":14,"faqSchema":15,"body":16,"_type":1596,"_id":1597,"_source":1598,"_file":1599,"_extension":1600,"sitemap":1601},"/posts/css-nedir","posts",false,"","CSS nedir? Seçiciler, kutu modeli, Flexbox ve responsive tasarım","CSS nedir, ne işe yarar? Kural yapısı, seçiciler, cascade ve özgüllük, kutu modeli, Flexbox, media query ve CSS değişkenleri, Chrome'da ölçülmüş çıktılarıyla.","CSS nedir, ne işe yarar? Temel CSS kodları ve örnekler","/media/css-nedir/thumbnail.jpg","2026-12-01","10 dk","tr",true,{"type":17,"children":18,"toc":1570},"root",[19,36,41,49,56,71,76,96,102,122,135,176,182,187,198,211,217,230,239,249,258,271,282,292,297,303,305,581,586,592,597,622,624,765,792,804,838,844,849,851,971,998,1041,1051,1060,1078,1084,1089,1120,1129,1140,1146,1175,1180,1189,1202,1208,1242,1255,1264,1293,1299,1313,1326,1332,1359,1364,1370,1411,1438,1444,1451,1456,1462,1475,1481,1486,1492,1521,1527,1548,1554,1559,1565],{"type":20,"tag":21,"props":22,"children":23},"element","p",{},[24,27,34],{"type":25,"value":26},"text","CSS (Cascading Style Sheets), bir web sayfasının nasıl görüneceğini tarif eden stil dili. Renkler, yazı tipleri, boşluklar, kutuların yan yana mı alt alta mı duracağı ve sayfanın telefonda nasıl görüneceği CSS ile belirleniyor. ",{"type":20,"tag":28,"props":29,"children":31},"a",{"href":30},"/posts/html-nedir",[32],{"type":25,"value":33},"HTML",{"type":25,"value":35}," sayfadaki içeriğin ne olduğunu söylüyor, CSS o içeriğin nasıl görüneceğini.",{"type":20,"tag":21,"props":37,"children":38},{},[39],{"type":25,"value":40},"Bu yazıdaki örneklerin hepsini tek bir HTML sayfası ve bir CSS dosyası üzerinde yazdım. Sonra sayfayı headless Chrome'da 1280 ve 390 piksel genişlikte açıp tarayıcının hesapladığı değerleri okudum. Aşağıdaki çıktılar o ölçümler.",{"type":20,"tag":21,"props":42,"children":43},{},[44],{"type":20,"tag":45,"props":46,"children":48},"img",{"alt":47,"src":11},"CSS dosyası ve headless Chrome'da iki genişlikte ölçülen renkler, kutu genişlikleri ve flex yönü",[],{"type":20,"tag":50,"props":51,"children":53},"h2",{"id":52},"css-nedir-ne-işe-yarar",[54],{"type":25,"value":55},"CSS nedir, ne işe yarar?",{"type":20,"tag":21,"props":57,"children":58},{},[59,61,69],{"type":25,"value":60},"MDN'in tanımıyla CSS, HTML ya da XML ile yazılmış bir belgenin sunumunu tarif eden bir stil sayfası dili. Elementlerin ekranda, kâğıtta, sesli okumada ya da başka ortamlarda nasıl gösterileceğini anlatıyor (",{"type":20,"tag":28,"props":62,"children":66},{"href":63,"rel":64},"https://developer.mozilla.org/en-US/docs/Web/CSS",[65],"noopener",[67],{"type":25,"value":68},"MDN, CSS",{"type":25,"value":70},").",{"type":20,"tag":21,"props":72,"children":73},{},[74],{"type":25,"value":75},"CSS olmadan da sayfa çalışıyor. Tarayıcının varsayılan stilleriyle, beyaz zemin üzerinde siyah yazı, mavi altı çizili bağlantılar ve alt alta dizilmiş her şeyle. CSS'in getirdiği şeyler:",{"type":20,"tag":77,"props":78,"children":79},"ul",{},[80,86,91],{"type":20,"tag":81,"props":82,"children":83},"li",{},[84],{"type":25,"value":85},"Sayfanın görünümünü içerikten ayırmak. Aynı HTML'e başka bir CSS dosyası bağlayınca bütün tasarım değişiyor.",{"type":20,"tag":81,"props":87,"children":88},{},[89],{"type":25,"value":90},"Bir kuralı bir kez yazıp yüzlerce elemente uygulamak. Bütün butonların rengini tek satırda değiştirebiliyorsunuz.",{"type":20,"tag":81,"props":92,"children":93},{},[94],{"type":25,"value":95},"Aynı sayfanın telefonda, tablette ve masaüstünde farklı düzenlerde görünmesi.",{"type":20,"tag":50,"props":97,"children":99},{"id":98},"css-kuralının-yapısı",[100],{"type":25,"value":101},"CSS kuralının yapısı",{"type":20,"tag":21,"props":103,"children":104},{},[105,107,113,115,120],{"type":25,"value":106},"Bir CSS kuralı iki parçadan oluşuyor: hangi elementlere uygulanacağını söyleyen ",{"type":20,"tag":108,"props":109,"children":110},"strong",{},[111],{"type":25,"value":112},"seçici",{"type":25,"value":114}," ve süslü parantez içindeki ",{"type":20,"tag":108,"props":116,"children":117},{},[118],{"type":25,"value":119},"bildirimler",{"type":25,"value":121},".",{"type":20,"tag":123,"props":124,"children":129},"pre",{"className":125,"code":127,"language":128,"meta":7},[126],"language-css","p {\n  color: #09090b;\n  font-size: 18px;\n}\n","css",[130],{"type":20,"tag":131,"props":132,"children":133},"code",{"__ignoreMap":7},[134],{"type":25,"value":127},{"type":20,"tag":21,"props":136,"children":137},{},[138,143,145,151,153,159,161,167,168,174],{"type":20,"tag":131,"props":139,"children":141},{"className":140},[],[142],{"type":25,"value":21},{"type":25,"value":144}," seçici: sayfadaki bütün paragrafları seçiyor. ",{"type":20,"tag":131,"props":146,"children":148},{"className":147},[],[149],{"type":25,"value":150},"color",{"type":25,"value":152}," ve ",{"type":20,"tag":131,"props":154,"children":156},{"className":155},[],[157],{"type":25,"value":158},"font-size",{"type":25,"value":160}," özellik (property), ",{"type":20,"tag":131,"props":162,"children":164},{"className":163},[],[165],{"type":25,"value":166},"#09090b",{"type":25,"value":152},{"type":20,"tag":131,"props":169,"children":171},{"className":170},[],[172],{"type":25,"value":173},"18px",{"type":25,"value":175}," değer. Her bildirim noktalı virgülle bitiyor.",{"type":20,"tag":50,"props":177,"children":179},{"id":178},"css-sayfaya-nasıl-eklenir",[180],{"type":25,"value":181},"CSS sayfaya nasıl eklenir?",{"type":20,"tag":21,"props":183,"children":184},{},[185],{"type":25,"value":186},"Üç yolu var:",{"type":20,"tag":123,"props":188,"children":193},{"className":189,"code":191,"language":192,"meta":7},[190],"language-html","\u003C!-- 1. Ayrı bir dosya: en yaygın ve önerilen yol -->\n\u003Clink rel=\"stylesheet\" href=\"stil.css\">\n\n\u003C!-- 2. Sayfanın içinde bir style etiketi -->\n\u003Cstyle>\n  p { color: #09090b; }\n\u003C/style>\n\n\u003C!-- 3. Elementin kendi style attribute'u -->\n\u003Cp style=\"color: #09090b;\">Paragraf\u003C/p>\n","html",[194],{"type":20,"tag":131,"props":195,"children":196},{"__ignoreMap":7},[197],{"type":25,"value":191},{"type":20,"tag":21,"props":199,"children":200},{},[201,203,209],{"type":25,"value":202},"Ayrı dosya, birden fazla sayfanın aynı stili paylaşmasını ve tarayıcının dosyayı önbelleğe almasını sağlıyor. ",{"type":20,"tag":131,"props":204,"children":206},{"className":205},[],[207],{"type":25,"value":208},"style",{"type":25,"value":210}," attribute'u yalnızca o elementi etkiliyor ve aşağıda anlatacağım öncelik sıralamasında diğer ikisinin önüne geçiyor. Bu yüzden genelde kaçınılıyor.",{"type":20,"tag":50,"props":212,"children":214},{"id":213},"örnek-sayfa",[215],{"type":25,"value":216},"Örnek sayfa",{"type":20,"tag":21,"props":218,"children":219},{},[220,222,228],{"type":25,"value":221},"Yazının geri kalanı bu iki dosya üzerinden ilerliyor. ",{"type":20,"tag":131,"props":223,"children":225},{"className":224},[],[226],{"type":25,"value":227},"index.html",{"type":25,"value":229},":",{"type":20,"tag":123,"props":231,"children":234},{"className":232,"code":233,"language":192,"meta":7},[190],"\u003C!doctype html>\n\u003Chtml lang=\"tr\">\n  \u003Chead>\n    \u003Cmeta charset=\"utf-8\">\n    \u003Cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n    \u003Ctitle>CSS denemesi\u003C/title>\n    \u003Clink rel=\"stylesheet\" href=\"stil.css\">\n  \u003C/head>\n  \u003Cbody>\n    \u003Cp>Sıradan paragraf\u003C/p>\n    \u003Cp class=\"not\">Sınıfı olan paragraf\u003C/p>\n    \u003Cp class=\"not\" id=\"uyari\">Hem sınıfı hem id'si olan paragraf\u003C/p>\n    \u003Cdiv class=\"kutu\">content-box\u003C/div>\n    \u003Cdiv class=\"kutu border-box\">border-box\u003C/div>\n    \u003Cdiv class=\"kartlar\">\u003Cdiv>Kart 1\u003C/div>\u003Cdiv>Kart 2\u003C/div>\u003C/div>\n  \u003C/body>\n\u003C/html>\n",[235],{"type":20,"tag":131,"props":236,"children":237},{"__ignoreMap":7},[238],{"type":25,"value":233},{"type":20,"tag":21,"props":240,"children":241},{},[242,248],{"type":20,"tag":131,"props":243,"children":245},{"className":244},[],[246],{"type":25,"value":247},"stil.css",{"type":25,"value":229},{"type":20,"tag":123,"props":250,"children":253},{"className":251,"code":252,"language":128,"meta":7},[126],":root {\n  --yazi: #09090b;\n  --vurgu: #2563eb;\n}\n\np { color: var(--yazi); }\n.not { color: var(--vurgu); }\n#uyari { color: crimson; }\n\n.kutu {\n  width: 200px;\n  padding: 20px;\n  border: 5px solid var(--yazi);\n}\n.kutu.border-box { box-sizing: border-box; }\n\n.kartlar { display: flex; gap: 16px; }\n\n@media (max-width: 600px) {\n  .kartlar { flex-direction: column; }\n}\n",[254],{"type":20,"tag":131,"props":255,"children":256},{"__ignoreMap":7},[257],{"type":25,"value":252},{"type":20,"tag":21,"props":259,"children":260},{},[261,263,269],{"type":25,"value":262},"Ölçüm için yazdığım script, sayfayı iki genişlikte açıp ",{"type":20,"tag":131,"props":264,"children":266},{"className":265},[],[267],{"type":25,"value":268},"getComputedStyle",{"type":25,"value":270}," ile tarayıcının sonunda uyguladığı değerleri okuyor:",{"type":20,"tag":123,"props":272,"children":277},{"className":273,"code":275,"language":276,"meta":7},[274],"language-js","import { chromium } from \"playwright-core\";\n\nconst tarayici = await chromium.launch({ executablePath: \"/usr/bin/google-chrome\" });\nfor (const genislik of [1280, 390]) {\n  const sayfa = await tarayici.newPage({ viewport: { width: genislik, height: 800 } });\n  await sayfa.goto(\"file://\" + process.cwd() + \"/index.html\");\n  const sonuc = await sayfa.evaluate(() => {\n    const renk = (el) => getComputedStyle(el).color;\n    const [p1, p2, p3] = document.querySelectorAll(\"p\");\n    const [k1, k2] = document.querySelectorAll(\".kutu\");\n    return {\n      paragraflar: [renk(p1), renk(p2), renk(p3)],\n      kutuGenislikleri: [k1.offsetWidth, k2.offsetWidth],\n      kartlar: getComputedStyle(document.querySelector(\".kartlar\")).flexDirection,\n    };\n  });\n  console.log(genislik + \"px\", JSON.stringify(sonuc));\n  await sayfa.close();\n}\nawait tarayici.close();\n","js",[278],{"type":20,"tag":131,"props":279,"children":280},{"__ignoreMap":7},[281],{"type":25,"value":275},{"type":20,"tag":123,"props":283,"children":287},{"className":284,"code":286,"language":25,"meta":7},[285],"language-text","1280px {\"paragraflar\":[\"rgb(9, 9, 11)\",\"rgb(37, 99, 235)\",\"rgb(220, 20, 60)\"],\"kutuGenislikleri\":[250,200],\"kartlar\":\"row\"}\n390px {\"paragraflar\":[\"rgb(9, 9, 11)\",\"rgb(37, 99, 235)\",\"rgb(220, 20, 60)\"],\"kutuGenislikleri\":[250,200],\"kartlar\":\"column\"}\n",[288],{"type":20,"tag":131,"props":289,"children":290},{"__ignoreMap":7},[291],{"type":25,"value":286},{"type":20,"tag":21,"props":293,"children":294},{},[295],{"type":25,"value":296},"Bu iki satırı aşağıda parça parça açıyorum.",{"type":20,"tag":50,"props":298,"children":300},{"id":299},"css-seçicileri",[301],{"type":25,"value":302},"CSS seçicileri",{"type":25,"value":304},"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",{"type":20,"tag":306,"props":307,"children":308},"table",{},[309,332],{"type":20,"tag":310,"props":311,"children":312},"thead",{},[313],{"type":20,"tag":14,"props":314,"children":315},{},[316,322,327],{"type":20,"tag":317,"props":318,"children":319},"th",{},[320],{"type":25,"value":321},"Seçici",{"type":20,"tag":317,"props":323,"children":324},{},[325],{"type":25,"value":326},"Örnek",{"type":20,"tag":317,"props":328,"children":329},{},[330],{"type":25,"value":331},"Neyi seçer",{"type":20,"tag":333,"props":334,"children":335},"tbody",{},[336,366,394,422,458,486,522,544],{"type":20,"tag":14,"props":337,"children":338},{},[339,345,353],{"type":20,"tag":340,"props":341,"children":342},"td",{},[343],{"type":25,"value":344},"Element",{"type":20,"tag":340,"props":346,"children":347},{},[348],{"type":20,"tag":131,"props":349,"children":351},{"className":350},[],[352],{"type":25,"value":21},{"type":20,"tag":340,"props":354,"children":355},{},[356,358,364],{"type":25,"value":357},"Bütün ",{"type":20,"tag":131,"props":359,"children":361},{"className":360},[],[362],{"type":25,"value":363},"\u003Cp>",{"type":25,"value":365}," elementlerini",{"type":20,"tag":14,"props":367,"children":368},{},[369,374,383],{"type":20,"tag":340,"props":370,"children":371},{},[372],{"type":25,"value":373},"Sınıf (class)",{"type":20,"tag":340,"props":375,"children":376},{},[377],{"type":20,"tag":131,"props":378,"children":380},{"className":379},[],[381],{"type":25,"value":382},".not",{"type":20,"tag":340,"props":384,"children":385},{},[386,392],{"type":20,"tag":131,"props":387,"children":389},{"className":388},[],[390],{"type":25,"value":391},"class=\"not\"",{"type":25,"value":393}," olan bütün elementleri",{"type":20,"tag":14,"props":395,"children":396},{},[397,402,411],{"type":20,"tag":340,"props":398,"children":399},{},[400],{"type":25,"value":401},"ID",{"type":20,"tag":340,"props":403,"children":404},{},[405],{"type":20,"tag":131,"props":406,"children":408},{"className":407},[],[409],{"type":25,"value":410},"#uyari",{"type":20,"tag":340,"props":412,"children":413},{},[414,420],{"type":20,"tag":131,"props":415,"children":417},{"className":416},[],[418],{"type":25,"value":419},"id=\"uyari\"",{"type":25,"value":421}," olan tek elementi",{"type":20,"tag":14,"props":423,"children":424},{},[425,430,439],{"type":20,"tag":340,"props":426,"children":427},{},[428],{"type":25,"value":429},"Attribute",{"type":20,"tag":340,"props":431,"children":432},{},[433],{"type":20,"tag":131,"props":434,"children":436},{"className":435},[],[437],{"type":25,"value":438},"a[href^=\"https\"]",{"type":20,"tag":340,"props":440,"children":441},{},[442,448,450,456],{"type":20,"tag":131,"props":443,"children":445},{"className":444},[],[446],{"type":25,"value":447},"href",{"type":25,"value":449}," değeri ",{"type":20,"tag":131,"props":451,"children":453},{"className":452},[],[454],{"type":25,"value":455},"https",{"type":25,"value":457}," ile başlayan bağlantıları",{"type":20,"tag":14,"props":459,"children":460},{},[461,466,475],{"type":20,"tag":340,"props":462,"children":463},{},[464],{"type":25,"value":465},"Alt element",{"type":20,"tag":340,"props":467,"children":468},{},[469],{"type":20,"tag":131,"props":470,"children":472},{"className":471},[],[473],{"type":25,"value":474},"nav a",{"type":20,"tag":340,"props":476,"children":477},{},[478,484],{"type":20,"tag":131,"props":479,"children":481},{"className":480},[],[482],{"type":25,"value":483},"\u003Cnav>",{"type":25,"value":485}," içindeki bütün bağlantıları",{"type":20,"tag":14,"props":487,"children":488},{},[489,494,503],{"type":20,"tag":340,"props":490,"children":491},{},[492],{"type":25,"value":493},"Doğrudan çocuk",{"type":20,"tag":340,"props":495,"children":496},{},[497],{"type":20,"tag":131,"props":498,"children":500},{"className":499},[],[501],{"type":25,"value":502},"ul > li",{"type":20,"tag":340,"props":504,"children":505},{},[506,512,514,520],{"type":20,"tag":131,"props":507,"children":509},{"className":508},[],[510],{"type":25,"value":511},"\u003Cul>",{"type":25,"value":513},"'nin doğrudan çocuğu olan ",{"type":20,"tag":131,"props":515,"children":517},{"className":516},[],[518],{"type":25,"value":519},"\u003Cli>",{"type":25,"value":521},"'leri",{"type":20,"tag":14,"props":523,"children":524},{},[525,530,539],{"type":20,"tag":340,"props":526,"children":527},{},[528],{"type":25,"value":529},"Durum (pseudo-class)",{"type":20,"tag":340,"props":531,"children":532},{},[533],{"type":20,"tag":131,"props":534,"children":536},{"className":535},[],[537],{"type":25,"value":538},"a:hover",{"type":20,"tag":340,"props":540,"children":541},{},[542],{"type":25,"value":543},"Fare üstündeyken bağlantıyı",{"type":20,"tag":14,"props":545,"children":546},{},[547,552,561],{"type":20,"tag":340,"props":548,"children":549},{},[550],{"type":25,"value":551},"Birden fazla",{"type":20,"tag":340,"props":553,"children":554},{},[555],{"type":20,"tag":131,"props":556,"children":558},{"className":557},[],[559],{"type":25,"value":560},"h1, h2",{"type":20,"tag":340,"props":562,"children":563},{},[564,566,572,574,580],{"type":25,"value":565},"Hem ",{"type":20,"tag":131,"props":567,"children":569},{"className":568},[],[570],{"type":25,"value":571},"\u003Ch1>",{"type":25,"value":573}," hem ",{"type":20,"tag":131,"props":575,"children":577},{"className":576},[],[578],{"type":25,"value":579},"\u003Ch2>",{"type":25,"value":365},{"type":20,"tag":21,"props":582,"children":583},{},[584],{"type":25,"value":585},"Günlük işte en çok sınıf seçicisi kullanılıyor. ID seçicileri, birazdan göreceğiniz gibi çok güçlü olduğu için stil vermekte pek tercih edilmiyor.",{"type":20,"tag":50,"props":587,"children":589},{"id":588},"cascade-ve-özgüllük-hangi-kural-kazanır",[590],{"type":25,"value":591},"Cascade ve özgüllük: hangi kural kazanır?",{"type":20,"tag":21,"props":593,"children":594},{},[595],{"type":25,"value":596},"Adındaki \"cascading\" (basamaklı) kelimesi, aynı elemente birden fazla kural uyduğunda hangisinin kazanacağını belirleyen sistemi anlatıyor.",{"type":20,"tag":21,"props":598,"children":599},{},[600,602,607,609,614,615,620],{"type":25,"value":601},"Örnekteki üçüncü paragrafa üç kural birden uyuyor: ",{"type":20,"tag":131,"props":603,"children":605},{"className":604},[],[606],{"type":25,"value":21},{"type":25,"value":608},", ",{"type":20,"tag":131,"props":610,"children":612},{"className":611},[],[613],{"type":25,"value":382},{"type":25,"value":152},{"type":20,"tag":131,"props":616,"children":618},{"className":617},[],[619],{"type":25,"value":410},{"type":25,"value":621},". Ölçümde renkler şöyle çıktı:",{"type":25,"value":623},"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",{"type":20,"tag":306,"props":625,"children":626},{},[627,648],{"type":20,"tag":310,"props":628,"children":629},{},[630],{"type":20,"tag":14,"props":631,"children":632},{},[633,638,643],{"type":20,"tag":317,"props":634,"children":635},{},[636],{"type":25,"value":637},"Paragraf",{"type":20,"tag":317,"props":639,"children":640},{},[641],{"type":25,"value":642},"Uyan kurallar",{"type":20,"tag":317,"props":644,"children":645},{},[646],{"type":25,"value":647},"Sonuç",{"type":20,"tag":333,"props":649,"children":650},{},[651,683,721],{"type":20,"tag":14,"props":652,"children":653},{},[654,659,667],{"type":20,"tag":340,"props":655,"children":656},{},[657],{"type":25,"value":658},"Sıradan",{"type":20,"tag":340,"props":660,"children":661},{},[662],{"type":20,"tag":131,"props":663,"children":665},{"className":664},[],[666],{"type":25,"value":21},{"type":20,"tag":340,"props":668,"children":669},{},[670,676,678],{"type":20,"tag":131,"props":671,"children":673},{"className":672},[],[674],{"type":25,"value":675},"rgb(9, 9, 11)",{"type":25,"value":677},", yani ",{"type":20,"tag":131,"props":679,"children":681},{"className":680},[],[682],{"type":25,"value":166},{"type":20,"tag":14,"props":684,"children":685},{},[686,691,705],{"type":20,"tag":340,"props":687,"children":688},{},[689],{"type":25,"value":690},"Sınıfı olan",{"type":20,"tag":340,"props":692,"children":693},{},[694,699,700],{"type":20,"tag":131,"props":695,"children":697},{"className":696},[],[698],{"type":25,"value":21},{"type":25,"value":608},{"type":20,"tag":131,"props":701,"children":703},{"className":702},[],[704],{"type":25,"value":382},{"type":20,"tag":340,"props":706,"children":707},{},[708,714,715],{"type":20,"tag":131,"props":709,"children":711},{"className":710},[],[712],{"type":25,"value":713},"rgb(37, 99, 235)",{"type":25,"value":677},{"type":20,"tag":131,"props":716,"children":718},{"className":717},[],[719],{"type":25,"value":720},"#2563eb",{"type":20,"tag":14,"props":722,"children":723},{},[724,729,749],{"type":20,"tag":340,"props":725,"children":726},{},[727],{"type":25,"value":728},"Sınıfı ve id'si olan",{"type":20,"tag":340,"props":730,"children":731},{},[732,737,738,743,744],{"type":20,"tag":131,"props":733,"children":735},{"className":734},[],[736],{"type":25,"value":21},{"type":25,"value":608},{"type":20,"tag":131,"props":739,"children":741},{"className":740},[],[742],{"type":25,"value":382},{"type":25,"value":608},{"type":20,"tag":131,"props":745,"children":747},{"className":746},[],[748],{"type":25,"value":410},{"type":20,"tag":340,"props":750,"children":751},{},[752,758,759],{"type":20,"tag":131,"props":753,"children":755},{"className":754},[],[756],{"type":25,"value":757},"rgb(220, 20, 60)",{"type":25,"value":677},{"type":20,"tag":131,"props":760,"children":762},{"className":761},[],[763],{"type":25,"value":764},"crimson",{"type":20,"tag":21,"props":766,"children":767},{},[768,770,775,777,782,784,790],{"type":25,"value":769},"Kazananı belirleyen şey ",{"type":20,"tag":108,"props":771,"children":772},{},[773],{"type":25,"value":774},"özgüllük",{"type":25,"value":776}," (specificity). Kabaca: id seçicisi sınıf seçicisinden, sınıf seçicisi element seçicisinden güçlü. Özgüllük eşitse dosyada sonra yazılan kural kazanıyor. Bir elementin ",{"type":20,"tag":131,"props":778,"children":780},{"className":779},[],[781],{"type":25,"value":208},{"type":25,"value":783}," attribute'u bunların hepsini geçiyor, ",{"type":20,"tag":131,"props":785,"children":787},{"className":786},[],[788],{"type":25,"value":789},"!important",{"type":25,"value":791}," ise neredeyse her şeyi.",{"type":20,"tag":21,"props":793,"children":794},{},[795,797,802],{"type":25,"value":796},"Pratikte işe yarayan alışkanlık, stilleri sınıflarla yazıp özgüllüğü düşük ve eşit tutmak. Bir kuralı ezmek için ",{"type":20,"tag":131,"props":798,"children":800},{"className":799},[],[801],{"type":25,"value":789},{"type":25,"value":803}," yazmaya başladıysanız seçicilerinizin özgüllüğü birbirine karışmış demektir.",{"type":20,"tag":21,"props":805,"children":806},{},[807,809,814,815,821,823,829,830,836],{"type":25,"value":808},"Bazı özellikler de kalıtımla geçiyor: ",{"type":20,"tag":131,"props":810,"children":812},{"className":811},[],[813],{"type":25,"value":150},{"type":25,"value":152},{"type":20,"tag":131,"props":816,"children":818},{"className":817},[],[819],{"type":25,"value":820},"font-family",{"type":25,"value":822}," gibi metin özellikleri ebeveyn elementten çocuklara iniyor, ",{"type":20,"tag":131,"props":824,"children":826},{"className":825},[],[827],{"type":25,"value":828},"border",{"type":25,"value":152},{"type":20,"tag":131,"props":831,"children":833},{"className":832},[],[834],{"type":25,"value":835},"padding",{"type":25,"value":837}," inmiyor.",{"type":20,"tag":50,"props":839,"children":841},{"id":840},"kutu-modeli-genişlik-neden-250-piksel-çıktı",[842],{"type":25,"value":843},"Kutu modeli: genişlik neden 250 piksel çıktı?",{"type":20,"tag":21,"props":845,"children":846},{},[847],{"type":25,"value":848},"Tarayıcı her elementi bir kutu olarak çiziyor. Kutu içeriden dışarıya dört katmandan oluşuyor:",{"type":25,"value":850},"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",{"type":20,"tag":306,"props":852,"children":853},{},[854,875],{"type":20,"tag":310,"props":855,"children":856},{},[857],{"type":20,"tag":14,"props":858,"children":859},{},[860,865,870],{"type":20,"tag":317,"props":861,"children":862},{},[863],{"type":25,"value":864},"Katman",{"type":20,"tag":317,"props":866,"children":867},{},[868],{"type":25,"value":869},"Özellik",{"type":20,"tag":317,"props":871,"children":872},{},[873],{"type":25,"value":874},"Açıklama",{"type":20,"tag":333,"props":876,"children":877},{},[878,907,928,949],{"type":20,"tag":14,"props":879,"children":880},{},[881,886,902],{"type":20,"tag":340,"props":882,"children":883},{},[884],{"type":25,"value":885},"İçerik",{"type":20,"tag":340,"props":887,"children":888},{},[889,895,896],{"type":20,"tag":131,"props":890,"children":892},{"className":891},[],[893],{"type":25,"value":894},"width",{"type":25,"value":608},{"type":20,"tag":131,"props":897,"children":899},{"className":898},[],[900],{"type":25,"value":901},"height",{"type":20,"tag":340,"props":903,"children":904},{},[905],{"type":25,"value":906},"Metnin ya da resmin alanı",{"type":20,"tag":14,"props":908,"children":909},{},[910,915,923],{"type":20,"tag":340,"props":911,"children":912},{},[913],{"type":25,"value":914},"İç boşluk",{"type":20,"tag":340,"props":916,"children":917},{},[918],{"type":20,"tag":131,"props":919,"children":921},{"className":920},[],[922],{"type":25,"value":835},{"type":20,"tag":340,"props":924,"children":925},{},[926],{"type":25,"value":927},"İçerikle kenarlık arası",{"type":20,"tag":14,"props":929,"children":930},{},[931,936,944],{"type":20,"tag":340,"props":932,"children":933},{},[934],{"type":25,"value":935},"Kenarlık",{"type":20,"tag":340,"props":937,"children":938},{},[939],{"type":20,"tag":131,"props":940,"children":942},{"className":941},[],[943],{"type":25,"value":828},{"type":20,"tag":340,"props":945,"children":946},{},[947],{"type":25,"value":948},"Kutunun çizgisi",{"type":20,"tag":14,"props":950,"children":951},{},[952,957,966],{"type":20,"tag":340,"props":953,"children":954},{},[955],{"type":25,"value":956},"Dış boşluk",{"type":20,"tag":340,"props":958,"children":959},{},[960],{"type":20,"tag":131,"props":961,"children":963},{"className":962},[],[964],{"type":25,"value":965},"margin",{"type":20,"tag":340,"props":967,"children":968},{},[969],{"type":25,"value":970},"Kutuyla komşuları arası",{"type":20,"tag":21,"props":972,"children":973},{},[974,976,982,983,989,990,996],{"type":25,"value":975},"Örnekteki iki kutuya da ",{"type":20,"tag":131,"props":977,"children":979},{"className":978},[],[980],{"type":25,"value":981},"width: 200px",{"type":25,"value":608},{"type":20,"tag":131,"props":984,"children":986},{"className":985},[],[987],{"type":25,"value":988},"padding: 20px",{"type":25,"value":152},{"type":20,"tag":131,"props":991,"children":993},{"className":992},[],[994],{"type":25,"value":995},"border: 5px",{"type":25,"value":997}," verdim. Ölçümde ilki 250, ikincisi 200 piksel geldi.",{"type":20,"tag":21,"props":999,"children":1000},{},[1001,1003,1009,1011,1017,1019,1024,1026,1032,1034,1039],{"type":25,"value":1002},"Fark ",{"type":20,"tag":131,"props":1004,"children":1006},{"className":1005},[],[1007],{"type":25,"value":1008},"box-sizing",{"type":25,"value":1010}," özelliğinde. Varsayılan değer ",{"type":20,"tag":131,"props":1012,"children":1014},{"className":1013},[],[1015],{"type":25,"value":1016},"content-box",{"type":25,"value":1018},": ",{"type":20,"tag":131,"props":1020,"children":1022},{"className":1021},[],[1023],{"type":25,"value":894},{"type":25,"value":1025}," sadece içeriğin genişliği, padding ve border üstüne ekleniyor. 200 + 20 + 20 + 5 + 5 = 250. ",{"type":20,"tag":131,"props":1027,"children":1029},{"className":1028},[],[1030],{"type":25,"value":1031},"border-box",{"type":25,"value":1033}," verildiğinde ise ",{"type":20,"tag":131,"props":1035,"children":1037},{"className":1036},[],[1038],{"type":25,"value":894},{"type":25,"value":1040}," kenarlık dahil bütün kutunun genişliği oluyor ve padding ile border içeriden yer kaplıyor.",{"type":20,"tag":21,"props":1042,"children":1043},{},[1044,1049],{"type":20,"tag":131,"props":1045,"children":1047},{"className":1046},[],[1048],{"type":25,"value":1031},{"type":25,"value":1050}," ile hesap yapmak daha kolay olduğu için birçok proje bunu bütün elementlere uyguluyor. Bu sitenin stil dosyasının başında da aynısı var:",{"type":20,"tag":123,"props":1052,"children":1055},{"className":1053,"code":1054,"language":128,"meta":7},[126],"*,\n*::before,\n*::after {\n  box-sizing: border-box;\n  margin: 0;\n  padding: 0;\n}\n",[1056],{"type":20,"tag":131,"props":1057,"children":1058},{"__ignoreMap":7},[1059],{"type":25,"value":1054},{"type":20,"tag":21,"props":1061,"children":1062},{},[1063,1065,1070,1071,1076],{"type":25,"value":1064},"Aynı kural tarayıcının varsayılan ",{"type":20,"tag":131,"props":1066,"children":1068},{"className":1067},[],[1069],{"type":25,"value":965},{"type":25,"value":152},{"type":20,"tag":131,"props":1072,"children":1074},{"className":1073},[],[1075],{"type":25,"value":835},{"type":25,"value":1077}," değerlerini de sıfırlıyor.",{"type":20,"tag":50,"props":1079,"children":1081},{"id":1080},"flexbox-ve-grid-ile-yerleşim",[1082],{"type":25,"value":1083},"Flexbox ve Grid ile yerleşim",{"type":20,"tag":21,"props":1085,"children":1086},{},[1087],{"type":25,"value":1088},"Elementleri yan yana dizmek eskiden CSS'in en zahmetli işiydi. Bugün bunun için iki yerleşim sistemi var:",{"type":20,"tag":77,"props":1090,"children":1091},{},[1092,1110],{"type":20,"tag":81,"props":1093,"children":1094},{},[1095,1100,1102,1108],{"type":20,"tag":108,"props":1096,"children":1097},{},[1098],{"type":25,"value":1099},"Flexbox",{"type":25,"value":1101}," tek yönde dizilim için: bir satırdaki menü bağlantıları, bir kartın içindeki başlık ve buton. Örnekteki ",{"type":20,"tag":131,"props":1103,"children":1105},{"className":1104},[],[1106],{"type":25,"value":1107},".kartlar { display: flex; gap: 16px; }",{"type":25,"value":1109}," kartları yan yana diziyor ve aralarına 16 piksel boşluk koyuyor.",{"type":20,"tag":81,"props":1111,"children":1112},{},[1113,1118],{"type":20,"tag":108,"props":1114,"children":1115},{},[1116],{"type":25,"value":1117},"Grid",{"type":25,"value":1119}," iki yönlü düzen için: satırları ve sütunları olan sayfa iskeletleri, kart ızgaraları.",{"type":20,"tag":123,"props":1121,"children":1124},{"className":1122,"code":1123,"language":128,"meta":7},[126],".izgara {\n  display: grid;\n  grid-template-columns: repeat(3, 1fr);\n  gap: 24px;\n}\n",[1125],{"type":20,"tag":131,"props":1126,"children":1127},{"__ignoreMap":7},[1128],{"type":25,"value":1123},{"type":20,"tag":21,"props":1130,"children":1131},{},[1132,1138],{"type":20,"tag":131,"props":1133,"children":1135},{"className":1134},[],[1136],{"type":25,"value":1137},"1fr",{"type":25,"value":1139}," kalan alanın bir payı demek. Bu kural, genişlik ne olursa olsun üç eşit sütun oluşturuyor.",{"type":20,"tag":50,"props":1141,"children":1143},{"id":1142},"responsive-tasarım-ve-media-query",[1144],{"type":25,"value":1145},"Responsive tasarım ve media query",{"type":20,"tag":21,"props":1147,"children":1148},{},[1149,1151,1157,1159,1165,1167,1173],{"type":25,"value":1150},"Ölçümdeki son değer ",{"type":20,"tag":131,"props":1152,"children":1154},{"className":1153},[],[1155],{"type":25,"value":1156},"kartlar",{"type":25,"value":1158},". 1280 pikselde ",{"type":20,"tag":131,"props":1160,"children":1162},{"className":1161},[],[1163],{"type":25,"value":1164},"row",{"type":25,"value":1166},", 390 pikselde ",{"type":20,"tag":131,"props":1168,"children":1170},{"className":1169},[],[1171],{"type":25,"value":1172},"column",{"type":25,"value":1174}," geldi: kartlar masaüstünde yan yana, telefonda alt alta.",{"type":20,"tag":21,"props":1176,"children":1177},{},[1178],{"type":25,"value":1179},"Bunu yapan, dosyanın sonundaki media query:",{"type":20,"tag":123,"props":1181,"children":1184},{"className":1182,"code":1183,"language":128,"meta":7},[126],"@media (max-width: 600px) {\n  .kartlar { flex-direction: column; }\n}\n",[1185],{"type":20,"tag":131,"props":1186,"children":1187},{"__ignoreMap":7},[1188],{"type":25,"value":1183},{"type":20,"tag":21,"props":1190,"children":1191},{},[1192,1194,1200],{"type":25,"value":1193},"İçindeki kurallar yalnızca ekran 600 pikselden darken geçerli oluyor. Responsive tasarım büyük ölçüde bu: aynı HTML, ekran genişliğine göre devreye giren farklı CSS kuralları. HTML yazısındaki ",{"type":20,"tag":131,"props":1195,"children":1197},{"className":1196},[],[1198],{"type":25,"value":1199},"\u003Cmeta name=\"viewport\">",{"type":25,"value":1201}," satırı da bu yüzden önemli. O satır olmazsa telefon tarayıcısı sayfayı geniş bir ekranmış gibi çizip küçültüyor ve media query beklediğiniz genişlikte çalışmıyor.",{"type":20,"tag":50,"props":1203,"children":1205},{"id":1204},"css-değişkenleri",[1206],{"type":25,"value":1207},"CSS değişkenleri",{"type":20,"tag":21,"props":1209,"children":1210},{},[1211,1217,1218,1224,1226,1232,1234,1240],{"type":20,"tag":131,"props":1212,"children":1214},{"className":1213},[],[1215],{"type":25,"value":1216},"--yazi",{"type":25,"value":152},{"type":20,"tag":131,"props":1219,"children":1221},{"className":1220},[],[1222],{"type":25,"value":1223},"--vurgu",{"type":25,"value":1225}," birer CSS değişkeni (custom property). ",{"type":20,"tag":131,"props":1227,"children":1229},{"className":1228},[],[1230],{"type":25,"value":1231},":root",{"type":25,"value":1233}," içinde bir kez tanımlanıp her yerde ",{"type":20,"tag":131,"props":1235,"children":1237},{"className":1236},[],[1238],{"type":25,"value":1239},"var(--yazi)",{"type":25,"value":1241}," ile kullanılıyor. Rengi değiştirmek için tek bir satırı düzenlemek yetiyor.",{"type":20,"tag":21,"props":1243,"children":1244},{},[1245,1247,1253],{"type":25,"value":1246},"Bu site de renklerini böyle tutuyor. ",{"type":20,"tag":131,"props":1248,"children":1250},{"className":1249},[],[1251],{"type":25,"value":1252},"assets/css/site.css",{"type":25,"value":1254}," dosyasının başından birkaç satır (kısaltılmış):",{"type":20,"tag":123,"props":1256,"children":1259},{"className":1257,"code":1258,"language":128,"meta":7},[126],":root {\n  --bg: #ffffff;\n  --bg-soft: #f4f4f5;\n  --text: #09090b;\n  --text-soft: #3f3f46;\n  --muted: #71717a;\n  --line: #e4e4e7;\n  --radius: 8px;\n}\n",[1260],{"type":20,"tag":131,"props":1261,"children":1262},{"__ignoreMap":7},[1263],{"type":25,"value":1258},{"type":20,"tag":21,"props":1265,"children":1266},{},[1267,1269,1275,1277,1283,1285,1291],{"type":25,"value":1268},"Sayfadaki her kenarlık ",{"type":20,"tag":131,"props":1270,"children":1272},{"className":1271},[],[1273],{"type":25,"value":1274},"var(--line)",{"type":25,"value":1276},", her ikincil metin ",{"type":20,"tag":131,"props":1278,"children":1280},{"className":1279},[],[1281],{"type":25,"value":1282},"var(--muted)",{"type":25,"value":1284}," kullanıyor. Sitenin henüz koyu teması yok. Eklendiğinde bu değişkenleri ",{"type":20,"tag":131,"props":1286,"children":1288},{"className":1287},[],[1289],{"type":25,"value":1290},"prefers-color-scheme: dark",{"type":25,"value":1292}," için bir media query içinde yeniden tanımlamak yetecek.",{"type":20,"tag":50,"props":1294,"children":1296},{"id":1295},"css3-diye-bir-şey-var-mı",[1297],{"type":25,"value":1298},"CSS3 diye bir şey var mı?",{"type":20,"tag":21,"props":1300,"children":1301},{},[1302,1304,1311],{"type":25,"value":1303},"CSS1, CSS2 ve CSS3 isimlerini çok duyacaksınız. MDN'in açıklamasına göre CSS 2.1'den sonra spesifikasyon tek parça olarak sürümlenmeyi bıraktı: her modül (renkler, Flexbox, Grid, seçiciler) kendi seviye numarasıyla ayrı ilerliyor, örneğin \"CSS Color Module Level 5\". W3C de dönem dönem hangi parçaların kararlı olduğunu gösteren bir \"CSS Snapshot\" yayımlıyor, en sonuncusu 2026 tarihli (",{"type":20,"tag":28,"props":1305,"children":1308},{"href":1306,"rel":1307},"https://www.w3.org/Style/CSS/",[65],[1309],{"type":25,"value":1310},"W3C, CSS",{"type":25,"value":1312},"). Yani CSS4 de olmayacak. Bugün yazılan her şey sadece \"CSS\".",{"type":20,"tag":21,"props":1314,"children":1315},{},[1316,1318,1325],{"type":25,"value":1317},"Tarihçeye bakınca: Håkon Wium Lie, CSS'in ilk taslağını (\"Cascading HTML Style Sheets\") Ekim 1994'te yayımladı. CSS level 1 Aralık 1996'da, CSS level 2 Mayıs 1998'de W3C önerisi (Recommendation) oldu (",{"type":20,"tag":28,"props":1319,"children":1322},{"href":1320,"rel":1321},"https://www.w3.org/Style/LieBos2e/history/",[65],[1323],{"type":25,"value":1324},"Lie ve Bos, Cascading Style Sheets kitabının 20. bölümü",{"type":25,"value":70},{"type":20,"tag":50,"props":1327,"children":1329},{"id":1328},"tailwind-ve-bootstrap-gibi-css-frameworkleri",[1330],{"type":25,"value":1331},"Tailwind ve Bootstrap gibi CSS framework'leri",{"type":20,"tag":21,"props":1333,"children":1334},{},[1335,1337,1343,1344,1350,1351,1357],{"type":25,"value":1336},"Tailwind ve Bootstrap, hazır sınıflarla CSS yazmayı hızlandıran kütüphaneler. Bootstrap hazır bileşenler (buton, menü, kart) veriyor. Tailwind ise ",{"type":20,"tag":131,"props":1338,"children":1340},{"className":1339},[],[1341],{"type":25,"value":1342},"p-4",{"type":25,"value":608},{"type":20,"tag":131,"props":1345,"children":1347},{"className":1346},[],[1348],{"type":25,"value":1349},"flex",{"type":25,"value":608},{"type":20,"tag":131,"props":1352,"children":1354},{"className":1353},[],[1355],{"type":25,"value":1356},"text-sm",{"type":25,"value":1358}," gibi her biri tek bir özellik ayarlayan küçük sınıflar, böylece stili doğrudan HTML'in içinde yazıyorsunuz.",{"type":20,"tag":21,"props":1360,"children":1361},{},[1362],{"type":25,"value":1363},"İkisi de sonunda CSS üretiyor. Cascade'i, kutu modelini ve Flexbox'ı bilmeden kullanınca bir şey bozulduğunda neden bozulduğunu anlamak zorlaşıyor. Önce düz CSS, sonra framework.",{"type":20,"tag":50,"props":1365,"children":1367},{"id":1366},"css-nasıl-öğrenilir",[1368],{"type":25,"value":1369},"CSS nasıl öğrenilir?",{"type":20,"tag":1371,"props":1372,"children":1373},"ol",{},[1374,1391,1396,1401,1406],{"type":20,"tag":81,"props":1375,"children":1376},{},[1377,1382,1384,1389],{"type":20,"tag":28,"props":1378,"children":1379},{"href":30},[1380],{"type":25,"value":1381},"HTML nedir",{"type":25,"value":1383}," yazısındaki sayfayı alın ve bir ",{"type":20,"tag":131,"props":1385,"children":1387},{"className":1386},[],[1388],{"type":25,"value":247},{"type":25,"value":1390}," bağlayın.",{"type":20,"tag":81,"props":1392,"children":1393},{},[1394],{"type":25,"value":1395},"Renk, yazı tipi, boşluk ile başlayın. Sonra kutu modeli.",{"type":20,"tag":81,"props":1397,"children":1398},{},[1399],{"type":25,"value":1400},"Chrome DevTools'ta (sağ tık, \"İncele\") bir elementi seçin. \"Styles\" panelinde hangi kuralın kazandığı, hangisinin üstünün çizildiği görünüyor. Cascade'i anlamanın en hızlı yolu bu.",{"type":20,"tag":81,"props":1402,"children":1403},{},[1404],{"type":25,"value":1405},"Flexbox ile bir menü, Grid ile bir kart ızgarası yapın.",{"type":20,"tag":81,"props":1407,"children":1408},{},[1409],{"type":25,"value":1410},"Sayfayı telefon genişliğinde açıp media query ekleyin.",{"type":20,"tag":21,"props":1412,"children":1413},{},[1414,1420,1422,1428,1430,1436],{"type":20,"tag":28,"props":1415,"children":1417},{"href":63,"rel":1416},[65],[1418],{"type":25,"value":1419},"MDN'in CSS rehberleri",{"type":25,"value":1421}," her özellik için tarayıcı desteği tablosunu da veriyor. Sonraki adım, sayfaya davranış eklemek: ",{"type":20,"tag":28,"props":1423,"children":1425},{"href":1424},"/posts/javascript-nedir",[1426],{"type":25,"value":1427},"JavaScript nedir",{"type":25,"value":1429},". Frontend'in bir uygulamada nereye oturduğunu ",{"type":20,"tag":28,"props":1431,"children":1433},{"href":1432},"/posts/full-stack-developer-nedir",[1434],{"type":25,"value":1435},"full stack developer nedir",{"type":25,"value":1437}," yazısında anlattım.",{"type":20,"tag":50,"props":1439,"children":1441},{"id":1440},"sık-sorulan-sorular",[1442],{"type":25,"value":1443},"Sık sorulan sorular",{"type":20,"tag":1445,"props":1446,"children":1448},"h3",{"id":1447},"css-ne-demek-açılımı-ne",[1449],{"type":25,"value":1450},"CSS ne demek, açılımı ne?",{"type":20,"tag":21,"props":1452,"children":1453},{},[1454],{"type":25,"value":1455},"CSS, Cascading Style Sheets'in kısaltması. Türkçesi \"basamaklı stil sayfaları\". \"Basamaklı\" kısmı, aynı elemente uyan birden fazla kuraldan hangisinin uygulanacağını belirleyen sistemden geliyor.",{"type":20,"tag":1445,"props":1457,"children":1459},{"id":1458},"css-bir-programlama-dili-mi",[1460],{"type":25,"value":1461},"CSS bir programlama dili mi?",{"type":20,"tag":21,"props":1463,"children":1464},{},[1465,1467,1473],{"type":25,"value":1466},"Genelde programlama dili sayılmıyor, bir stil dili. Döngü ya da fonksiyon tanımlayamıyorsunuz. Yine de ",{"type":20,"tag":131,"props":1468,"children":1470},{"className":1469},[],[1471],{"type":25,"value":1472},"calc()",{"type":25,"value":1474},", değişkenler ve media query'ler gibi hesap ve koşul içeren özellikleri var.",{"type":20,"tag":1445,"props":1476,"children":1478},{"id":1477},"html-ve-css-arasındaki-fark-nedir",[1479],{"type":25,"value":1480},"HTML ve CSS arasındaki fark nedir?",{"type":20,"tag":21,"props":1482,"children":1483},{},[1484],{"type":25,"value":1485},"HTML içeriği ve yapıyı, CSS görünümü belirliyor. \"Bu bir başlık\" HTML'in işi, \"başlık 32 piksel ve kalın\" CSS'in işi.",{"type":20,"tag":1445,"props":1487,"children":1489},{"id":1488},"css-dosyası-nasıl-oluşturulur",[1490],{"type":25,"value":1491},"CSS dosyası nasıl oluşturulur?",{"type":20,"tag":21,"props":1493,"children":1494},{},[1495,1497,1503,1505,1511,1513,1519],{"type":25,"value":1496},"Bir metin editöründe uzantısı ",{"type":20,"tag":131,"props":1498,"children":1500},{"className":1499},[],[1501],{"type":25,"value":1502},".css",{"type":25,"value":1504}," olan bir dosya açıp kuralları yazıyorsunuz. Sonra HTML'in ",{"type":20,"tag":131,"props":1506,"children":1508},{"className":1507},[],[1509],{"type":25,"value":1510},"\u003Chead>",{"type":25,"value":1512}," bölümüne ",{"type":20,"tag":131,"props":1514,"children":1516},{"className":1515},[],[1517],{"type":25,"value":1518},"\u003Clink rel=\"stylesheet\" href=\"stil.css\">",{"type":25,"value":1520}," ekleyerek sayfaya bağlıyorsunuz.",{"type":20,"tag":1445,"props":1522,"children":1524},{"id":1523},"class-ile-id-arasındaki-fark-nedir",[1525],{"type":25,"value":1526},"class ile id arasındaki fark nedir?",{"type":20,"tag":21,"props":1528,"children":1529},{},[1530,1532,1538,1540,1546],{"type":25,"value":1531},"Bir ",{"type":20,"tag":131,"props":1533,"children":1535},{"className":1534},[],[1536],{"type":25,"value":1537},"class",{"type":25,"value":1539}," birden çok elementte kullanılabiliyor, bir ",{"type":20,"tag":131,"props":1541,"children":1543},{"className":1542},[],[1544],{"type":25,"value":1545},"id",{"type":25,"value":1547}," sayfada tek olmalı. CSS'te id seçicisinin özgüllüğü sınıfınkinden yüksek olduğu için stil vermekte genelde sınıf kullanılıyor.",{"type":20,"tag":1445,"props":1549,"children":1551},{"id":1550},"css-öğrenmek-zor-mu",[1552],{"type":25,"value":1553},"CSS öğrenmek zor mu?",{"type":20,"tag":21,"props":1555,"children":1556},{},[1557],{"type":25,"value":1558},"Temel özellikler kısa sürede oturuyor. Zorlaşan kısım, büyüyen bir projede kuralların birbirini ezmesi ve farklı ekran genişliklerinde yerleşimin bozulmaması. Bunlar cascade ve kutu modelini iyi anlayınca ve pratikle kolaylaşıyor.",{"type":20,"tag":1445,"props":1560,"children":1562},{"id":1561},"flexbox-mı-grid-mi-kullanmalıyım",[1563],{"type":25,"value":1564},"Flexbox mı Grid mi kullanmalıyım?",{"type":20,"tag":21,"props":1566,"children":1567},{},[1568],{"type":25,"value":1569},"Tek satır ya da tek sütun dizilimde Flexbox, satır ve sütunları olan düzenlerde Grid. Çoğu sayfada ikisi birlikte kullanılıyor: sayfanın iskeleti Grid, iskeletin içindeki küçük parçalar Flexbox.",{"title":7,"searchDepth":1571,"depth":1571,"links":1572},2,[1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586],{"id":52,"depth":1571,"text":55},{"id":98,"depth":1571,"text":101},{"id":178,"depth":1571,"text":181},{"id":213,"depth":1571,"text":216},{"id":299,"depth":1571,"text":302},{"id":588,"depth":1571,"text":591},{"id":840,"depth":1571,"text":843},{"id":1080,"depth":1571,"text":1083},{"id":1142,"depth":1571,"text":1145},{"id":1204,"depth":1571,"text":1207},{"id":1295,"depth":1571,"text":1298},{"id":1328,"depth":1571,"text":1331},{"id":1366,"depth":1571,"text":1369},{"id":1440,"depth":1571,"text":1443,"children":1587},[1588,1590,1591,1592,1593,1594,1595],{"id":1447,"depth":1589,"text":1450},3,{"id":1458,"depth":1589,"text":1461},{"id":1477,"depth":1589,"text":1480},{"id":1488,"depth":1589,"text":1491},{"id":1523,"depth":1589,"text":1526},{"id":1550,"depth":1589,"text":1553},{"id":1561,"depth":1589,"text":1564},"markdown","content:posts:css-nedir.md","content","posts/css-nedir.md","md",{"loc":4},[1603,1607,1610,1613,1617,1621,1625,1629,1634,1638,1643,1647,1651,1655,1659,1663,1667,1671,1676,1680,1685,1689,1693,1697,1701,1705,1709,1712,1716,1720,1724,1728,1732,1736,1740,1744,1748,1752,1756,1760,1764,1769,1774,1779,1783],{"_path":1604,"title":1605,"thumbnail":1606,"date":12,"lang":14},"/posts/cursor-nedir","Cursor nedir? Grok Build'e dönüşen yapay zekâ kod editörü ve Claude Code ile farkı","/media/cursor-nedir/thumbnail.jpg",{"_path":30,"title":1608,"thumbnail":1609,"date":12,"lang":14},"HTML nedir? Etiketler, sayfa yapısı ve ilk HTML sayfanız","/media/html-nedir/thumbnail.jpg",{"_path":1424,"title":1611,"thumbnail":1612,"date":12,"lang":14},"JavaScript nedir? Ne işe yarar, nerede çalışır, nasıl öğrenilir?","/media/javascript-nedir/thumbnail.jpg",{"_path":1614,"title":1615,"thumbnail":1616,"date":12,"lang":14},"/posts/kodlama-nedir","Kodlama nedir? Programlama dilleri ve ilk dil seçimi","/media/kodlama-nedir/thumbnail.jpg",{"_path":1618,"title":1619,"thumbnail":1620,"date":12,"lang":14},"/posts/next-js-nedir","Next.js nedir? React ile farkı, App Router ve ilk proje","/media/next-js-nedir/thumbnail.jpg",{"_path":1622,"title":1623,"thumbnail":1624,"date":12,"lang":14},"/posts/sql-nedir","SQL nedir? Temel komutlar, JOIN ve PostgreSQL ile ilk sorgular","/media/sql-nedir/thumbnail.jpg",{"_path":1626,"title":1627,"thumbnail":1628,"date":12,"lang":14},"/posts/yazilim-nedir","Yazılım nedir? Türleri, nasıl çalıştığı ve nasıl yapıldığı","/media/yazilim-nedir/thumbnail.jpg",{"_path":1630,"title":1631,"thumbnail":1632,"date":1633,"lang":14},"/posts/linux-nedir","Linux nedir? Çekirdek, dağıtımlar, Ubuntu ve temel komutlar","/media/linux-nedir/thumbnail.jpg","2026-11-30",{"_path":1635,"title":1636,"thumbnail":1637,"date":1633,"lang":14},"/posts/mcp-nedir","MCP nedir? Model Context Protocol nasıl çalışır ve Claude Code'a nasıl eklenir?","/media/mcp-nedir/thumbnail.jpg",{"_path":1639,"title":1640,"thumbnail":1641,"date":1642,"lang":14},"/posts/acik-kaynak-nedir","Açık kaynak nedir? Açık kaynak kodlu yazılımlar ve lisansları","/media/acik-kaynak-nedir/mit-lisansi.jpg","2026-11-28",{"_path":1644,"title":1645,"thumbnail":1646,"date":1642},"/posts/build-in-public","Building in public as a developer: what I share and what I keep","/media/build-in-public/thumbnail.jpg",{"_path":1648,"title":1649,"thumbnail":1650,"date":1642},"/posts/developer-portfolio","What goes in a developer portfolio: how I built mine in two parts","/media/developer-portfolio/thumbnail.jpg",{"_path":1652,"title":1653,"thumbnail":1654,"date":1642,"lang":14},"/posts/github-nedir","GitHub nedir, ne işe yarar? Git ile farkı ve ilk repo","/media/github-nedir/thumbnail.jpg",{"_path":1656,"title":1657,"thumbnail":1658,"date":1642},"/posts/how-to-build-a-chrome-extension","How to build a Chrome extension, from manifest to Web Store listing","/media/how-to-build-a-chrome-extension/thumbnail.jpg",{"_path":1660,"title":1661,"thumbnail":1662,"date":1642,"lang":14},"/posts/kisisel-web-sitesi","Kişisel web sitesi nasıl yapılır? Kendi sitemden adım adım","/media/kisisel-web-sitesi/thumbnail.jpg",{"_path":1664,"title":1665,"thumbnail":1666,"date":1642,"lang":14},"/posts/vibe-coding-nedir","Vibe coding nedir? Yapay zekâya kod yazdırmanın sınırları","/media/running-claude-code-on-a-server-in-parallel/thumbnail.jpg",{"_path":1668,"title":1669,"thumbnail":1670,"date":1642,"lang":14},"/posts/yazilim-gelistirici-ne-is-yapar","Yazılım geliştirici nedir, iş gününde neler yapar?","/media/cloudflare-turnstile-nestjs/thumbnail.png",{"_path":1672,"title":1673,"thumbnail":1674,"date":1675},"/posts/github-fake-team-scam","GitHub scam: my face is selling a product I never touched","/media/github-fake-team-scam/thumbnail.jpg","2026-11-25",{"_path":1677,"title":1678,"thumbnail":1670,"date":1679},"/posts/cloudflare-turnstile-nestjs","Adding Cloudflare Turnstile to NestJS with a captcha guard","2026-11-24",{"_path":1681,"title":1682,"thumbnail":1683,"date":1684,"lang":14},"/posts/api-nedir","API nedir? REST API, HTTP istekleri ve durum kodları","/media/api-nedir/thumbnail.jpg","2026-11-21",{"_path":1686,"title":1687,"thumbnail":1688,"date":1684,"lang":14},"/posts/backend-nedir","Backend nedir, backend developer ne iş yapar? Frontend ile farkı","/media/backend-nedir/thumbnail.jpg",{"_path":1690,"title":1691,"thumbnail":1692,"date":1684,"lang":14},"/posts/bursa-gunubirlik-gezi-mudanya-koza-han-golyazi","Bursa günübirlik gezi: Mudanya, Koza Han, İskender ve Gölyazı","/media/a-short-trip-to-bursa/2.jpeg",{"_path":1694,"title":1695,"thumbnail":1696,"date":1684},"/posts/claude-code-headless","Claude Code headless mode: claude -p in scripts, CI and GitHub Actions","/media/claude-code-headless/thumbnail.jpg",{"_path":1698,"title":1699,"thumbnail":1700,"date":1684,"lang":14},"/posts/claude-code-nedir","Claude Code nedir, nasıl kurulur ve kullanılır?","/media/claude-code-nedir/thumbnail.jpg",{"_path":1702,"title":1703,"thumbnail":1704,"date":1684},"/posts/claude-code-skills","Claude Code skills: what they are and how to write one","/media/claude-code-skills/thumbnail.jpg",{"_path":1706,"title":1707,"thumbnail":1708,"date":1684,"lang":14},"/posts/docker-nedir","Docker nedir? Image, container, kurulum ve Docker Compose","/media/docker-nedir/thumbnail.jpg",{"_path":1432,"title":1710,"thumbnail":1711,"date":1684,"lang":14},"Full stack developer nedir, ne iş yapar, nasıl olunur?","/media/full-stack-developer-nedir/thumbnail.jpg",{"_path":1713,"title":1714,"thumbnail":1715,"date":1684,"lang":14},"/posts/istanbul-yazilim-sirketleri","İstanbul yazılım şirketleri: nasıl seçilir ve kimler var? (2026)","/media/istanbul-yazilim-sirketleri/thumbnail.jpg",{"_path":1717,"title":1718,"thumbnail":1719,"date":1684},"/posts/nestjs-vs-express","NestJS vs Express: the same endpoint in both, and when to pick which","/media/nestjs-vs-express/thumbnail.jpg",{"_path":1721,"title":1722,"thumbnail":1723,"date":1684,"lang":14},"/posts/node-js-nedir","Node.js nedir? Event loop, npm ve ilk HTTP sunucusu","/media/node-js-nedir/thumbnail.jpg",{"_path":1725,"title":1726,"thumbnail":1727,"date":1684},"/posts/nuxt-seo","Nuxt SEO: the setup I use on this site, with the real config","/media/nuxt-seo/thumbnail.jpg",{"_path":1729,"title":1730,"thumbnail":1731,"date":1684},"/posts/nuxt-vs-next","Nuxt vs Next: an honest comparison from someone who ships Nuxt","/media/nuxt-vs-next/thumbnail.jpg",{"_path":1733,"title":1734,"thumbnail":1735,"date":1684,"lang":14},"/posts/prometheus-grafana-nedir","Prometheus nedir, Grafana nedir? node_exporter ile sunucu izleme","/media/prometheus-grafana-nedir/thumbnail.jpg",{"_path":1737,"title":1738,"thumbnail":1739,"date":1684},"/posts/teleparty-alternative","Teleparty alternative: free ways to watch together online","/media/teleparty-alternative/thumbnail.jpg",{"_path":1741,"title":1742,"thumbnail":1743,"date":1684,"lang":14},"/posts/typescript-nedir","TypeScript nedir? JavaScript'e ne ekler, tsconfig nasıl ayarlanır?","/media/typescript-nedir/thumbnail.jpg",{"_path":1745,"title":1746,"thumbnail":1747,"date":1684,"lang":14},"/posts/yazilimci-maaslari-2026","Yazılımcı ve yazılım mühendisi maaşları 2026: kıdem, pozisyon, şehir","/media/yazilimci-maaslari-2026/thumbnail.jpg",{"_path":1749,"title":1750,"thumbnail":1751,"date":1684,"lang":14},"/posts/yazilimci-nasil-olunur","Yazılımcı nasıl olunur? Yazılım öğrenmek için pratik bir yol","/media/yazilimci-nasil-olunur/thumbnail.jpg",{"_path":1753,"title":1754,"thumbnail":1666,"date":1755},"/posts/running-claude-code-on-a-server-in-parallel","How I run multiple Claude Code agents in parallel on a server","2026-11-18",{"_path":1757,"title":1758,"thumbnail":1759,"date":1755},"/posts/small-web-tools-json-to-excel-steam-deck-watchbear","Small web tools I made: JSON to Excel, Steam Deck web apps, Watchbear","/media/small-web-tools-json-to-excel-steam-deck-watchbear/thumbnail.jpg",{"_path":1761,"title":1762,"thumbnail":1763,"date":1755,"lang":14},"/posts/udf-dosyasi-nasil-acilir-pdf-word-cevirme","UDF dosyası nasıl açılır, PDF'ye ve Word'e nasıl çevrilir?","/media/udf-dosyasi-nasil-acilir-pdf-word-cevirme/thumbnail.jpg",{"_path":1765,"title":1766,"thumbnail":1767,"date":1768},"/posts/i-built-a-free-chrome-extension-to-watch-any-video-in-sync-with-friends","I built a free Chrome extension to watch any video in sync with friends","/media/i-built-a-free-chrome-extension-to-watch-any-video-in-sync-with-friends/thumbnail.jpg","2026-06-28",{"_path":1770,"title":1771,"thumbnail":1692,"date":1772,"lang":1773},"/posts/a-short-trip-to-bursa","A day trip to Bursa: Mudanya, Koza Han, Iskender and Gölyazı","2026-06-01","en",{"_path":1775,"title":1776,"thumbnail":1777,"date":1778},"/posts/embedding-metabase-dashboard-on-nuxt-app","Embedding a Metabase dashboard in a Nuxt 3 app","/media/embedding-metabase-dashboard-on-nuxt-app/thumbnail.png","2024-06-28",{"_path":1780,"title":1781,"thumbnail":1782,"date":1778},"/posts/grafana-deep-dive","Grafana Docker Compose setup with Prometheus and node_exporter","/media/grafana-deep-dive/thumbnail.png",{"_path":1784,"title":1785,"thumbnail":1786,"date":1787},"/posts/deploy-express-app-on-vercel","Deploying an Express.js application on Vercel","/thumbnails/express-app.jpg","2023-11-06",null,1796091101693]