PDA

View Full Version : textField


berlin28
10-17-2008, 08:42 PM
anyone who knows hoa to change a text field backround and text colour?

thanks:-D

domedia
10-17-2008, 09:12 PM
CSS to the rescue:
background-color: #ccc;
color: red;

CSS is an integrated part of DW. Look in the CSS panel, and then under the help files. There's a couple of chapters on CSS.

digitaldesperad
10-26-2008, 04:12 PM
the way you can change your textfield background color:

in page definition --> regions : tabular form --> report attributes

here you choose the textfield of which you want to change the bgcolor.

then in tabular form elements, add e.g style="background: yellow;" to element attributes.
:)

berlin28
11-04-2008, 05:00 PM
hey

i used this code to make the backround colour of my textbox to blue:

<style type="text/css">input#name{background-color:red;/*Put your color here*/}</style>

how can i change the colour of
the text in the text box and how to change the borders od the textbox?

Corrosive
11-04-2008, 05:36 PM
hey

i used this code to make the backround colour of my textbox to blue:

<style type="text/css">input#name{background-color:red;/*Put your color here*/}</style>

how can i change the colour of
the text in the text box and how to change the borders od the textbox?

You are in luck my friend. I was playing about with just this question yesterday. Try these in your style sheet...

input {
background-color: #F5F2E3;
font-size: 10px;
font-weight: bold;
color: #2D5066;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
textarea {
background-color: #F5F2E3;
color: #2D5066;
font-size: 10px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
}

Change them around until you get what you want. You can add borders, coloured backgrounds, change the font size and colour...actually, pretty much anything you can do with CSS.

domedia
11-04-2008, 05:44 PM
color: I already gave in my first post.

Corrosive
11-04-2008, 05:48 PM
color: I already gave in my first post.

He, he. Just wanted to pass on my new found skills :wink:

domedia
11-04-2008, 06:23 PM
He, he. Just wanted to pass on my new found skills :wink:No , that's fine. It was directed at the OP.

Corrosive
11-04-2008, 06:32 PM
No , that's fine. It was directed at the OP.

:oops: That's me, jumping in again. :)

berlin28
11-05-2008, 08:04 AM
imput i have put it bei Head in my sheet!

input {
background-color: #F5F2E3;
font-size: 10px;
font-weight: bold;
color: #2D5066;
font-family: Verdana, Arial, Helvetica, sans-serif;
}

where schall i whrite the following text area code?

textarea {
background-color: #F5F2E3;
color: #2D5066;
font-size: 10px;
font-weight: bold;
font-family: Verdana, Arial, Helvetica, sans-serif;
}

thanks

edbr
11-05-2008, 08:08 AM
add as a style in the head of the document or add to external style sheet

berlin28
11-05-2008, 08:40 AM
ach so! so i dont need to use both?

or the input or the other?

Corrosive
11-05-2008, 04:08 PM
ach so! so i dont need to use both?

or the input or the other?

Ed is saying that you need to add your CSS code to your styles. These will be either in a separate style sheet or in the <head> tags of each page. I suggest you have a separate sheet cos it's easier that way.

berlin28
11-05-2008, 06:09 PM
thanks a lot