0

Hi I am working on this site for hotel reservations. I have a search form and a contact form in a contact page. I set the style for the search form to background:#C00000. When I created the contact page I realized that my contact form background gets the same color because of the css. Is there a way to apply a different background color to the contact form? Seems easy but I don't seem to be able to do it, I get all sortsof strange things.Thank you

2
Contributors
2
Replies
8
Views
4 Years
Discussion Span
Last Post by Fiorentino01^
0

There are quite a bit of methods and its difficult to guide you without seeing any code. However in general, you can apply different styles to the same types of elements by targeting them via CSS selectors. For example, you can assign unique IDs to each element and target them like this..

 #elementID { background-color: #fffff; }

Seeing your relevant code would be helpful.

Edited by JorgeM

0

Hi, here is the code the search form I coded myself, the contact form I downloaded it.Hope this will help.I don't know if I'll be using the downloaded code for the contact form or if I'll do it myself(try it I mean)but the issue will apply in any case I like the 2 forms to have a different background color.Thanks a lot.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.