Issues with Safari not recognizing media queries

Can anyone provide some guidance on why these media queries are not working in Safari? I've tested them in Chrome and they work fine. Any help would be greatly appreciated as I'm new to coding.

@media screen and (max-width: 768px) {
  #wellLogo {
    height: 250px;
    margin-top: 175px;
  }

  .home1 {
    background-image: url("../assets/img/sanctuaryS.png");
  }

@media screen and (max-width: 480px) {

  .standardParallax {
    background-attachment: scroll;
    height: 175px;
  }

  #wellLogo {
    height: 100px;
    margin-top: 40px;
  }

  h1 {
  font-size: 30px;

  }

  .mission {
    display: block;
    margin: 5px;
    margin-left: auto;
    margin-right: auto;
    height: 70px;
    width: 175px;
    border-radius: 25px;
    border: 5px solid rgba(107,84,71,.9);
  }

  h5 {
    font-size: 20px;
  }

  #spanish {
    margin-left: auto;
    margin-right: auto;
  }

  #english {
    margin-right: auto;
    margin-left: auto;
  }

  #missionPadding {
    padding-top: 0px;
  }

  #exchange {
    margin-left: auto;
    margin-right: auto;
    padding-top: 0px;
  }

  #elements {
    margin-left: auto;
    margin-right: auto;
  }

  .margin1 {
    margin-bottom: 5px;
  }

  .section {
    height: 375px;
  }

  #section1 {
    height: 400px;
  }

  .section2 {
    height: 300px;
  }

}

Answer №1

We seem to have lost the closing curly bracket for the initial media query.

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

Place the menu within the image, positioned at the bottom

Could someone help me with placing a menu at the bottom of an image using HTML, CSS and Bootstrap 4? I have limited CSS knowledge and need assistance. Currently, my navbar is located below the image but not within it like this: I am looking to achieve so ...

Responsive center alignment of stacked `<div>` elements using CSS

My goal is to center a stack of divs in 3 columns per row if the browser window is wider than 1024px, and switch to 2 columns per row if it's smaller, while still displaying all 6 divs. Unfortunately, I'm facing difficulties trying to apply what ...

After the final breakpoint is reached in Firefox, min-width for Bootstrap 4 element increases to over 17 million pixels

When implementing my Magento 2 theme, I encountered an unusual bug while using Bootstrap 4. If I adjust the device width to 575, certain elements on the page inexplicably expand to almost 20 million pixels in width. Interestingly, this issue only arises i ...

Issue on my website specifically occurring on Google Chrome and mobile devices

Hello, I seem to be having a CSS issue. Interestingly, my menu (burger menu) works perfectly fine on Firefox but is not functioning properly on Chrome and mobile devices. When I click the button, the menu doesn't open. Has anyone encountered a simil ...

Using the fieldset element in AngularJS Material causes disruptions in my flex layout

My current issue can be illustrated through two code examples: The first example functions properly when the fieldset is not included. In the second example, including the fieldset causes the layout to extend beyond the window when there is long text (in ...

adjusting the width of an HTML table cell

I'm struggling with the code below: <table> <thead> <th class='1'>Date</th> <th class='2'>Start Time</th> <th class='3'>End Time </th> <th class='4 ...

CSS - Organization of Rows and Columns

I am in the process of designing a website that will feature news content, and I would like to give it a layout similar to a reddit news box. The layout would resemble the following structure. I am using angular material and CSS exclusively, without any fr ...

Having trouble changing the style property of the `<div>` element in my JS function within Bootstrap Studio

I am currently utilizing Bootstrap in Bootstrap Studio along with plain JavaScript. One of the challenges I am facing pertains to changing the background color of a <div> element upon selecting a new tab. The objective is to dynamically alter the ba ...

If the div is devoid of content, then remove the class

<div class="slider">content goes here</div> <div id="slider-2" class="active inactive">also some content here</div> <script type="text/javascript"> function checkEmpty( element ){ return !$.trim(element.html()) ...

Unexpected behavior: Bootstrap columns collapsing into a single row

I recently started learning how to utilize Bootstrap columns and encountered a minor issue. Whenever I shrink my browser window to the smallest size possible (or even halfway), causing the CSS rules for the columns to take effect, instead of adjusting to ...

Is there a way for me to duplicate a complex element multiple times within the same page?

As an illustration, let's say I have a social tab located in my header that I would like to duplicate in the footer. This tab is comprised of various buttons with SVG images on top, event listeners linked to button IDs, and CSS styling. One option is ...

The click event will not be activated by the class

http://jsfiddle.net/yTkTd/ I have another function that works perfectly, but this particular one is causing me some issues. There are no console errors or anything, it just doesn't seem to trigger. UPDATE: PLEASE REFER TO THE NEW JSFIDDLE EXAMPLE ht ...

CSS Flexbox with 3 columns and a grid layout of 4 by 4, with one large item included

I am currently exploring how to implement this layout using Flexbox. So far, I have only managed to come up with the following code snippet: https://i.sstatic.net/mKVlu.jpg Is there a way to achieve this purely through CSS without altering the HTML struc ...

Experience the magic of CSS Sprite once it's been successfully uploaded!

Visit the website for testing here Located at the bottom of the page are two images with hover effects - one labeled "Contact us" and the other "Jobs Available!" During local testing, these images are visible. However, once uploaded to a server, they dis ...

Is it possible for the browser to ignore the style.min.css file and only use the style.css file when both files are linked in the HTML?

I have a question about file downloads: If I have two files named Style.css and Style.min.css in the same directory, and my HTML page references Style.css, will the browser or server ever download the Style.min.css file instead? (Even if they have the sa ...

How to properly format the <address> element on my website to display our company's contact information

While developing a website with asp.net mvc-5, it's important to include our company's contact details like telephone, email, and postal address. That's why I utilized the <address> tag within our "Contact US" page, replacing actual in ...

What is the best way to apply fading effects to three divs containing additional divs?

Looking at this HTML and CSS code: HTML <DIV class="newsPic"></DIV> <DIV class="newsPicTwo"></DIV> <DIV class="newsPicThree"></DIV> CSS .newsPic { width: 500px; height: 200px; } .newsPicTwo { width: 500px; height: 2 ...

Arranging text within a td cell

This is what I currently have: <tr> <td colspan="4" style="font-size:7pt; font-color:red; font-weight: bold;"> PLEASE NOTE: SPECIFY THE ARTICLE IN AS MUCH DETAIL AS POSSIBLE </td> </tr> However, the text does not a ...

Guide on navigating to a specific page with ngx-bootstrap pagination

Is there a way to navigate to a specific page using ngx-bootstrap pagination by entering the page number into an input field? Check out this code snippet: ***Template:*** <div class="row"> <div class="col-xs-12 col-12"> ...

Toastr service experiencing issues on Internet Explorer browser

While implementing toastr notifications in my Angular application, I encountered an issue with compatibility across browsers. Specifically, the ngx-toastr module functions properly in Chrome and Firefox, but not in Internet Explorer. Interestingly, it wo ...