HighDots Forums  

Presto not rendering buttons properly?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Presto not rendering buttons properly? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David R
 
Posts: n/a

Default Presto not rendering buttons properly? - 01-17-2006 , 06:02 AM






Using this CSS:

------------------------

button {
border: none;
background: url("Button-LU.gif") center center;
padding: 0;
text-align: center;
margin: 0.5em;
width: 150px;
height: 33px; }
button:active {
background: url("Button-LA.gif") center center; }

------------------------

Presto renders the button text as being vertically aligned inside the top of
the button, yet Gecko and Trident render the text being in the middle of the
button.

Anything I'm missing?



Reply With Quote
  #2  
Old   
Jim Moe
 
Posts: n/a

Default Re: Presto not rendering buttons properly? - 01-17-2006 , 12:11 PM






David R wrote:
Quote:
Presto renders the button text as being vertically aligned inside the top of
the button, yet Gecko and Trident render the text being in the middle of the
button.

Presto is a browser?
Try adding a background color. Presto may think it is necessary.

button { background: #fff url("Button-LU.gif") center center; }

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
  #3  
Old   
David R
 
Posts: n/a

Default Re: Presto not rendering buttons properly? - 01-17-2006 , 05:12 PM



Quote:
Presto is Opera's rendering engine.

I have no idea why the OP didn't call Presto as Opera, Trident as
Internet Explorer, and Gecko as Mozilla/FireFox/Netscape/Camino.

I guess he was trying to impress us. It didn't work.
No, because the rendering engine is what's important, not the browser. There
are quite a number of Gecko-based browsers out there (inc. Mozilla Suite,
Firefox, Minimo, K-Meleon, Galeon, etc), same for Trident and Presto.

I'm being technically accurate, so nerr

Oh, and I tried setting a background colour, no change.




Reply With Quote
  #4  
Old   
Rob McKenna
 
Posts: n/a

Default Re: Presto not rendering buttons properly? - 01-17-2006 , 05:46 PM



David R wrote:

Quote:
Using this CSS:

------------------------

button {
border: none;
background: url("Button-LU.gif") center center;
padding: 0;
text-align: center;
margin: 0.5em;
width: 150px;
height: 33px; }
button:active {
background: url("Button-LA.gif") center center; }

------------------------

Presto renders the button text as being vertically aligned inside
the top of the button, yet Gecko and Trident render the text being
in the middle of the button.

Anything I'm missing?


Try setting

line-height: 33px;

--
Rob McKenna,
Rain God.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.