Hi Team
I need to style my form to have container has div card somehow its not displaying. But the style is right. How can i make this to be good UI?
@extends('layouts.app')
@section('content')
{{ __('Register') }}
@endsection
//publix/css/custom.css
/* Custom styles for registration page */
.register-card {
background-color: #f5f5f5;
padding: 20px;
border: 1px solid #ddd;
}
/* Custom styles for login page */
.login-card {
background-color: #f5f5f5;
padding: 20px;
border: 1px solid #ddd;
}
//app_blade.php
Deepak RawatPosted Jul 17, 2023, 10:14 AM
To ensure that your form is displayed properly with the desired UI style, you can follow these steps:
Make sure that your CSS file (
custom.css) is located in the correct directory and that the path specified in theasset()function is correct. Verify that the CSS file is being loaded by inspecting the page source code or using browser developer tools.Check if you have included the Bootstrap CSS framework in your application. The classes used in your form (e.g.,
card,card-header,card-body,form-control, etc.) are part of Bootstrap. If you haven't included Bootstrap, you need to add it to your project. You can use a CDN or download the Bootstrap CSS file and include it in your HTML file.Ensure that the CSS classes defined in your
custom.cssfile are targeting the correct elements in your HTML. In the provided code, you have defined.register-cardand.login-card, but those classes are not used in your HTML. Instead, you have used the Bootstrap classes directly (card,card-header,card-body, etc.). If you want to apply custom styles to the card container, you can add theregister-cardclass to the parentdivelement of the form, like this:Once you have made the necessary changes, make sure to clear your browser cache and reload the page to ensure that the updated CSS styles are applied.