Jump to content
Sign in to follow this  
srautpyaa

Two divs side by side with dots

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...