I'm new to css and bootstrap and I'm trying to place an div content on center of my screen.
Currently I'm planning to do so:
<div className="container">
<div className="row">
<div className="col-sm-4 col-md-4"></div>
<div className="col-sm-4 col-md-4">
Center content here
</div>
<div className="col-sm-4 col-md-4"></div>
</div>
</div>
I could able to guess that column's are splitted into 12
. So I'm just splitting up them by 4
for 3
div's.
I just want to understand whether we can get rid of two div
's which just used for calculation purpose here:
<div className="col-sm-4 col-md-4"></div>
<div className="col-sm-4 col-md-4"></div>
Is there any better way?