+ 1
Side by side text
how to get text to go on top of each other so I can align the so there side by side or any other method
5 Antworten
+ 5
This puts short text in div elements positioned side by side, I'm not too sure what you mean by "go on top of each other" being side by side, so anyways;
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
div
{
margin-right:8px;
padding:5px;
background-color:orange;
float:left;
}
</style>
</head>
<body>
<p>Side by side text</p>
<div>First text</div>
<div>Second text</div>
<div>Third text</div>
</body>
</html>
+ 2
Then show your code my friend, I would like to see it. I may not help you but others can see it and offer suggestions.
+ 1
how do you do it in css
+ 1
I tried that before i posted
0
The float:left option for the div tags, you can see it inside the style tag.