• Page 1 of 1
  • 1
CSS Problems
Scotkill
Posts: 10
Reputation: 0

Message # 1 | 6:21 PM
Hey, I'm trying to add CSS to my buttons (form buttons), but it doesn't seem to be working. I've tried to put the CSS in the part that says CSS lol Doesn't work, I've tried putting the code with the button I'm trying to change, but that's not working either. Where do I put this code to make it work?

Code
/* CSS */
.btnExample {
  color: #900;
  background: #FF0;
  font-weight: bold;
  border: 1px solid #900;
}

.btnExample:hover {
  color: #FFF;
  background: #900;
}

That's the general code I'm trying to add, but I will be changing the colours later on, but for now just need to add that code.

Any help would be appreciated wink

CodeResolution
Posts: 1570
Reputation: 58

Message # 2 | 6:25 PM
Should work in CSS, have you made sure the buttons (inside the HTML) have the correct ID?

For example (marked in blue),

Quote
<button type="button" id="Example">Click Me!</button>

Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Post edited by CreativeCollusions - Thursday, 2010-11-25, 6:26 PM
Scotkill
Posts: 10
Reputation: 0

Message # 3 | 6:39 PM
OMG, how did I make a dumb mistake like that? My bad lol

EDIT 2: Changed what you suggested, but it's still not working.

Post edited by Scotkill - Thursday, 2010-11-25, 6:57 PM
CodeResolution
Posts: 1570
Reputation: 58

Message # 4 | 7:03 PM
What are you using as your ID?
Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Scotkill
Posts: 10
Reputation: 0

Message # 5 | 7:04 PM
button1
CodeResolution
Posts: 1570
Reputation: 58

Message # 6 | 7:20 PM
Try 'Example' and if that doesn't work try 'btnExample'
Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
Post edited by CreativeCollusions - Thursday, 2010-11-25, 7:29 PM
Scotkill
Posts: 10
Reputation: 0

Message # 7 | 8:39 PM
Still not working angry
This is really annoying lol.

Here's the button code if that'll help. I'm not too up with creating form objects as I normally just use Bravenet. xD

Code
<FORM METHOD="LINK" id="btnExample" ACTION="http://scotlandstandup.blogspot.com">
<INPUT TYPE="submit" VALUE="Scotland Stand-Up">
</FORM>
Post edited by Scotkill - Thursday, 2010-11-25, 8:42 PM
CodeResolution
Posts: 1570
Reputation: 58

Message # 8 | 8:02 AM
Have a good look on Google, I'm sure you'll find something wink
Kind regards,
Elliott.

"The best uCoz" critic since 2007.
Qualified website, branding, print & user interface designer.

I'm on Behance and Twitter.
  • Page 1 of 1
  • 1
Search: