Differences in Appearance of Bootstrap .btn in Safari Browser

Looking for help with my HTML code:

<div class="modal-footer">
  <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
  <a href="poweron.php" type="button" class="btn btn-danger text-white">Power On</a>
</div>

When viewed on Safari and Chrome, the power button looks 'grey' and has a different size. How can I ensure it appears exactly the same on both browsers like on Google Chrome?

Answer №1

If you want to enhance the appearance of your <a> tag, consider including the following style in your code:

a[type='button'] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

A Guide on Integrating a Javascript Reference into HTML while Displaying a PHP Object

Our website relies heavily on PHP modules to generate objects that are essential for constructing our web pages. Some of the key modules we have include: Anchor (ahref) Button CheckBox ComboBox DateTime Email Label Note Password Phone RadioButton RichTe ...

"Utilizing CSS to ensure a div adheres to a specific class

I'm trying to change the floating position of a div by using a CSS class, instead of its predefined properties. Currently, the div is styled as follows: #div { height: 30px; width: 30px; float:left;} To make it float to the right, I created a class ...

Placing a gradient background in front of two divs

I have created two divs with gradients: .container_middle_page{ margin: auto; height: 100%; display: flex; flex-direction: column; } .container_middle_page_up{ background-image: linear-gradient(to top, #F28118,white); height: ...

Ways to display data from specific columns using their names in a pair of dropdown lists

I am faced with the challenge of creating a drop-down menu containing column names from a database table. In addition, I need to implement another drop-down menu. My goal is to have the values of the selected column name from the database table displayed ...

Web page glitch repaired: Top fixed div now functioning properly

I am currently facing an issue with a fixed header and full-screen background image. The problem arises when I try to display an alert on top of the page, pushing down the header and hero section. However, I am encountering difficulties as the alert eith ...

Creating a Duplicate of an iframe with jQuery

Hey there, I have a dilemma with two divs. One is for displaying content, and the other is a video player that I want to pause and resume on scroll using jQuery. My goal is to pause the video in the "myplayer" div on scroll and have it resume playing from ...

Scrolling up occurs when the checkboxes below the scroll bar are clicked

I am having an issue with a grid that contains checkboxes. Whenever I select one of the checkboxes, the page scrolls up. This behavior is only present in Chrome, as Firefox does not exhibit the same scrolling problem. I'm unsure whether this issue is ...

Using :nth-child on elements with the same class name does not produce the desired result

I attempted to utilize the :nth-child selector to target the first, third, and fifth elements with the class name "personal", but it did not work as expected. Is there an alternative method to specifically select these elements sharing the same class? I ha ...

JQuery Resizable: A guide on creating multiple resizable divs that can be adjusted individually

I have created a basic web application that allows you to dynamically add div elements to a container div. You can preview the app here: Before resizing https://i.sstatic.net/X2o6K.png When you click the "Image" link in the left menu, a new div with a ...

Enhancing Choices with Attributes in Joomla

I'm attempting to include additional HTML attributes to certain select options within a dropdown list in Joomla 2.5, and I prefer to utilize the included HTML helpers rather than manually writing the HTML. The current display is as follows: <selec ...

Having trouble retrieving data from the server for the POST request

I am fairly new to using Jquery and Ajax requests. I'm currently working on a website where I have a simple form that collects an email address from users and sends it to the server. However, I'm struggling to figure out how to capture the form d ...

Prompt for user confirmation when a button is clicked using jQuery

I'm facing a situation that I haven't found an answer for yet. I have a button on my webpage that triggers an ajax call to perform a certain action when clicked. However, I want to add a confirmation popup with the message "Are you sure you want ...

After applying sorting, jqGrid displays an empty space below the final row

Having an unusual problem with sorting in the jqGrid. When I sort in descending order, there is extra space below the last row, but when I sort in ascending order, the table ends abruptly at the bottom without allowing any further scrolling. I have includ ...

Ensuring the height of the body and content div in Bootstrap 4 combined with Angular set to

Is there a way to center the <div class="card"> in the middle of the page or body? It works perfectly on a desktop browser, but on mobile view, it's not aligning properly. How can I center it using... html, body { height: 100%; background: ...

Convert HTML table to CSV format while retaining merged rows and columns

I have a complex HTML table with rows and columns spanning different sections. I am looking for a way to export this table to a CSV file with just a click of a button.https://i.sstatic.net/OOPgg.png Here is the code snippet for the table, <table clas ...

When flex items are stacked in a column, the bottom portion may be truncated

(Edit) Check out the codepen example here. I am working on creating a stack of cards using Vue.js and flexbox to showcase different apps on my website. Each card is represented by a component and I utilize Vue's `for` function to display cards with t ...

Tips for resolving the issue of CSS blocks disappearing when designing a webpage

When creating a responsive web page, the child block "overflows" from the parent block. This causes the entire page to shift to the left and an empty bar appears on the right side, moving all the content. I need to ensure that all content is positioned cor ...

Chrome failing to recalculate the width of an element as required

When attempting to size an element's width based on its height, I discovered what seemed like a clever solution using the transparent img trick: http://jsfiddle.net/6yc8a2yj/ The pink div displays correctly at a 1:2 ratio, but it fails to resize whe ...

Encountering spacing problems on IE9 and FF11 while using OS X

After conducting some testing on a design I coded, I found that it functions well in FF 13, Chrome 21, IE 7/8, and Opera 11.62 for Windows, as well as Safari 5.1 for OS X. Unfortunately, since I only have WinXP, I had to utilize Adobe Browserlab to test f ...

HTML5 database error: Uncaught TypeError due to illegal invocation

When I test the code below in Chrome, I encounter an error: var db = openDatabase('foo', 1, 'foo', 1111); var sql = function(callback){ db.transaction(function(tx){ callback(tx.executeSql); }); }; sql(function(query){ ...