Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 04-10-2008, 12:14 PM   #1
Registered: Apr 2005
Distribution: Slackware 11.0-12.1
Posts: 56

Rep: Reputation: 15

I have a website that's a mixture of HTML and PHP pages. I'm using a hack in order to display a background image that stretches to 100% the width and height of the browser window. All works fine, except on the HTML pages any <object> (like YouTube video links) appear behind the background. On the PHP pages which use the same style.css file, <object> elements appear in front on the background, like they're supposed to.

I can't figure this out for the life of me. Does anyone know what this would be?

If you need more info, feel free to ask.

Old 04-10-2008, 05:53 PM   #2
Senior Member
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Not certain what the issue is but have you played around with the z-index in your css?
Old 04-10-2008, 06:08 PM   #3
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 407

Rep: Reputation: 35
Is there a difference in the DOCTYPE tag between your PHP and your HTML pages? If so, you could be seeing a "quirk". It might be even more entertaining to see if this difference in default z-index behaves the same across different browsers.
Old 04-10-2008, 10:37 PM   #4
Registered: Apr 2005
Distribution: Slackware 11.0-12.1
Posts: 56

Original Poster
Rep: Reputation: 15
For got to mention, in IE, the objects are up front and visible, although YouTube videos leave a white bar with a "#" in the upper left corner of the window (weird). Firefox hides all objects behind the background.

Yes, I have messed with the z-index. I've set it to 1, 2, and -1 with no change in Firefox.

The DOCTYPE seems to make no difference.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML/CSS/JS: Problem with <p> not having an absolute position with CSS. RHLinuxGUY Programming 7 03-03-2007 12:21 AM
A little HTML/CSS help? jon_k General 9 07-17-2005 01:49 AM
HTML/PHP question perfect_circle Programming 2 04-22-2005 11:42 AM
Survey: fav program for PHP/HTML/CSS coding xervious Linux - Software 8 03-16-2005 10:04 AM
html/css hylke Programming 0 06-27-2004 02:39 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration