<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MS-potilas &#187; bullet</title>
	<atom:link href="http://hamppu.net/mspotilas/tag/bullet/feed/" rel="self" type="application/rss+xml" />
	<link>http://hamppu.net/mspotilas</link>
	<description>Kannabiksen lääkekäyttäjä</description>
	<lastBuildDate>Mon, 27 May 2019 14:47:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress: Default-teema ja näkymättömät luetelma&#173;merkit Internet Explorerissa</title>
		<link>http://hamppu.net/mspotilas/2008/08/30/wordpress-default-teema-ja-nakymattomat-luetelmamerkit-bullet-internet-explorerissa/</link>
		<comments>http://hamppu.net/mspotilas/2008/08/30/wordpress-default-teema-ja-nakymattomat-luetelmamerkit-bullet-internet-explorerissa/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 11:43:00 +0000</pubDate>
		<dc:creator>MS-potilas</dc:creator>
				<category><![CDATA[WordPressin räätälöinti]]></category>
		<category><![CDATA[bullet]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[default]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[kubrick]]></category>
		<category><![CDATA[luetelmamerkki]]></category>
		<category><![CDATA[style.css]]></category>
		<category><![CDATA[teema]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://hamppu.net/mspotilas/?p=119</guid>
		<description><![CDATA[WordPressin oletus- eli default-teemassa (ns. Kubrick-teema) luetelmamerkit (bullet-merkit eli luetelmapallot   ) on tyylitelty css-tiedostossa sellaisia valitsimia käyttäen, jotka eivät toimi Internet Explorerissa.
Esimerkki luettelosta luetelmamerkkeineen:

asia numero yksi
toinen juttu
kolmas listan asia

Merkintöjen luetelmamerkit määritellään default-tyylin (muokkaa&#173;mattomassa) style.css-tiedostossa seuraavasti:

html&#62;body .entry ul &#123;
	margin-left: 0px;
	padding: 0 0 0 30px;
	list-style: none;
	padding-left: 10px;
	text-indent: -10px;
	&#125;
&#160;
- - -
&#160;
.entry ul li:before, #sidebar ul ul [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressin oletus- eli default-teemassa (ns. Kubrick-teema) <a href="http://fi.wikipedia.org/wiki/Luetelmamerkki" title="Wikipedian artikkeli luetelmamerkeistä">luetelmamerkit</a> (bullet-merkit eli luetelmapallot <img src='http://hamppu.net/mspotilas/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ) on tyylitelty css-tiedostossa sellaisia valitsimia käyttäen, jotka eivät toimi Internet Explorerissa.</p>
<p>Esimerkki luettelosta luetelmamerkkeineen:</p>
<ul>
<li>asia numero yksi</li>
<li>toinen juttu</li>
<li>kolmas listan asia</li>
</ul>
<p>Merkintöjen luetelmamerkit määritellään default-tyylin (muokkaa&shy;mattomassa) style.css-tiedostossa seuraavasti:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">&gt;</span>body <span style="color: #6666ff;">.entry</span> ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
&nbsp;
- - -
&nbsp;
<span style="color: #6666ff;">.entry</span> ul li<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#sidebar</span> ul ul li<span style="color: #3333ff;">:before </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\0</span>0BB <span style="color: #000099; font-weight: bold;">\0</span>020&quot;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>IE tukehtuu :before-valitsimeen ja luetelmamerkit jäävät ainakin uudemmilla versioilla kokonaan näyttämättä, vaikka css-tiedostosta tämä optimistinen lausunto löytyykin:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Begin Lists
&nbsp;
	Special stylized non-IE bullets
	Do not work in Internet Explorer, which merely default to normal bullets. */</span></pre></div></div>

<p>Koska käytän itse pääosin Linuxia ja Firefox-selainta enkä luonnollisestikaan voinut arvata, että  WordPressin oletusteemassa voisi olla tällainen &#8221;ominaisuus&#8221;, olin käyttänyt merkinnöissä luetteloita ja luetelmamerkkejä jo monessa paikkaa. <a href="http://hamppu.net/mspotilas/?p=116" title='Lue merkintä "Kannabista käyttäviä MS-potilaita"'>Potilas&shy;kertomus&shy;merkintää</a> kasatessani tulin testanneeksi blogia hieman enemmän myös Internet Explorerilla (toki aluksi olin testannut, mutta silloin merkintöjä ja luetelmamerkkejä ei vielä juurikaan ollut) ja huomasin tämän ongelman.</p>
<p>Yritin etsiä netistä ratkaisua, jolla nämä &#8221;bulletit&#8221; saisi näkymään kaikilla yleisimmillä selaimilla. Yllättävää kyllä, vaikka ongelma on jo ainakin yli vuoden vanha ja ollut olemassa WordPressin 2.0 -versiosta lähtien, ei siihen vieläkään löytynyt itseäni tyydyttävää ratkaisua. Joten sellainen piti itse tehdä.</p>
<p><strong>Oletusluetelmamerkit merkintöihin</strong></p>
<p>Ratkaisussani sivupalkin bulletit saivat jäädä ennalleen. Näin ollen ne näkyvät oikein mm. Firefoxilla ja silti Internet Explorerillakin sivupalkki on siisti, vaikkakin ilman tyyliteltyjä »-merkkejä. Merkinnöissä olevat luetelmamerkit muutetaan tyylitellystä »-merkistä oletusmerkkiin •.</p>
<p>Avaa (esimerkiksi teemojen muokkauksen kautta) tiedosto ./wp-content/themes/default/style.css ja etsi kohta:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html<span style="color: #00AA00;">&gt;</span>body <span style="color: #6666ff;">.entry</span> ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Korvaa se seuraavalla:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.entry</span> ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Etsi:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.entry</span> ul li<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#sidebar</span> ul ul li<span style="color: #3333ff;">:before </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\0</span>0BB <span style="color: #000099; font-weight: bold;">\0</span>020&quot;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>ja korvaa seuraavalla:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#sidebar</span> ul ul li<span style="color: #3333ff;">:before </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\0</span>0BB <span style="color: #000099; font-weight: bold;">\0</span>020&quot;</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Päivitä tiedosto muutoksien jälkeen palvelimelle.</p>
<p>Pahoittelen blogini luettelojen aiempaa mahdollista huonoa luettavuutta Internet Explorer -selaimilla. <img src='http://hamppu.net/mspotilas/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Nyt luettelot ovat siistit luetelmamerkkeineen.</p>
]]></content:encoded>
			<wfw:commentRss>http://hamppu.net/mspotilas/2008/08/30/wordpress-default-teema-ja-nakymattomat-luetelmamerkit-bullet-internet-explorerissa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
