Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Change text colour in enquiry box --> "Contact Us" Form


Zzenn

Recommended Posts

I changed all of my fonts to white in CSS stylesheet because I have a darker background. It looks great but now the text in the "Enquiry:" field is white against the white background when I go to type a message. After much tweaking and trying to find which class it is, I just can't discover which one it might be.

 

Contact_us.php says...

<td class="main"><?php echo ENTRY_ENQUIRY; ?></td>

 

I tried main and it didn't fix it???

 

It is probably obvious, I'm just at a loss.... :(

Link to comment
Share on other sites

I changed all of my fonts to white in CSS stylesheet because I have a darker background. It looks great but now the text in the "Enquiry:" field is white against the white background when I go to type a message. After much tweaking and trying to find which class it is, I just can't discover which one it might be.

 

Contact_us.php says...

<td class="main"><?php echo ENTRY_ENQUIRY; ?></td>

 

I tried main and it didn't fix it???

 

It is probably obvious, I'm just at a loss.... :(

 

lets see your css.

You are right about the class, and the echo.

I did this and the font is now blue :

TD.main, P.main {

font-family: Verdana, Arial, sans-serif;

font-size: 11px;

line-height: 1.5;

color: #0000ff;

}

 

david

Link to comment
Share on other sites

lets see your css.

You are right about the class, and the echo.

I did this and the font is now blue :

TD.main, P.main {

font-family: Verdana, Arial, sans-serif;

font-size: 11px;

line-height: 1.5;

color: #0000ff;

}

 

david

 

Thanks David,

Yes I can change the main text and thats fine. But If I was to write an email and start typing in the Enquiry section it is is still invisible (If I send it the email has received everything fine - Just can't see what I'm typing in the field box) The boxes that I type my name and email address are fine?????

Wierd hey?

 

My CSS Below... is normal???

TD.main, P.main {

font-family: Verdana, Arial, sans-serif;

font-size: 11px;

line-height: 1.5;

color: #FFFFFF;

}

Ken

Link to comment
Share on other sites

Thanks David,

Yes I can change the main text and thats fine. But If I was to write an email and start typing in the Enquiry section it is is still invisible (If I send it the email has received everything fine - Just can't see what I'm typing in the field box) The boxes that I type my name and email address are fine?????

Wierd hey?

 

My CSS Below... is normal???

TD.main, P.main {

font-family: Verdana, Arial, sans-serif;

font-size: 11px;

line-height: 1.5;

color: #FFFFFF;

}

Ken

 

OH!

 

You mean in the actual text input area of the form ?

Do you have a url ?

Link to comment
Share on other sites

OH!

 

You mean in the actual text input area of the form ?

Do you have a url ?

 

I do.

Heres my URL. Try and type something into the "Inquiry" box. You'll notice the Name and email fields are OK...? But the Inquirey text is invisible because its #FFFFFF.

 

http://findpurpose.com.au/register/contact_us.php

 

Thanks for you help David.

Link to comment
Share on other sites

I do.

Heres my URL. Try and type something into the "Inquiry" box. You'll notice the Name and email fields are OK...? But the Inquirey text is invisible because its #FFFFFF.

 

http://findpurpose.com.au/register/contact_us.php

 

in contact_us.php change this :

<tr>
  <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15); ?></td>
</tr>

 

to this :

<tr>
  <td><?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15,' ','style="color: red; background-color: lightyellow"'); ?></td>
</tr>

 

You can play around with the color and background-color attributes, or just set 'color: black' and leave out the background-color

 

david

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...