Button Text

daniel dixon asked on February 27, 2015 12:58

I dont need any text in my search button but if I leave it blank it add "Search" as default

Any ideas

Correct Answer

Alexander Kontsevoy answered on February 27, 2015 13:14

Hi Daniel. Simple and easy way is set font-size to 1px in button css class. Like this:

font-size: 1px;

or try to set font-size to 0px. It should to help you.

1 votesVote for this answer Unmark Correct answer

Recent Answers


daniel dixon answered on February 27, 2015 13:19

Hi,

The thing is I have an icon in a class that should show a magnifying glass, which if I use inspect in google and remove the "search" text works.

I need to be able to change the webpart so that you don't need a text value

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on February 27, 2015 14:08

Go to the webpart and change the properties and make the property not required. There is a good chance there is a default set in code though.

0 votesVote for this answer Mark as a Correct answer

Petar Kozjak answered on February 27, 2015 16:07

Hi,

I think easiest way is what Alexander Kontsevoy said. Set font to 1px. One more trick you can use is text-indent: -9999px;

0 votesVote for this answer Mark as a Correct answer

daniel dixon answered on February 27, 2015 16:14

Thanks guys

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.