Buttons are square or rounded depending on browser used?
tfboy
Registered Users Posts: 74 Big grins
I spent a bit of time this evening editing my paypal buttons to have nice rounded corners so their style is identical to the existing style and slideshow buttons. I was doing this in Firefox.
After uploading and aligning them in firefox using webdev, I decided to do a quick healthcheck on IE and all of a sudden, the smugmug buttons are all square / have right-angled edges :huh
I log in to smugmug on IE, and no change there - still square edges. So it looks like Firefox gives round edge buttons, and IE gives square ones!
Is this normal? Is there anyway I can control whether the buttons are square or rounded ?!?
edit:
A gallery as seen in Firefox:
The same gallery in Internet Explorer:
edit2: not sure why a little white dot has appeared between the buttons on the IE version either
After uploading and aligning them in firefox using webdev, I decided to do a quick healthcheck on IE and all of a sudden, the smugmug buttons are all square / have right-angled edges :huh
I log in to smugmug on IE, and no change there - still square edges. So it looks like Firefox gives round edge buttons, and IE gives square ones!
Is this normal? Is there anyway I can control whether the buttons are square or rounded ?!?
edit:
A gallery as seen in Firefox:
The same gallery in Internet Explorer:
edit2: not sure why a little white dot has appeared between the buttons on the IE version either
0
Comments
Square corners in IE.
Portfolio • Workshops • Facebook • Twitter
The buttons Smugmug uses are created by the YUI library that Smugmug includes in all your pages and it dynamically figures out which browser capability it has and adapts.
You could create your buttons as YUI buttons too and then they would look identically to the Smugmug buttons on all platforms. I would need to know a little more about what you're trying to do and see a representative page before I could suggest further exactly how you would do that, but it isn't hard. I've added all sorts of YUI buttons to pages before.
For example, this code adds a button that says "Download Image" is styled similarly to Smugmug's buttons and calls a javascript function "InitiateDownloadImage" when it's pressed:
More on that particular code if you want a full fledged example is here:
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
I'll have a play. Thanks for the link, John, I'll have a play with it to see if I can figure it out. If not, I'll be back here
Smugsite: http://photos.xavimages.co.uk - Blogsite: http://www.xavimages.co.uk
Having another read of the CSS3 page, it looks like this only works with borders. So does that mean I have to define a table or something in which I put the button and then cornering the edges of the table effectively clips the pic contained inside it?
Smugsite: http://photos.xavimages.co.uk - Blogsite: http://www.xavimages.co.uk
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
But where can I find them ? (can't search yui here as I guess it's too short a string?) Re-reading your original post, there's a "YUI library"? Sounds interesting
edit: OK, so it's a Yahoo User Interface library. Found it http://developer.yahoo.net/yui but not sure where to go from here.
Smugsite: http://photos.xavimages.co.uk - Blogsite: http://www.xavimages.co.uk
The buttons aren't hooked up to do anything yet because I need to know what you want them to do when pressed.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
I get the idea, but maybe it's just too complex to integrate for my purposes: it's to be used to for "buy" and "view cart" paypal buttons which are already shown as (an untidy mixture of jpeg and png) image files in red below (taken from the custom footer section)
Smugsite: http://photos.xavimages.co.uk - Blogsite: http://www.xavimages.co.uk