srautpyaa Posted March 27, 2013 Share Posted March 27, 2013 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 More sharing options...
thescientist Posted March 27, 2013 Share Posted March 27, 2013 (edited) 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 March 27, 2013 by thescientist Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now