vuistdiep in het post-pc tijdperk van Steve | Joepie joepie. Dat ging echt toppie! | https://www.wegmetbigtech.nl
http://jigsaw.w3.org/css-validator/
En waarom alfabetisch? Met ctrl-f is alles snel terug te vinden
Verwijderd
D200|F90x|Leica M6|Yashica T3|Hasselblad 503cx
Nikon: 12-24/4|17-35/2.8|10,5mm/2.8|30mm/1.4|50mm/1.4|85mm/1.8|SB-800|SB-24|SB-26|MC-36
Zeiss: 80mm/2.8 50mm/4 ZM: 35mm/2
When the going gets weird... the weird turn pro
Verwijderd
Ow? Wat is de juiste volgorde dan?Verwijderd schreef op maandag 13 juni 2005 @ 16:42:
Bovendien maakt de volgorde van je rules in CSS heel veel uit. Als je die alfabetiseert kun je compleet andere resultaten krijgen.
Dell Vostro 7620 / Intel Core i7 12700H / NVIDIA GeForce RTX 3050 Ti 4GB / 40GB DDR5RAM / Samsung 990 Pro 1TB / Dell WD22TB4 / 2x Dell G2724D / Dell Premier KM900 / Universal Audio Volt 1 / 2x KRK Rokit RP8 G4 / KRK S12.4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| tr * { background-color:#fff; } td { background-color:#eee; } is niet gelijk aan: td { background-color:#eee; } tr * { background-color:#fff; } |
Als ik me niet vergis.
"True skill is when luck becomes a habit"
SWIS
Verwijderd
1
2
3
4
5
6
| tr td { background-color:#fff; } td { background-color:#eee; } |
"wint" de eerste toch
http://www.w3.org/TR/CSS21/cascade.html#specificity
Het ount wat zowel blues aangaf als ultimateB in een verhelderend stukje was interresant (ik wist het niet, of iig, was me er niet van bewust). Echter zou ik dat het liefst gewoon willen proberen. Op deze manier zit er weinig lijn in mijn css, en alfabetiseren zou het al een stukje lgosciher maken (in mijn specifieke geval)
vuistdiep in het post-pc tijdperk van Steve | Joepie joepie. Dat ging echt toppie! | https://www.wegmetbigtech.nl
[pook]
zoiets:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title> CSS sorter </title>
<style type="text/css">
#output {
font:12px "courier new";
white-space:pre;
border:1px solid silver;
background:#fffff8;
padding:1em;
}
</style>
<script type="text/javascript">
/**
* Quick & Dirty CSS file sort
* -------------------------------
* Beware of specificity :X !!1one
* (c) 2005 Peter Nederlof, spam:
* http://www.xs4all.nl/~peterned/
*/
function parseCSSFile(frm) {
var file = frm.cssfile.value;
try { var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch(lazyException) { alert('sorry, IE only atm'); return; }
xmlhttp.open('get', file, false);
xmlhttp.send(null);
var output = document.getElementById('output');
output.innerHTML = '';
output.appendChild(
document.createTextNode(sortCSSFile(xmlhttp.responseText))
);
}
function sortCSSFile(input) {
var rules = [], sortReg = new RegExp().compile("^\\s+");
input.replace(/[^{]+\{[^}]+\}/mig, function($1){ rules.push($1); });
return rules.sort(function (a, b){
return a.replace(sortReg,'') > b.replace(sortReg,'')? 1:-1; }).join('');
}
</script>
</head>
<body>
<form method="post" action="#" onsubmit="parseCSSFile(this); return false;">
<input type="file" name="cssfile" />
<input type="submit" value="parse" />
</form>
<div id="output"></div>
</body>
</html> |
Instagram | Flickr | "Let my music become battle cries" - Frédéric Chopin
vuistdiep in het post-pc tijdperk van Steve | Joepie joepie. Dat ging echt toppie! | https://www.wegmetbigtech.nl