On this page there are two "here" links on the same line and the second doesn't work.
My css can be found here. I am unsure why it is any different than the "header" div because the links in the header div work even though they are on the same line.
The specific code in question is posted below.
CSS
#body {
line-height:1.5em;
width:700px;
margin:auto;
overflow-x: hidden;
padding:12.5px;
color:#4e443c;
font-size:16px;
font-family:"Courier";
text-align:left;
}
HTML
<div id="body">
<h3>Logger</h3>
Logger is a java library that allows you to log to a log file easily. <a href="Logger.jar">Download</a> <span> the .jar file and then add it to your build path.
For Eclipse instructions see <a href="http://stackoverflow.com/a/2727723">here</a>.
For command-line instructions see <a href="http://stackoverflow.com/a/2096298">here</a>.
Then add the code <i>Logger log = new Logger();</i> to your class to initialize the logger and then you can use either <i>log.log(String);</i> or <i>log.logAndPrint(String);</i> to print to the log.
The <i>logAndPrint</i> method prints to the console as well as the log file while the <i>log</i> method only prints to the file.
Below is an example driver program. <br>
<script src="http://gist-it.appspot.com/https://github.com/dummycode/Logger/blob/master/Example.java?footer=0">
</script>
<a href="/p">Back</a>
</div>
I've tried different things such as display:inline-block
or using span
tags, but most of these mess up the format of my page.
Can anyone help me out?