0
Positioning text/button
How do you put a text/button to where you want it (spot)?
3 odpowiedzi
+ 7
Use CSS :)
https://www.sololearn.com/learn/CSS/1114/
+ 1
Group your button and text using a div.class
Set the .class with position: relative; and position point with top and left selector.
Eg.
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
.button-grp {
position: relative;
top: 50px;
left: 20px;
}
</style>
</head>
<body>
<div class="button-grp">
<p>Press the button</p>
<button>Button</button>
</div>
</body>
</html>
0
k, thx