NameSilo

Trying to create a splash page but...

Spacemail by SpaceshipSpacemail by Spaceship
Watch

snoopi

Established Member
Impact
9
How can I create a box (containing my website's terms and conditions) above an image? Can I do this with simple html or do I need java script or... something else? Thanks. :)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
You can put the text in a <div> and position it over the image. Or set the image as the backround of the <div>. All done in CSS. Keep posting if you need more help.
 
0
•••
Hi mch, this is the problem... I have put the text into the div brackets but I don;t know how to position it above the image. Am I missing something here? :-/ Thanks for your help! :tu:
 
0
•••
Hey, here is a basic example solution for your problem. Replace "bgimage.jpg" with the name of the image you want behind the text. PM me with more questions. Cheers!

HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>my splash page</title>
<style type="text/css">
body {
	font-family: Arial, sans-serif;
	font-size: 12px;
}

.terms {
	background: url(bgimage.jpg);
	margin: auto;
	margin-top: 100px;
	padding: 10px;
	width: 320px;
}
</style>
</head>
<body>
<div class="terms">
Insert Terms and Conditions text here.
</div>
</body>
</html>
 
0
•••
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Live Options
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back