How do i get both these values to print on the same line?
Here is my html code
and here is my CSS definitions
<div class="contentspan">test</div><div class="contentspanp">1200</div>"
but for some reason, the 1000 is coming out on the line below, is there a way to fix this to get both items on the one line ?
padding:0px 0px 0px 0px;
I may be wrong in assuming this, but something tells me if you want these two divs to line up side by side and you only have the small amounts of text in them that you have shown above, then you actually want to use spans instead of divs.
Now if you actually need to use the block level div elements then just float both elements to the left
I've switched careers...
I'm NO LONGER a scientist,
but now a web developer...
cool, i changed them to spans and it worked...
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)