• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

HTML Code

dydocan

dydocan
Joined
Jul 2, 2010
Messages
95
Reaction score
0
PHP:
<html>
<head>
<title>RehMaN-OTS</title>

<style type="text/css">
/* Remove margins from the 'html' and 'body' tags, and ensure the page takes up full screen height */
html, body {height:100%; margin:0; padding:0;}
/* Set the position and dimensions of the background image. */
#page-background {position:fixed; top:0; left:0; width:100%; height:100%;}
/* Specify the position and layering for the content that needs to appear in front of the background image. Must have a higher z-index value than the background image. Also add some padding to compensate for removing the margin from the 'html' and 'body' tags. */
#content {position:relative; z-index:1; padding:10px;}
</style>

<body>
<div id="page-background"><img src="main/ddn.png" width="100%" height="100%">
</body>

</head>
</html>

That is my html code so far but if I want to add an image as a link on the website how do I do that cuz it isn't working on the way I am doing it...

and remember I want to select where the image shall be padding-left50px padding-top80px and so on..
 
You can do it with one <div>

like

Code:
<body>
<div id="page-background"></div>
</body>

and the style part

HTML:
#page-background {
position: relative;
 height: 100%;
 width: 100%;
 background: url(bgd.png) top no-repeat #f00;
}
 
Back
Top