Coder Social home page Coder Social logo

Comments (9)

Abbasa5251 avatar Abbasa5251 commented on August 16, 2024 5

You need to add below CSS in app.css file

.alert {
  position: fixed;
  left: 50%;
  top: 120px;
  transform: translate(-50%, -50%);


  z-index: 99999;
}

from django-2021.

EXxZAM avatar EXxZAM commented on August 16, 2024 2
@EXxZAM

Just checking, were you able to fix it? I have it displaying like yours but when I click the "X" it doesn't close. I've added the code referenced to my app.css but still the same. Thanks.

hi, I removed the default CSS lines related to alert messages and added the code @Abbasa5251 mentioned to app.css and it worked!

from django-2021.

Sapin32 avatar Sapin32 commented on August 16, 2024 1

You need to add below CSS in app.css file

.alert {
  position: fixed;
  left: 50%;
  top: 120px;
  transform: translate(-50%, -50%);


  z-index: 99999;
}

Thank you for pointing this out, my alert messages weren't showing properly without this.

from django-2021.

EXxZAM avatar EXxZAM commented on August 16, 2024

Hi, Have You Found a solution for this? Can you share? I'm stuck and can't find a workaround.

from django-2021.

EXxZAM avatar EXxZAM commented on August 16, 2024

Thank You So Much!

from django-2021.

fallstonray avatar fallstonray commented on August 16, 2024
@EXxZAM

Just checking, were you able to fix it? I have it displaying like yours but when I click the "X" it doesn't close. I've added the code referenced to my app.css but still the same. Thanks.

from django-2021.

fallstonray avatar fallstonray commented on August 16, 2024

@EXxZAM Very good, thank you.

That is what I've done however it still does the same thing. It does however notice when my mouse is over the "X" as the pointer turns into a finger to click. (see attached images). Here is a sample of my current code in static/styles/app.css and main.html.

If anyone has an idea of what else I could check please let me know. Thank you.

error1

error2

error4

error5

from django-2021.

RemyAde avatar RemyAde commented on August 16, 2024

@fallstonray
I have the same issue too... any fix yet?

from django-2021.

RemyAde avatar RemyAde commented on August 16, 2024

It seems to be a browser issue. It works in Chrome, but not in Firefox as in my case
Chrome ✅

from django-2021.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.