Ankit Rustagi Ankit Rustagi - 1 year ago 77
CSS Question

Display two hyperlinks in one line

I am trying to display two hyperlinks using anchor tags. I have the following code to display hyperlinks

<a href="link1"><h4>link1</h4></a> &
<a href="link2"><h4>link2</h4></a>

but the links are displayed like


how can i display the links like this

link1 & link2

Answer Source

Remove the <h4> tag or set the css style: h4 {display:inline}

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download