I have a problem where any text in the content div wont style.
I have tried(not all at the same time)
#content p{ margin-left: 5px; }
p{ margin-left: 5px; }
but when I style it directly it will work e.g.
<p style="margin-left: 5px;">Test</p>
HTML/PHP code
<!DOCTYPE html>
<html>
<head>
<?php require('headers.php'); ?>
<title>Title</title>
</head>
<body>
<?php include('nav.php'); ?>
<div id="content">
<p>This is some sample text</p>
</div>
</body>
</html>
CSS
*{
margin: 0;
padding: 0;
}
html{
font-family: 'Open Sans', sans-serif;
}
body{
}
--snip nav styling--
#content{
margin: 0 auto;
width: 900px;
background-color: lightgrey;
}
#content p{
margin-left: 5px;
}
FIX I found that when I transfer the files to the server styles.css wasn't being changed. Delete and re upload solved the problem.