CSS problem
- Started
- Last post
- 15 Responses
- Skylark
I got a menu that I use css, and it all seems to work fine in all the diffrent browers that I tested it in, until I got my hands on a MAC and the menu did not even show....anyone know the solution to my problem...
so far I only checked it on ie
- gabriel_pc0
got an example of the problem online somewhere?
- Skylark0
yeah, but I dont know if my boss would approve of me showing it...
eh, what the heck...
http://66.129.113.217/html/defau…
- gabriel_pc0
try putting "display: block" into the style declarations for each of the nav classes you've made. let me know if that works for ya.
- sparker0
first off, you're using the wrong doctype with your markup.
that will not validate xhtml transitional.
secondly, why are you trying to use xhtml (transitional) and develop the layout with tables? the two don't mix. it can be done, but it's not the correct way to do it.
i'm on archlinux .5, mozilla 1.5+. the menu was there, but it didn't do anything (so i'm not sure what it is supposed to do).
i glanced at the css rules, they seemed fine...so, the problem is with the markup somewhere.
probably a doctype problem. the markup is incorrect for xhtml transitional.
- Skylark0
thanks for your answers.
I'll try that gabriel
sparker: thats my boss idea to use xthml, i really dont know much about it...
- gabriel_pc0
it actually comes pretty close to validating, just a few things that are in the page that don't make it through, such as setting the margins in the bodytag and leaving image names empty. Check it out:
http://validator.w3.org/check?ur…
Couple quick changes will make it all good as far as validation is concerned.
- sparker0
using it is fine. using incorrectly isn't.
he needs to realize that either you need to write xhtml or lose the doctype. there is no meshing of the two. either use html 4.0 specs or xhtml 1.0 specs...
try taking out the doctype decloration and see if that makes it work.
- Skylark0
well, I think I need to do some studying onm both css and xtml...been away from the game a while and are finally back.
gabriel: tryed what you said, i dunno if I did it right though..it did not work...
- gabriel_pc0
When I tried changing it to the display: block it came up ok in IE5.2 on OSX.
- Skylark0
sorry for being igonrant, but do I out that in class="navbar" ?
- Skylark0
thanks sparker..I'll check those links out..
- gabriel_pc0
the change will be in your stylesheet
something like this:
.navbar {
display: block;
...(rest of existing styles)
}
- Skylark0
ok...I did it like that, but I put it last after all the other existing styles....does that make a diffrent?
- sparker0
no.