I am currently a beginner in PHP/CSS and feeling a bit lost:
So, I came up with this CSS code to structure my website into sections. Everything works fine when I omit the semicolons like so:
#main {
float:left
min-height:500px
min-width:350px
}
However, if I include the semicolons as shown below, it causes an issue.
#main {
float:left;
min-height:500px;
min-width:350px;
}
I am attempting to display a simple text line using the following code snippet
<div id="main">
<p style=text-align:center>
This website is, and will be for a significant period, <b>under construction.</b></a>
</p>
</div>
Interestingly, when I add the semicolons, the text refuses to align center but without them, it does. Now, this has left me confused because I believed that each CSS line should end with a semicolon. Can someone point out what mistake I might be making here?