posted 15 years ago
hi
i wish i had a board to express my thoughts but i will try to do the same with words..
imagine the div to be a rectangular box of 300px width. now you want to place two more smaller boxes inside (you used spans, but i would recommend divs). lets call the boxes as A and B. width of box A=B=150px.(this could vary according to your need)
inside box A you want to write FirstName and inside box B you want to write LastName. Put the first and last name in spans.
Divs are Block element that is they have a new line before them and after them by defualt. so if you put two divs together they will lie on top of each other. but if you change the display style to inline then they behave as inline element and will be next to each other.
What i would do is :
do let me know if it worked for you.
SCJP 1.4, SCWCD 1.4
your eyes cannot see what your mind does not know