P粉1976397532023-08-15 09:07:16
Looks like you are using the Bootstrap framework. Class name row
has display: flex
applied, so your inline style is redundant. You should use the justify-content-center
class name instead of inline styles.
You have:
<div style="justify-content: center; display:flex; class="row">
should be:
<div class="row justify-content-center">
Specifying the same number of columns on each breakpoint is redundant. Only use the appropriate class name on the breakpoint you want the change to occur, as it will apply to all larger breakpoints.
You have:
<div class="col-xl-4 col-xs-4 col-lg-4 col-md-4 col-sm-4 col-12 footer_contact_info">
should be:
<div class="col-sm-4 col-12 footer_contact_info">
Since you didn't provide a reproducible example, I can only guess what your structure looks like.
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous"> <div class="container-fluid"> <div class="row justify-content-center"> <div class="col-sm-4 col-12 footer_contact_info">Call Us</div> <div class="col-sm-4 col-12 footer_contact_info">Our Email</div> </div> </div>