I am a beginner in frontend development and I've been struggling to position the modal at the center of the screen; it keeps appearing on the right side. I am currently using "bootstrap/dist/css/bootstrap.min.css" for my CSS. Should I create a new CSS file to rectify this issue?
import React, { Component } from "react";
import "./App.css";
import LoginPage from "./LoginPage";
import "bootstrap/dist/css/bootstrap.min.css";
import { Modal, Button } from "react-bootstrap";
import ReactTelephoneInput from "react-telephone-input/es/ReactTelephoneInput";
class App extends Component {
state = {
selectLoginOption: false,
userLoginOption: false,
restaurantLoginOption: false,
deliveryAgentLoginOption: false,
closeAllOptionsOfSelectionForm: false
};
style = {
left: 0
};
// Various login and registration methods...
render() {
// Render method containing JSX code...
}
}
export default App;
Click here to view a local webpage with the modal incorrectly positioned off-center.