Help - Search - Members - Calendar
Full Version: DIV layer Hidden When Shouldn't
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
brandon
Please help me?

I'm making a website for my school's radio station.

I have 7 DIV layers, in the following order:

Container 1 (contains ALL of the DIVs)
Header
Navigation
Container 2 (contains the body and side DIVs)
Body
Side
Footer

The second container div has a repeating background, which unfortunately covers my footer div.

Right now I'm using
CODE
z-index:-1
to show the footer over the second container - but that's not in the right spot.

Can someone please help me fix this?

http://brando.jejune.nu/

I also don't have a doctype (every time I add one, it royally screws up my coding and it changes the entire look of the website. It's just a school website, so it doesn't matter to me TOO much that it's not perfectly coded. But if you have any help with that, please let me know?)


pandy
I see no footer in IE. In gecko I see NOTHING but the header.

I'd start with fixing the errors.

http://www.htmlhelp.com/cgi-bin/validate.c...mp;warnings=yes

http://jigsaw.w3.org/css-validator/validat...g=1&lang=en

You don't even have a doctype. You definitely want one with a CSS layout. This is why:
Activating the Right Layout Mode Using the Doctype Declaration
brandon
I updated my coding and I only have this error:

CODE
Line 20, character 6:
 
     ^
Error: text is not allowed here; try wrapping the text in a more descriptive container


Why am I not allowed to use this? It's the only thing that makes my navigation align correctly.

The majority of my viewers use: Firefox, Safari, Internet Explorer. I need to make sure it works in those browsers above all.


Thank you so much, you seriously made that like four hundred times easier. Can you help me with my footer problem too? You're amazing..
pandy
QUOTE(brandon @ Jun 10 2008, 12:37 AM) *

CODE
Line 20, character 6:
 
     ^
Error: text is not allowed here; try wrapping the text in a more descriptive container


Why am I not allowed to use this? It's the only thing that makes my navigation align correctly.


You have this code.
CODE
20   <li class="rightnav"><a class="navigation" href="http://10.20.55.205:9000/listen.pls">listen now</a></li>
21   &nbsp;
22   </ul></div>

All content in a list must be in the LIs.

http://htmlhelp.com/reference/html40/lists/ul.html



QUOTE
The majority of my viewers use: Firefox, Safari, Internet Explorer. I need to make sure it works in those browsers above all.


Well, you are well on your way if you make sure your code is valid and also make sure your doctype triggers Standards Mode.

QUOTE

Thank you so much, you seriously made that like four hundred times easier. Can you help me with my footer problem too? You're amazing..


I don't know. I'll have a new look.
pandy
Sorry, but the page still looks as I said earlier in IE6 and gecko. I see nothing like you descibe. sad.gif
brandon
QUOTE(pandy @ Jun 9 2008, 06:03 PM) *

Sorry, but the page still looks as I said earlier in IE6 and gecko. I see nothing like you descibe. sad.gif



Right now the
CODE
z-link:-1;
is the only thing showing the navigation div and the footer div - both in the wrong spot.

I'm taking a screenshot, hopefully that might be able to give an idea?

If not, you've been a tremendous help with everything else smile.gif
pandy
Here you have gecko and IE6. You've got bigger problems than that footer, I'm afraid.

Click to view attachment

Click to view attachment

pandy
Why is #bodycontainer positioned absolute? That seems to be part of the problem.
brandon
QUOTE(pandy @ Jun 9 2008, 06:31 PM) *

Why is #bodycontainer positioned absolute? That seems to be part of the problem.


i didn't know it shouldn't be. should i take the position value out completely or change it to relative or?
pandy
Point is, you don't position something without a reason. In fact you don't do anything without a reason. If you just put it on on a whim, then by all means take it out.
brandon
QUOTE(pandy @ Jun 9 2008, 07:10 PM) *

Point is, you don't position something without a reason. In fact you don't do anything without a reason. If you just put it on on a whim, then by all means take it out.


it aligns that div to be in the center, like all the other divs
pandy
No, it doesn't. You don't have any offset with it.
brandon
QUOTE(pandy @ Jun 9 2008, 07:53 PM) *

No, it doesn't. You don't have any offset with it.


i mean it does in safari. how would i fix it with an offset?
pandy
I'm afraid I have to insist. Position absolute does not center anything by itself, not even in Safari.

It does take the element "out of the flow" and makes it be on top of everything that comes after it in the HTML though. wink.gif
brandon
QUOTE(pandy @ Jun 9 2008, 08:12 PM) *

I'm afraid I have to insist. Position absolute does not center anything by itself, not even in Safari.

It does take the element "out of the flow" and makes it be on top of everything that comes after it in the HTML though. wink.gif


i didn't know what it did, but i knew that when i put it in, it appeared to.

i'm going to fix it...but then what do i do about everything else? they're all out of alignment sad.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.