Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Custom Code not showing on Microsoft Edge - Using 7.1 template


Recommended Posts

Hello there, 

I am using the 7.1 template and used the following code to change the logo on specific pages. 

Quote

 

/**desktop logo**/

@media screen and (min-width:767px) {

 .header-title-logo img {

content: url("//static1.squarespace.com/static/5ebeb3beb8891c6346025774/t/5ec80300da110857005a2648/1590166272722/SpartanLogo_Horizontal_WEB-01.png")

  !important;

max-height:inherit !important;

 

  }

}

 

Everything works great however, it does not show on Microsoft Edge Internet platform. Any thoughts on why?

 

Thank you!

Link to post
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

You can use CSS background image, or CSS :after :before to insert new image. (I think I wrote this code, will search again tonight)

Quote

The content property is only valid on :before and :after pseudo-elements

You can use CSS background image, or CSS :after :before to insert new image.

(I think I wrote this code, will search again tonight)

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post

Try this code

@media screen and (max-width:767px) {
.header-title-logo img {
    visibility: hidden;
}
.header-title-logo a {
    background-image: url(https://beaverhero.com/wp-content/uploads/2019/07/coffee-beans-1082116_640-min.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
}

 

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan, work for a non-profit project (build free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. 

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...