Author |
Topic |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 18 February 2016 : 07:33:09
|
I know this code SHOULD work when inserted into the header style section, but the hover and active aspects are being ignored.
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 18 February 2016 : 13:00:21
|
Yes. Here's the extract:
That didn't work, so I tried another. Same result. Button is fine, hover and active do not do anything.
|
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 18 February 2016 : 15:41:19
|
Trying to style submit buttons and they do support :active. Neither the hover nor the active has any effect whatsoever. On another site I wrote, the same type of code works exactly the way I intended; the only difference being colors. |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 18 February 2016 : 16:19:17
|
what I meant was in the example you posted these two styles are identical, so nothing would happen when you hover over the button
.btn {color:#FFFFFF; padding:0px 3px 1px 3px; border:1px solid #000000; text-shadow:0px 1px 1px #000; font-weight:bold; text-decoration:none; border-radius:25px; -webkit-border-radius:25px; box-shadow:3px 1.5px 1.5px rgba(96,96,96, 0.6); background:#84A97D; background-image:url(images/themes/Green/bgt.png); background-size:100% 100%;}
.btn:hover {color:#FFF; background-image:url(images/themes/Green/bgt.png); background-size:100% 100%; cursor: pointer; font-weight:bold;}
Other than that it appears to work fine in a simple test page, so it must be something else that is breaking it or prevent the style being applied
|
MVC .net dev/test site | MVC .net running on Raspberry Pi |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 18 February 2016 : 18:07:41
|
I got it working on full-sized pages; but popup pages are another issue. Issue was in another function which stylized header cells if enabled.
Here's an example of the html output of a popup page which doesn't work the way it should. All the coloring for everything BUT the buttons is working. The buttons (btn class) work properly if I switch the header (with identical CSS lines) and open in full page.
|
Edited by - Carefree on 19 February 2016 00:38:33 |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 19 February 2016 : 07:26:35
|
sorry carefree but the above example didn't work for me as a main page or a popup, there are errors in the style section which basically prevents it loading any styles
in the .itemX declarations you have " characters which break the styling.
Once I fixed the style section it worked as both main page or popup. |
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 19 February 2016 : 09:22:47
|
Ahh - that was it and, since I have no idea what the .itemX pertained to, I just dumped them. Easier later to fix a tiny one rather than a big one. Thanks for the help again, HuwR.
Next big project is the plug-in panels, getting there. |
Edited by - Carefree on 19 February 2016 09:25:52 |
|
|
|
Topic |
|
|
|