I'm facing an issue with positioning in the bootstrap grid on desktop view. My goal is to achieve: https://i.sstatic.net/VosAw.jpg
The problem arises with the spacing when using
<div class="col-xs-6 col-md-4">
. It doesn't look good in mobile view and lacks responsiveness as intended. The layout shifts between desktop and mobile view, causing inconsistency.
Mobile View:
https://i.sstatic.net/hfnA0.jpg
Desktop View:
https://i.sstatic.net/ha8zf.jpg
Code:
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<div class="container">
<div class="row">
<div class="col-xs-6 col-md-4">
<p>real connections.</p>
<hr>
<p>since 2015</p>
</div>
<div class="col-xs-6 col-md-4">
<h1>Board Game Cafe</h1>
</div>
<div class="col-xs-6 col-md-4">
<a href="<?php echo $login; ?>"><?php echo $text_login; ?></a>
<a href="<?php echo $register; ?>"><?php echo $text_register; ?></a>
<a href="<?php echo $shopping_cart; ?>" title="<?php echo $text_shopping_cart; ?>"><i class="fa fa-shopping-cart"></i> <span class=""><?php echo $text_shopping_cart; ?></span></a>
<hr>
<?php echo $search; ?>
</div>
</div>
</div>
<div id="search" class="input-group col-md-5">
<input type="text" name="search" value="<?php echo $search; ?>" placeholder="<?php echo $text_search; ?>" class="form-control" />
<span class="input-group-btn">
<button type="button" class="btn btn-default"><i class="fa fa-search"></i></button>
</span>
</div>
Website: