Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Sir Osis of Liver - marraskuu 09, 2013, 12:33:41 AP

Otsikko: Remove button css
Kirjoitti: Sir Osis of Liver - marraskuu 09, 2013, 12:33:41 AP

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thekrashsite.com%2Fpics%2Fhairpull1.gif&hash=d1684c7b73ef4c7cc773994cfce0795f18f1c1d9) How to remove css formatting from one button?



input, button, select, textarea
{
font: 95%/115% verdana, Helvetica, sans-serif;
color: #8c8c8c;
background: #2e2e2e;
border: 1px solid #a28875;
padding: 2px;
}



Otsikko: Re: Remove button css
Kirjoitti: Arantor - marraskuu 09, 2013, 12:38:44 AP
Override in that one button. Give it a class that isn't the button_submit class...
Otsikko: Re: Remove button css
Kirjoitti: Sir Osis of Liver - marraskuu 09, 2013, 01:00:20 AP

Got it, thanks.

Otsikko: Re: Remove button css
Kirjoitti: Sir Osis of Liver - marraskuu 09, 2013, 01:23:18 AP
Got rid of the background and border, but can't eliminate the hover effect -



.paypal_button
{
border: 0;
background: #222222;
}

a.paypal_button:link, a.paypal_button:visited, a.paypal_button:hover

{
text-decoration: none;
}



First part works, second part doesn't (just a guess).  Hover effect causes everything below the button to move down a couple of pix.

Also having an annoying problem (again) with button form adding space below it.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thekrashsite.com%2Fpics%2Fbor.gif&hash=cba0817857a10dc1cd975d2b49a33ba2fc822800)

Otsikko: Re: Remove button css
Kirjoitti: Antechinus - marraskuu 09, 2013, 03:34:13 IP
They aren't anchors.
Otsikko: Re: Remove button css
Kirjoitti: Sir Osis of Liver - marraskuu 09, 2013, 03:38:09 IP

This worked -



.paypal_button
{
border: 0;
background: #222222;
}

.paypal_button:hover
{
border: none;
text-decoration: none;
}



Otsikko: Re: Remove button css
Kirjoitti: Antechinus - marraskuu 10, 2013, 03:03:22 IP
Told you they weren't anchors. :D