PDA

View Full Version : Does this look familiar? -



kassi59
09-25-2006, 01:33 PM
This is a wordpress search code. Im wanting to change the background to black..right now its white....I cant find anywhere in this script to change that...
Any clues?

<li id="search" style="font-weight:bold; padding-top:20px;">
<label for="s"><?php _e('Search'); ?></label>
<form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
<div>
<input type="text" name="s" id="s" size="15" />
<input type="submit" name="submit" value="<?php _e('Search'); ?>" />

kassi59
09-25-2006, 04:11 PM
Here I go answering my own questions again!...lol...maybe I shouldnt post so quickly...oh well, never know might help somone?!

add this to the script and you will then get a black background!


<li id="search" style="font-weight:bold; padding-top:20px;">
<label for="s"><?php _e('Search'); ?></label>
<form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
<div>
<input type="text" name="s" id="s" size="15" style="color: fff; background: 000;" />
<input type="submit" name="submit" value="<?php _e('Search'); ?>" />


Watch out Navel!...lol..Imma gettin' this stuff!...lol
Nah, not really Im still a baby....lol..no worries...hehe..

FPRob
09-26-2006, 07:11 PM
And that is the first step into CSS Kassi :)

The style you have applied (highlighted in red) is a CSS command. you have applied it directly to the form. It could also be applied to the page header to affect more than just the form background and it can also be placed in a sperate style sheet so it will affect the entire site :)

kassi59
09-26-2006, 07:37 PM
Wow Rob. I did all that?!...You make is sound so much better than the actual task. Im obviously very bad with terminology. Im a person that can do it, but cant explain it...or at least so as others can understand..lol..
hmm...maybe Ill keep on playing..
I have created a person safeguard>
I have an empty txt file.
before I do any changes to the script I copy and paste it to my txt file.
then I go ahead and play.
If I happen to do something wrong..
I still have the original 'good' script all in tact to fix the one I may have messed up.
works for me!..gives me more peace of mind and more creative energy to learn these things....not things..css!...lol

Thanks for the post!

bitznbats
09-27-2006, 04:32 PM
That is an excellent tip with the txt file thanks for that (my attempts never go right the first time)!!

kassi59
09-27-2006, 05:53 PM
That is an excellent tip with the txt file thanks for that (my attempts never go right the first time)!!

Thanx! I usually add things in the wrong place or something!..So thats why I keep the 'good' script safe, while Im messing with the other. works really well. especially when you mess up and cant remember exactly WHAT you did!...lol