Solved

How can i edit sharepoint  "Search" font color

Posted on 2010-09-03
7
788 Views
Last Modified: 2012-05-10
<div class="search">
<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
<SPSWC:SearchBoxEx id="SearchBox" RegisterStyles="false" TextBeforeDropDown="search" TextBeforeTextBox="<%$Resources:cms,masterpages_searchbox_label%>" TextBoxWidth="100" GoImageUrl="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow.jpg %>"
GoImageUrlRTL="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow_RTL.jpg %>" UseSiteDefaults="true" DropDownMode = "HideScopeDD" SuppressWebPartChrome="true" runat="server" WebPart="true" __WebPartId="{}"/>
</asp:ContentPlaceHolder>
</div>
i am looking for The Text before Textbox should show up with white font
search.jpg
0
Comment
Question by:msk_1227
  • 5
  • 2
7 Comments
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33600499
In Internet Explorer, hit F12 to pull up the Developer Toolbar.  Under the HTML tag you will see a mouse cursor button.  Select it and then select the Search text.  It should now have a blue border around it.  In the developer toolbar you will see the actual HTML code being sent to the browser.  This should give you the element name to address in your CSS to override the color.  When doing so, be sure to add "!important" to override the core CSS.

For eg:

#searchelementname
{
color: #FFFFFF !important;
}
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33600504
Under the HTML tab* (not tag)
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33600528
CodeProject has a great tutorial on how to use the IE Developer Toolbar that you might like: http://www.codeproject.com/KB/applications/IE_dev_toolbar.aspx
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 2

Author Comment

by:msk_1227
ID: 33643458
I tryed but it didnt help , How can i edit & save it in sharepoint designer "TextBeforeTextBox"  or  css

<div class="search">
<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
<SPSWC:SearchBoxEx id="SearchBox" RegisterStyles="false" TextBeforeDropDown="search" TextBeforeTextBox="<%$Resources:cms,masterpages_searchbox_label%>" TextBoxWidth="100" GoImageUrl="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow.jpg %>"
GoImageUrlRTL="<% $SPUrl:~sitecollection/Style Library/Images/Search_Arrow_RTL.jpg %>" UseSiteDefaults="true" DropDownMode = "HideScopeDD" SuppressWebPartChrome="true" runat="server" WebPart="true" __WebPartId="{}"/>
</asp:ContentPlaceHolder>
</div>
0
 
LVL 21

Accepted Solution

by:
chapmanjw earned 500 total points
ID: 33643559
In SharePoint designer, edit the Master page.  In the  section, add the following:

<script type="text/css">
.search, .search a
{
color: #FFFFFF !important;
}
</script>
0
 
LVL 2

Author Comment

by:msk_1227
ID: 33649879
thank you chapmanhw,

in sharepoint designer when i select class search link it leads to core band.css file.
then
.search .ms-sbcell
{
color:white!important;
}
so color: white already exist & i just put !important after that then it worked for me thanks for the post.
0
 
LVL 21

Expert Comment

by:chapmanjw
ID: 33658213
Great, glad it worked out for you.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

A question that is asked often, is how to generate sequential numbers in InfoPath Forms. The best way to achieve this is to use a SQL database, along with a stored procedure and a web service to connect Forms Services to the DB. The first thing t…
Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now