- This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hello everyone.
I have coped with a very interesting problem:
I have created a page with a full sized background image (taken from https://css-tricks.com/perfect-full-page-background-image/ (CSS-only Technique #1)). The stuff doesn’t work properly in IE8 when I load text dynamically via PHP script.
For example the code:
<!DOCTYPE html>
<html>
<head>
<?php
include_once 'lang_analyzer.php';
?>
</head>
<body>
<img src="/images/bg.jpg" class="bg" />
...other stuff...
</body>
</html>
shows in IE firstly the image and under the image other content. What is not correct background behaviour :). Well, after some time
I have found a solution for that. I put lang analyser at first, like so:
<?php
include_once 'lang_analyzer.php';
?>
<!DOCTYPE html>
<html>
<head> </head>
<body>
<img src="/images/bg.jpg" class="bg" />
...other stuff...
</body>
</html>
..and everything works correct, but only with an english language. When I load dynamically other languages, the letters become unreadable.
PS: lang_analyzer.php is just a common php multilang support technique, was taken from
http://www.bitrepository.com/php-how-to-add-multi-language-support-to-a-website.html
PPS: style for image bg class is the same as in the example (https://css-tricks.com/perfect-full-page-background-image/ (CSS-only Technique #1))
img.bg {
min-height: 100%;
min-width: 1024px;
width: 100%;
height: auto;
position: fixed;
top: 0;
left: 0;
}
I would really appreciate any help :) Thank you in advance
:)