<?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>Thomas Horster &#187; inline styles</title> <atom:link href="http://tom.kulturlounge.de/blog/tag/inline-styles/feed/" rel="self" type="application/rss+xml" /><link>http://tom.kulturlounge.de/blog</link> <description>eat the cookie before the cookie eats you</description> <lastBuildDate>Mon, 22 Aug 2011 20:24:40 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>Wie man inline styles in CSS überschreiben kann</title><link>http://tom.kulturlounge.de/blog/2009/05/10/wie-man-inline-styles-in-css-uberschreiben-kann/</link> <comments>http://tom.kulturlounge.de/blog/2009/05/10/wie-man-inline-styles-in-css-uberschreiben-kann/#comments</comments> <pubDate>Sun, 10 May 2009 10:33:52 +0000</pubDate> <dc:creator>Tom</dc:creator> <category><![CDATA[coding]]></category> <category><![CDATA[webdesign]]></category> <category><![CDATA[WTF]]></category> <category><![CDATA[css]]></category> <category><![CDATA[inline styles]]></category><guid isPermaLink="false">http://tom.kulturlounge.de/blog/?p=646</guid> <description><![CDATA[Wenn man inline Styles überschreiben, macht man das mit !important, will man aber nur inline gestylte Tags in CSS im Webdesign überschreiben, gibt es keine andere Möglichkeit, als diese styles direkt anzupassen? Falsch! Eine weitere Möglichkeit ist mit Hilfe des &#8230; <a href="http://tom.kulturlounge.de/blog/2009/05/10/wie-man-inline-styles-in-css-uberschreiben-kann/">Weiterlesen <span class="meta-nav">&#8594;</span></a>Verwandte Artikel:<ol><li><a href='http://tom.kulturlounge.de/blog/2007/10/09/flex-3-beta-2-ist-drausen/' rel='bookmark' title='Flex 3 Beta 2 ist draußen'>Flex 3 Beta 2 ist draußen</a></li><li><a href='http://tom.kulturlounge.de/blog/2007/10/21/adobe-thermo/' rel='bookmark' title='Adobe Thermo'>Adobe Thermo</a></li><li><a href='http://tom.kulturlounge.de/blog/2010/05/14/facebook-secrets-what-you-where-afraid-to-ask/' rel='bookmark' title='Facebook secrets &#8211; what you where afraid to ask'>Facebook secrets &#8211; what you where afraid to ask</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Wenn man inline Styles überschreiben, macht man das mit !important, will man aber <strong>nur inline gestylte Tags in CSS im Webdesign</strong> überschreiben, gibt es keine andere Möglichkeit, als diese styles direkt anzupassen? <strong>Falsch!</strong><br /> Eine weitere Möglichkeit ist mit Hilfe des <strong>[style] Keywords</strong> innerhalb eines Scriptblockes oder einer externen CSS nur diese Tags mit inline Styles anzusprechen.</p><p>Ein Beispiel :</p><pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;showMe&quot;&gt;
&lt;span style=&quot;font-weight: bold; color: #ff0000;&quot;&gt;Hello World - wird gestyled&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;showMe&quot;&gt;
&lt;span&gt;Hello World - wird nicht gestyled&lt;/span&gt;
&lt;/div&gt;
</pre><pre class="brush: css; title: ; notranslate">
.showMe span[style]{font-weight: normal !important;color: #0000ff !important;}
</pre><p>Wie das immer so ist und wie man sich wahrscheinlich aufgrund <strong>des [style] im Selektor</strong> denken konnte, funktioniert dies <strong>nicht im IE6, aber im IE7 &amp; IE8 sowie allen modernen Browsern</strong>.<br /> Natürlich bleibt die Frage, wann man so etwas sinnvoll anwenden kann, da man inline styles generell vermeiden<br /> sollte, aber es kann mit Sicherheit nicht schaden, so etwas zu wissen.</p><p>Seeing is believing, daher gibt es hier ein kleines <a title="Wie man inline styles in CSS überschreiben kann" href="http://tom.kulturlounge.de/blog/wp-content/uploads/2009/05/index.html" target="_blank">Showcase</a>.</p><p>[gefunden bei <a title="Webdesign &amp; Coding Blog" href="http://www.sohtanaka.com/web-design/how-to-override-inline-styles/">SOTAHNAKA</a>]</p><p>Verwandte Artikel:<ol><li><a href='http://tom.kulturlounge.de/blog/2007/10/09/flex-3-beta-2-ist-drausen/' rel='bookmark' title='Flex 3 Beta 2 ist draußen'>Flex 3 Beta 2 ist draußen</a></li><li><a href='http://tom.kulturlounge.de/blog/2007/10/21/adobe-thermo/' rel='bookmark' title='Adobe Thermo'>Adobe Thermo</a></li><li><a href='http://tom.kulturlounge.de/blog/2010/05/14/facebook-secrets-what-you-where-afraid-to-ask/' rel='bookmark' title='Facebook secrets &#8211; what you where afraid to ask'>Facebook secrets &#8211; what you where afraid to ask</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://tom.kulturlounge.de/blog/2009/05/10/wie-man-inline-styles-in-css-uberschreiben-kann/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/20 queries in 0.026 seconds using disk: basic
Object Caching 468/477 objects using disk: basic

Served from: tom.kulturlounge.de @ 2012-02-07 15:16:37 -->
