We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
Javascript Help; Change Padding in Opera
Topic Started: Jan 21 2007, 02:22 PM (131 Views)
MarioGamer99
Member Avatar
Member
[ *  * ]
I'm starting up a site, and I'm trying to have just about everything customized. I got a custom button working in FireFox and IE, but it doesn't display right in Opera.
Can someone who's good with Javascript write a code that'll change the padding for the #buttonbg id? The padding needs to be changed to
Code:
 
Padding-top: 12px;

to
Code:
 
Padding-top: 9px;


Can someone help?
Offline Profile Quote Post Goto Top
 
Astheria
 
[ *  *  *  *  *  *  *  * ]
Browser detection javascript is glitchy and not very well supported... Opera doesn't have a huge share of the browser market so I'd probably leave it as is unless it's a huge problem. If that's the case check over the entirety of that bit of CSS as it's probably not Opera's fault, but just that you coded things oddly.
Offline Profile Quote Post Goto Top
 
MarioGamer99
Member Avatar
Member
[ *  * ]
Well, I made it s it will work for the majority of people, but I want the largest amount of users to see my site correctly.
Opera's the only one with the problem.
Offline Profile Quote Post Goto Top
 
Astheria
 
[ *  *  *  *  *  *  *  * ]
PM me a link if you don't want it public and I'll glance at your code and see if it's your CSS or an Opera bug.
Offline Profile Quote Post Goto Top
 
MarioGamer99
Member Avatar
Member
[ *  * ]
Okay. I can give you a link to my site.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Technology Chat · Next Topic »
Add Reply