<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay 7.2 - Change CSS for Search Container</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=115063700" />
  <subtitle>Liferay 7.2 - Change CSS for Search Container</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=115063700</id>
  <updated>2026-04-06T07:49:33Z</updated>
  <dc:date>2026-04-06T07:49:33Z</dc:date>
  <entry>
    <title>RE: Liferay 7.2 - Change CSS for Search Container</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115072822" />
    <author>
      <name>Fabio Carvalho</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115072822</id>
    <updated>2019-09-03T09:40:44Z</updated>
    <published>2019-09-03T09:40:44Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi Mohammed&lt;strong&gt;,&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;br&gt;I was not able to change the background color of the td elements. I noticed that my main.scss was opening the text editor of my PC. I changed to main.css and the file is opening in the IDE now. Looks now that my css changes are taking effect, could be a problem loading the scss file? I have the following working on my css:&lt;br&gt;&lt;pre&gt;&lt;code&gt;.search-container thead {
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;display: none;
}

.search-container td {
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;border: none;
}

.search-container td:first-child {
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;width: 5%;
}

​​​​​​​.search-container td:last-child {
&amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;width: 95%;
}&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Fabio Carvalho</dc:creator>
    <dc:date>2019-09-03T09:40:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay 7.2 - Change CSS for Search Container</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115071594" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115071594</id>
    <updated>2019-09-03T07:07:14Z</updated>
    <published>2019-09-03T07:07:14Z</published>
    <summary type="html">HI,&lt;blockquote&gt; I am successfully hiding the thead of the Search Container, but for some reason I can&amp;#39;t change anything else. What would be the correct way to edit the appearance of the Search Container?&lt;/blockquote&gt;What exactly your not able to change ?</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2019-09-03T07:07:14Z</dc:date>
  </entry>
  <entry>
    <title>Liferay 7.2 - Change CSS for Search Container</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115063699" />
    <author>
      <name>Fabio Carvalho</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=115063699</id>
    <updated>2019-09-02T12:22:48Z</updated>
    <published>2019-09-02T12:22:48Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;&lt;br&gt;I have the following Search Container on my view.jsp:&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;liferay-portlet:renderurl varimpl="iteratorURL"&amp;gt;
&amp;amp;nbsp; &amp;amp;nbsp; &amp;lt;portlet:param name="mvcPath" value="view.jsp" /&amp;gt;
&amp;lt;/liferay-portlet:renderurl&amp;gt;

&amp;amp;lt;% List&amp;lt;myobject&amp;gt; myObjects = (List&amp;lt;myobject&amp;gt;) request.getAttribute("objects-list"); %&amp;amp;gt;
&amp;lt;liferay-ui:search-container cssclass="search-container" delta="10" deltaconfigurable="true" emptyresultsmessage="Empty results!" total="&amp;lt;%= myObjects.size() %&amp;gt;"&amp;gt;
    &amp;lt;liferay-ui:search-container-results results="&amp;lt;%= ListUtil.subList(myObjects, searchContainer.getStart(), searchContainer.getEnd()) %&amp;gt;" /&amp;gt;
&amp;amp;nbsp; &amp;amp;nbsp; &amp;lt;liferay-ui:search-container-row classname="MyObject" modelvar="myObject"&amp;gt;
&amp;amp;nbsp; &amp;amp;nbsp;     &amp;lt;liferay-ui:search-container-column-image name="Avatar" src="${myObject.avatar}" /&amp;gt;
&amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;lt;liferay-ui:search-container-column-text name="Name" property="name" /&amp;gt;
&amp;amp;nbsp; &amp;amp;nbsp; &amp;lt;/liferay-ui:search-container-row&amp;gt;
&amp;amp;nbsp; &amp;amp;nbsp; &amp;lt;liferay-ui:search-iterator /&amp;gt;
&amp;lt;/liferay-ui:search-container&amp;gt;&amp;lt;/myobject&amp;gt;&amp;lt;/myobject&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;And in my META-INF -&amp;gt; resources -&amp;gt; css I have the following main.scss file:&lt;pre&gt;&lt;code&gt;.search-container thead {
&amp;amp;nbsp; &amp;amp;nbsp;&amp;amp;nbsp; &amp;amp;nbsp;display: none;
}&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;I am successfully hiding the thead of the Search Container, but for some reason I can't change anything else. What would be the correct way to edit the appearance of the Search Container?&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Fabio Carvalho</dc:creator>
    <dc:date>2019-09-02T12:22:48Z</dc:date>
  </entry>
</feed>
