Skip to content

Instantly share code, notes, and snippets.

View EkremGungormez's full-sized avatar

Ekrem Gungormez EkremGungormez

View GitHub Profile
<style type="text/CSS">
h1{font-weight : bold ; color:red;}
</style>
@EkremGungormez
EkremGungormez / gist:1886018
Created February 22, 2012 16:58
find id quickly
1. #dvMain{margin: 10px auto; width:980px;}
2. div#dvMain{margin: 10px auto; width:980px;}
@EkremGungormez
EkremGungormez / gist:1892364
Created February 23, 2012 11:05
nested list
<style type="text/css">
.foo1 {counter-reset: foo1;}
.foo1 li {list-style-type: none;}
.foo1 li::before {counter-increment: foo1;content: "1." counter(foo1) " ";}
</style>
<ol class=” foo1”>
<li>Kahve</li>
<li>Çay</li>
<li>Süt</li>
</ol>
@EkremGungormez
EkremGungormez / gist:1892372
Created February 23, 2012 11:06
nested list new class
.foo2 li::before {counter-increment: foo2;content: "1.1." counter(foo2) " ";}
@EkremGungormez
EkremGungormez / gist:1892381
Created February 23, 2012 11:07
adding text before list
ol.AnaListe
{
list-style-type:none; /* default sayacı siler */
counter-reset:elementcounter; /* Değeri 0 olan yeni bir sayaç oluşturur*/
}
ol.AnaListe > li:before
{
content: "MADDE - " counter(elementcounter) " - "; /* Listedeki elemanın numarasıyla birlikte “MADDE - “ yazar” */
counter-increment:elementcounter; /* sayacın arttırılması*/
}
@EkremGungormez
EkremGungormez / gist:1892424
Created February 23, 2012 11:18
nested list en
<style type="text/css">
.foo1 {counter-reset: foo1;}
.foo1 li {list-style-type: none;}
.foo1 li::before {counter-increment: foo1;content: "1." counter(foo1) " ";}
</style>
<ol class=” foo1”>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
@EkremGungormez
EkremGungormez / gist:1892425
Created February 23, 2012 11:18
nested list new class en
.foo2 li::before {counter-increment: foo1;content: "1.1." counter(foo2) " ";}
@EkremGungormez
EkremGungormez / gist:1892430
Created February 23, 2012 11:19
adding text before list en
.MainList{
list-style-type:none; /* delete default counter */
counter-reset:elementcounter; /* create custom counter and set it to 0 */
}
.MainList > li:before{
content: "Element" counter(elementcounter) " - "; /* print out "Element " followed by the current counter value */
counter-increment:elementcounter; /* increment counter */
}
@EkremGungormez
EkremGungormez / JSApi
Created March 9, 2012 14:54
Simple Javascript Application
<head>
<script src="../../Scripts/jquery-1.5.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-ui-1.8.11.js" type="text/javascript"></script>
<link href="../../Content/themes/base/jquery.ui.all.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h2>
Member Informations</h2>
@using (Html.BeginForm())
{
INSERT INTO Counties(id,city_id,name) VALUES
(1, 1, 'MERKEZ'),
(2, 1, 'ALADAG'),
(3, 1, 'CEYHAN'),
(4, 1, 'FEKE'),
(5, 1, 'IMAMOGLU'),
(6, 1, 'KARAISALI'),
(7, 1, 'KARATAS'),
(8, 1, 'KOZAN'),
(9, 1, 'POZANTI'),