473,326 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Presto not rendering buttons properly?

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?
Jan 17 '06 #1
4 1833
David R wrote:

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)
Jan 17 '06 #2
saz
In article <IL********************@giganews.com>, jmm-
li***********@sohnen-moe.com says...
David R wrote:

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; }


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.
Jan 17 '06 #3
> 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.
Jan 17 '06 #4
David R wrote:
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.
Jan 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: babash | last post by:
I designed a site with asp.net all pages are working properly on my local computer but when I upload the sit on the server on those pages that I have field validation, Buttons doesn’t work. When...
0
by: Steve R | last post by:
I've built a composite web custom control with a lot of child controls. I assigned ToolTip values to some of these controls. The ToolTip pop-ups were working fine until I monkeyed with the order...
3
by: DalePres | last post by:
I have an application that uses the Microsoft.Web.UI.WebControls.TabStrip and Multipage controls. When I test the app on my pc or on my client's development web servers the controls render...
4
by: Nacho Nachev | last post by:
Hello, AFIAK ASP.NET (1.1) uses a technology called 'Adpative Rendering' to output HTML that is compliant with the client browser or at least stick to HTML 4 specification or IE. This seems...
5
by: Dave A | last post by:
I am writing an ASP.NET tool that will allow the client to create their own online froms. ie the client can add tect boxes, text, drop downs,etc with absolutely no technical skill what so ever....
6
by: AJBopp | last post by:
I'm wrestling with CSS variations between Firefox and IE. I'm trying to create rollover buttons in a menu frame. It is working perfectly in Firefox but in IE only the first button is properly...
5
by: paul.hester | last post by:
Hi all, I have a custom control with an overridden Render method. Inside this method I'm rendering each control in its collection using their RenderControl method. However, I'm running into a...
10
by: =?Utf-8?B?UGFycm90?= | last post by:
I have 8 radio buttons on my Windows form but I can only select up to the first 4. If I click on any button beyond the 4th one and then come back into the program again the 4th button is always...
3
by: SAL | last post by:
Hello, I did google this issue and found some stuff related to BrowserCaps section of either web.config or machine.config but it didn't work. It seems that most pages in my webapp are okay but a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.