I am learning CodeIgniter and trying to apply some style in my view css selector(main_row). But when i run project, i only get data without any style.Why?
My code:
<html>
<head>
<title>
Test View
</title>
<style>
.main_row {
border: solid thin;
background-color: greenyellow;
}
</style>
</head>
<body>
<h1>Solr Result</h1>
<table>
<?php
foreach ($data as $rows) {
echo '<tr class="main_row">';
echo '<tr><td>'.$rows['content'].'</td></tr>';
echo '<tr><td>'.$rows['url'].'</td></tr>';
echo '</tr>';
}
?>
</table>
</body>
</html>