ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - search button color change
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

search button color change

 Post Reply Post Reply
Author
Message
worldofrugs View Drop Down
Senior Member
Senior Member
Avatar

Joined: 24-April-2008
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldofrugs Quote  Post ReplyReply Direct Link To This Post Topic: search button color change
    Posted: 02-May-2008 at 4:29pm
Hi all,
I'm trying to change the color of the small search button via CSS, but without affecting any other buttons..
I find in the pcStoreFront.css the imput tag.. I try not to mess with that one, as I want to leave others "as-is"..
Adding a different style (example .BSC) to the CSS and apply that to the search button, it simply does not work.. It's overwritten by the standard.. Is there a way around this?

P.s.: Search button in SmallSearchBox.asp  / placed this in the header.




Edited by worldofrugs - 02-May-2008 at 4:30pm
Back to Top
worldofrugs View Drop Down
Senior Member
Senior Member
Avatar

Joined: 24-April-2008
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldofrugs Quote  Post ReplyReply Direct Link To This Post Posted: 05-May-2008 at 4:54pm
No one ever tried this? Ermm
Back to Top
Matt View Drop Down
Moderator Group
Moderator Group


Joined: 20-July-2006
Location: United States
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote Matt Quote  Post ReplyReply Direct Link To This Post Posted: 05-May-2008 at 10:58pm
Change the id of the Button and add your own class
 
e.g.
<input type="submit" name="submit" value="Go &gt;&gt;" id="MyID" class="MyClass">
 
Then add your CSS Style below the standard.
 
e.g.
 
 #MyID .MyClass {
  border: 2px solid #333333;
 }
Back to Top
worldofrugs View Drop Down
Senior Member
Senior Member
Avatar

Joined: 24-April-2008
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldofrugs Quote  Post ReplyReply Direct Link To This Post Posted: 06-May-2008 at 1:07pm
Thanks Matt, but it didn't work...
The button simply does not change at all..
I have added the CSS style in the pcHeaderFooter.css --> no result..
Tried it in the pcStoreFront.css --> no result...

Is there something we're overlooking?
Back to Top
Matt View Drop Down
Moderator Group
Moderator Group


Joined: 20-July-2006
Location: United States
Status: Offline
Points: 73
Post Options Post Options   Thanks (0) Thanks(0)   Quote Matt Quote  Post ReplyReply Direct Link To This Post Posted: 06-May-2008 at 1:29pm
Hi worldofrugs,
 
The code I posted works on v3 of ProductCart (I tested it IE and Firefox before I posted).  Make sure the button has one ID and one Class.  Then make sure your CSS stylesheet defines the ID with "#" and then the class with a "."  If you are still having problems then I would recommend going back to the default stylesheets and adding your CSS back in one by one.
Back to Top
Hamish View Drop Down
Admin Group
Admin Group


Joined: 12-October-2006
Location: United Kingdom
Status: Offline
Points: 56
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hamish Quote  Post ReplyReply Direct Link To This Post Posted: 06-May-2008 at 1:36pm
If it still doesn't work post a link & then someone can take a look. Firefox with the web developer add-in allows you to edit (a copy of) the css dynamically, which I find very useful. 
Back to Top
worldofrugs View Drop Down
Senior Member
Senior Member
Avatar

Joined: 24-April-2008
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldofrugs Quote  Post ReplyReply Direct Link To This Post Posted: 06-May-2008 at 1:59pm
Matt,
Sorry you were right.. I made a typo that caused it not to work...
Working like a charm!!
Thanks!  Clap

Hamish,
I indeed have the add-in also and I also find it super useful to change styles in PC...
Approve
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.