<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged add-class</title>
<link>https://www.question2answer.org/qa/tag/add-class</link>
<description>Powered by Question2Answer</description>
<item>
<title>search field focus style class</title>
<link>https://www.question2answer.org/qa/42643/search-field-focus-style-class</link>
<description>hi&lt;br /&gt;
&lt;br /&gt;
i found qa-search-field but icant found focus class in style file!&lt;br /&gt;
&lt;br /&gt;
plz help</description>
<category>Themes</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/42643/search-field-focus-style-class</guid>
<pubDate>Sat, 03 Jan 2015 16:19:41 +0000</pubDate>
</item>
<item>
<title>How to add a CSS class to the existing button CSS classes</title>
<link>https://www.question2answer.org/qa/41957/how-to-add-a-css-class-to-the-existing-button-css-classes</link>
<description>

&lt;p&gt;
	I need to add a third CSS class to my button.&lt;/p&gt;


&lt;p&gt;
	I tried creating a button with:&lt;/p&gt;


&lt;p&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $this-&amp;gt;content['q_view']['form']['buttons']['mycustombtn'] = array(
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;'tags' =&amp;gt; 'class=&quot;my-custom-class',
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;'label' =&amp;gt; 'stuff here'
&lt;br&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; );
&lt;br&gt;
	
&lt;br&gt;
	but the result is that the &lt;strong&gt;class attribute&lt;/strong&gt; appears twice in the output:&lt;/p&gt;


&lt;p&gt;
	Like:&lt;/p&gt;


&lt;pre id=&quot;line1&quot;&gt;
&lt;span&gt;&amp;lt;&lt;span class=&quot;start-tag&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;attribute-name&quot;&gt;class&lt;/span&gt;=&quot;my-custom-class&quot; ... type=&quot;submit&quot; &lt;span&gt;&lt;span class=&quot;attribute-name error&quot; title=&quot;Duplicate attribute.&quot;&gt;class&lt;/span&gt;=&quot;&lt;a class=&quot;attribute-value&quot;&gt;qa-form-light-button qa-form-light-button-mycustombtn&lt;/a&gt;&quot;&lt;/span&gt; /&amp;gt;&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;
	&lt;span&gt;Don't tell me I have to declare the class name with the name of the array?!&lt;/span&gt;&lt;/p&gt;


&lt;p&gt;
	&lt;span&gt;Thanks for your tips :)&lt;/span&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/41957/how-to-add-a-css-class-to-the-existing-button-css-classes</guid>
<pubDate>Fri, 05 Dec 2014 05:53:36 +0000</pubDate>
</item>
</channel>
</rss>