This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
html { | |
background: url(fluss.jpg) no-repeat center center fixed; | |
-webkit-background-size: cover; | |
-moz-background-size: cover; | |
-o-background-size: cover; | |
background-size: cover; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div> | |
<img id="background-img" src="fluss.jpg" alt="" /> <!-- Das eingebundene Hintergrundbild --> | |
<div> | |
<!-- Der Inhalt der Seite folgt hier --> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
img.hintergrundbild { | |
min-height: 100%; /* Diese zwei Zeilen setzen die Regeln um den Hintergrund zu füllen */ | |
min-width: 1024px; | |
width: 100%; /* Die Regeln, welche für die Skalierung sorgen */ | |
height: auto; | |
position: fixed; /* Die Positionierung */ | |
top: 0; | |
left: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( is_front_page() && is_home() ){ | |
// Default homepage | |
} elseif ( is_front_page()){ | |
//Static homepage | |
} elseif ( is_home()){ | |
//Blog page | |
} else { | |
//everything else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="bg"> | |
<img src="images/bg.jpg" alt=""> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#bg { | |
position: fixed; | |
top: -50%; | |
left: -50%; | |
width: 200%; | |
height: 200%; | |
} | |
#bg img { | |
position: absolute; | |
top: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#bg { position: fixed; top: 0; left: 0; } | |
.bgwidth { width: 100%; } | |
.bgheight { height: 100%; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).load(function() { | |
var theWindow = $(window), | |
$bg = $("#bg"), | |
aspectRatio = $bg.width() / $bg.height(); | |
function resizeBg() { | |
if ( (theWindow.width() / theWindow.height()) < aspectRatio ) { | |
$bg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a#kontakt{ | |
position: absolute; | |
top: 205px; | |
left: 0; | |
background: url(feedback_button.png) no-repeat; | |
background-position: 90% 100%; | |
width: 35px; | |
height: 109px; | |
border:1px solid #999; |
OlderNewer