Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Simple colour question :)
Old 09-04-2007, 07:59 AM Simple colour question :)
Registered User

Posts: 255
Trades: 4
I have called a php function to a page (a mailing list)

All works fine except the colour

PHP Code:
<form method="POST" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>?do=add">
Email Address: <input type="text" name="email"><br>
<input type="submit" value="Submit">
</form>
The text "Email Address" is fine and in black.
the problem is the input box and submit button are both white and as the person enters thier email address in the box thier text is white also thus making it impossible to read, the same applies to the submit button although it says "submit" you cant see it as its white on white.

I dont really want to go into style sheets etc as its only a small peice of code ....

Any help would be appreciated

Thanks
Mark
internetking is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-04-2007, 09:12 AM Re: Simple colour question :)
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
This actually isnt a php function. You could delete everything between those php tags and the form would still work fine.

That leaves the html. The html is styled with css and css is colouring your input label.

Find the css and delete a 'color' line that looks like:
Code:
input {
   color: #FFFFFF;
}
.. after an 'input' rule. Else post your css.
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Old 09-04-2007, 11:51 AM Re: Simple colour question :)
Registered User

Posts: 255
Trades: 4
Thanks for your reply !
I have looked and this is what is in the index.php page

PHP Code:
<style type="text/css">
<!--
body {
 
background-imageurl(i/Gradient.jpg);
}
body,td,th {
 
color#FFFFFF;
}
.
style1 {color#FFFFFF}
.style2 {color#FFFFFF; font-weight: bold; }
.style4 {
 
font-size11px;
 
color#FFFFFF;
 
font-weightbold;
}
a:link {
 
text-decorationnone;
}
a:visited {
 
text-decorationnone;
}
a:hover {
 
text-decorationunderline;
}
a:active {
 
text-decorationnone;
}
.
style5 {color#FFF600; font-weight: bold; }
.style3 color#fff600;
 
font-weightbold;
}
.
style6 color#FFCC33;
 
font-weightbold;
}
-->
</
style

Thanks again

Mark
internetking is offline
Reply With Quote
View Public Profile
 
Old 09-04-2007, 06:51 PM Re: Simple colour question :)
metho's Avatar
Ultra Talker

Posts: 481
Location: Gold Coast - Brisbane QLD, Australia
Trades: 0
The input's text colour is being inherited from a style applied to a parent element. More than likely body,td,th { color: #FFFFFF; }. This makes white the default text colour.

If you dont want to fix this yourself, you'll have to post all html source from the opening html tag to the end of the form in question.
__________________
I do
Please login or register to view this content. Registration is FREE
based.
Spend a lot of time in
Please login or register to view this content. Registration is FREE
.
And
Please login or register to view this content. Registration is FREE
chews up the rest.
metho is offline
Reply With Quote
View Public Profile Visit metho's homepage!
 
Reply     « Reply to Simple colour question :)
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28813 seconds with 12 queries