472,958 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 1817
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.