I want to have the H3 and P tags on the same line in pairs. I do not want to use the tag <table>
.
HTML:
<h2>SERVERS:</h2>
<!--I want each set of H3 and P to be on the same line-->
<h3>Server 1 Status:</h3><p id="running">Running</p>
<h3>Server 2 Status:</h3><p id="notRunning">Not Running</p>
<h3>Server 3 Status:</h3><p id="running">Running</p>
CSS:
#running {
color:green;
font-weight:bold;
}
#notRunning {
color:red;
font-weight:bold;
}
I have been searching all over the place and most of the posts are either with the <table>
tag or very old and don't work.
`. And also don't use snake case in CSS. CSS is not case-sensitive and capital letters in your ids and classes don't make a lot of sense. It is better to write `
` and in CSS `#not-runing { }`.
– cezar Jun 17 '15 at 07:51