Jump to content

Two divs side by side with dots


srautpyaa
 Share

Recommended Posts

Dear all, I am facing one problem with divs. I have included the below code in html. <div style="float: left">Satyaprasad</div><div style="border-bottom: 2px dotted #000000"></div>Actually my required output is as shown below.Satyaprasad.............................................................................................But i am getting the output as shown below...................................................................................................................SatyaprasadPlease help me, is there any mistake in my code.Thanks inadvance.-Satyaprasad

Link to comment
Share on other sites

please don't double posthttp://w3schools.inv...showtopic=47146 you could just make the divs inline-block

style="display:inline-block"

or just use an inline element, like a span

Edited by thescientist
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...