Safari Browser HTML CSS Problem

I encountered a strange issue with my website navigation. In Chrome, it appears like this:

https://i.sstatic.net/Y2pfF.png

However, in Safari, it looks like this:

https://i.sstatic.net/YhlDU.png

Here is the code I'm using:

#header{
    display: grid;
    width: 70%; margin: 0 auto;
    margin-top: 1%;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: 'header-left header-right';
    text-align: center;
    font-size: x-large;
    font-weight: bold;
    color: grey;
    margin-top: 2em;

}
#header-left{
    grid-area: 'header-left';
    text-align: left;
    color: white;
}

#header-right{
    grid-area: 'header-right';
}
#header-right a {
    text-decoration: none;
    color: grey;
}
#about h2,p{
    text-align: left;
}

I've been trying to fix this discrepancy to no avail. Any suggestions on what might be causing the problem?

Answer №1

Solution implemented by incorporating display: inline-block; into the nav a {} style rule

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

The Chrome Extension is unable to recognize a portion of the URL following the # symbol in the contentscript.js code

I am currently developing an extension for a specific website that I don't have ownership of. The URLs on this site only change after a /#/. For instance, starting from the URL .../#/PF/charts/patients/419d3081-5e20-4347-a852-52b2c333ce85/summary W ...

activated by selecting a radio button, with a bootstrap dropdown menu

I'm having trouble triggering the dropdown in Bootstrap by clicking on a radio button. It seems like a simple task, but I've been struggling with it all day. According to Bootstrap documentation, you can activate the dropdown using a hyperlink o ...

show the contents of the successful jQuery AJAX response

When using jQuery AJAX, I am retrieving values from a database and then trying to display them in a dropdown menu. Initially, I pass the ID to fetch the level. Once I have the level ID and name, I then fetch the values related to the selected level and dis ...

encountering a problem with permissions while attempting to update npm

Has anyone encountered a permission error with npm when trying to update to the latest version? I recently tried updating npm and received this error message. I'm unsure of how to resolve it. Any suggestions? marshalls-MacBook-Air:Desktop marshall$ n ...

Inquiring about the Model component within the MVC architecture in a web application created with NodeJs and integrated with

As a beginner in NodeJs, I am venturing into creating web applications using the express framework and MySQL. Understanding that in MVC architecture, views are represented by *.ejs files, controllers handle logic, and models interact with the database. Ho ...

What is the best approach for retrieving data from MongoDb with mongoose?

I am currently in the early stages of learning MongoDB and mongoose. At this point, my database structure looks like this: database -> skeletonDatabase collection -> adminLogin When I execute db.adminLogin.find() from the command line, the output ...

How to modify ID data with AngularJS ng-repeat

I am currently searching for a solution to easily modify an ID within a repeated ng-structure. This scenario involves having a customer table with unique customer IDs, which are then utilized in another table related to orders. When I retrieve data from th ...

Unable to update data from false to true in vue.js

What I'm trying to do is change the data from false to true in order to conditionally render a button when a payment has succeeded. When making an axios call, I receive 'succeeded' as the response in the JSON object and can log it to the con ...

What is the process for adjusting the left margin of an HTML paragraph within a JasperReports TextField component?

Currently, I am working on a subreport in Jaspersoft Studio 6.2.1. Within the subreport, there is only one element - a TextField defined as shown below: <band height="105"> <textField isStretchWithOverflow="true"> <reportElement ...

Uploading and removing files

Currently, I am working on a file upload feature where I want the uploaded file name to be displayed along with an option to remove the file. You can see what I have done so far here. Everything is functioning correctly except for one issue - when I dele ...

Repetitive notifications using Jquery

Utilizing the CSS and HTML code below to showcase a notification whenever an event takes place. HTML <div id="notification_wrapper"> <div id="notification"></div> </div> CSS #notification_wrapper { position: f ...

Obtain a person's name from a user's input within a string using Smarty

I have been wondering if there is a way to extract attributes from a string using Smarty. For example: {$mySmartyArray} //This array contains //Array( 0 => "<input name='aaa' />", // 1 => "<input value='' name=&a ...

Discover the potential of JavaScript's match object and unleash its power through

In the given data source, there is a key called 'isEdit' which has a boolean value. The column value in the data source matches the keys in the tempValues. After comparison, we check if the value of 'isEdit' from the data source is true ...

What method is recommended for saving data in an HTML data attribute?

Is there a way to store multiple values in an HTML data-attribute and retrieve them using jQuery? When storing values, is it best to use comma-separated or space-separated values? If I need to find <li> tags with "Mango" in the data-fruit attribute ...

Accessing the external function parameter inside of the $timeout function

Currently, I am using SockJS to listen to websocket events and receive objects that I want to insert into my $scope.mails.items array. The issue I am facing involves the code snippet below. For some reason, I am unable to pass the message parameter into my ...

Error encountered when trying to update Express Mongoose due to duplicate key

In my MongoDB database, I have a unique field called mail. When attempting to update a user, I encounter an issue where if I do not change the mail field, it triggers a duplicate key error. I need a solution where it is not mandatory to always modify the ...

Emphasize Links in Navigation Bar

I am in the final stages of completing the navigation for my website. I have included the jsfiddle code to display what I have so far. The issue I am facing is that my child links turn gray as intended, but I also want the top level link to turn gray when ...

What is the best way to transfer information between different pages in an HTML document?

I am facing a specific requirement where I must transfer form data from one HTML page to another HTML page. The process involves a total of 5 pages, with the user entering data in the following order: 1st page: Name 2nd page: Weight 3rd page: Height 4t ...

the specified container cannot be found

In my project, I am using a repeater. When a user adds a new document, I want to highlight the new documents similar to how Gmail bolds new emails in an account. This way, it will be easier for users to identify the newly added records. Can anyone suggest ...

When I try to scroll, the sticky card fails to stay in place as intended with CSS

I'm having trouble creating a sticky card that remains in place when I scroll. https://i.sstatic.net/wPZ6S.png <Box display={'flex'} width={'100%'} height={'150rem'} > <Box width={'100%'}> {f ...