mirror of
https://github.com/jimeh/modern_bubbling.git
synced 2026-02-19 11:56:38 +00:00
safari 4 background fix
This commit is contained in:
@@ -296,6 +296,7 @@
|
|||||||
if (windowHeight - contentHeight > 0) {
|
if (windowHeight - contentHeight > 0) {
|
||||||
contentElement.style.position = 'relative';
|
contentElement.style.position = 'relative';
|
||||||
contentElement.style.top = (windowHeight - contentHeight) + 'px';
|
contentElement.style.top = (windowHeight - contentHeight) + 'px';
|
||||||
|
document.body.style.height = windowHeight + "px"; /* Safari 4 background fix */
|
||||||
} else {
|
} else {
|
||||||
contentElement.style.position = 'static';
|
contentElement.style.position = 'static';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,14 +26,13 @@
|
|||||||
body {
|
body {
|
||||||
/* font property used for development only */
|
/* font property used for development only */
|
||||||
/* font: 11px helvetica;*/
|
/* font: 11px helvetica;*/
|
||||||
background: #fff;
|
background: #fff url(images/bg.jpg) repeat-x left bottom;
|
||||||
color: #303030;
|
color: #303030;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
z-index: -3
|
z-index: -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
#Chat {
|
#Chat {
|
||||||
background: transparent url(images/bg.jpg) repeat-x left bottom;
|
|
||||||
padding: 5px 10px 12px 10px;
|
padding: 5px 10px 12px 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
z-index: -2;
|
z-index: -2;
|
||||||
|
|||||||
@@ -296,6 +296,7 @@
|
|||||||
if (windowHeight - contentHeight > 0) {
|
if (windowHeight - contentHeight > 0) {
|
||||||
contentElement.style.position = 'relative';
|
contentElement.style.position = 'relative';
|
||||||
contentElement.style.top = (windowHeight - contentHeight) + 'px';
|
contentElement.style.top = (windowHeight - contentHeight) + 'px';
|
||||||
|
document.body.style.height = windowHeight + "px"; /* Safari 4 background fix */
|
||||||
} else {
|
} else {
|
||||||
contentElement.style.position = 'static';
|
contentElement.style.position = 'static';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,14 +26,13 @@
|
|||||||
body {
|
body {
|
||||||
/* font property used for development only */
|
/* font property used for development only */
|
||||||
/* font: 11px helvetica;*/
|
/* font: 11px helvetica;*/
|
||||||
background: #fff;
|
background: #fff url(images/bg.jpg) repeat-x left bottom;
|
||||||
color: #303030;
|
color: #303030;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
z-index: -3;
|
z-index: -3;
|
||||||
}
|
}
|
||||||
|
|
||||||
#Chat {
|
#Chat {
|
||||||
background: transparent url(images/bg.jpg) repeat-x left bottom;
|
|
||||||
padding: 5px 10px 12px 10px;
|
padding: 5px 10px 12px 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
z-index: -2;
|
z-index: -2;
|
||||||
|
|||||||
Reference in New Issue
Block a user