plain text background

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
jpwallace
Posts: 47
Joined: Fri Mar 03, 2017

18 Jan 2017

On one of my forms i have many fields that are made up of either a Single Line of Text Field or multiple lines of text. How do i change the color of the background of the a user will input the text. I believe its in the Control section but unsure what to change.

jpwallace
Posts: 47
Joined: Fri Mar 03, 2017

18 Jan 2017

Its ok i have found it..........

.fieldname textarea {

background-color: red;

}

jpwallace
Posts: 47
Joined: Fri Mar 03, 2017

18 Jan 2017

how do i apply this to more than one field, if i do the same as above for another filed, nothing happens??

jpwallace
Posts: 47
Joined: Fri Mar 03, 2017

19 Jan 2017

The above code only seems to work on a multi line text field, all single line of text fields i cant seem to get to change color.

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

19 Jan 2017

Insert the following code into CSS-editor:

Code: Select all

.fd_control input,
.fd_control textarea {
	background-color: red;
}

jpwallace
Posts: 47
Joined: Fri Mar 03, 2017

19 Jan 2017

is there a way to get it to work for drop down menus too?

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

19 Jan 2017

Then use this:

Code: Select all

.fd_control input,
.fd_control textarea,
.fd_control select{
	background-color: red;
}

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests