i am trying to center a search box in semantic ui. the bar is centered but the search results are not getting centered.i tried puuting center aligned classes to the input the divs but it didnt work here is my code and my js fiddle link:
var categoryContent = [{
category: 'Language',
title: 'Python'
},
{
category: 'Language',
title: 'Java'
},
];
$('.ui.search')
.search({
type: 'category',
source: categoryContent
});
body {
background-color: #F2EDF3;
}
.search-bar {
width: 50%;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.3/semantic.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.3/semantic.min.js"></script>
</head>
<body>
<div class="ui grid center aligned">
<div class="sixteen wide column">
<div class="ui category search ">
<div class="ui icon input search-bar">
<input class="prompt" type="text" placeholder="looking for...">
<i class="search icon"></i>
</div>
<div class="results"></div>
</div>
</div>
</div>
</body>
</html>
