Computer Science Canada HTML w/ CSS |
Author: | Numbah51 [ Sun Mar 11, 2007 9:37 pm ] | ||||
Post subject: | HTML w/ CSS | ||||
This isn't looking quite right in firefox but it looks exactly how i want in ie. Any help would be appreciated GOOD in ie: http://img457.imageshack.us/img457/7919/goodyt9.gif BAD in ff: http://img247.imageshack.us/img247/701/badic7.gif HTML (index.php)
Stylesheet (main.css)
|
Author: | rdrake [ Mon Mar 12, 2007 7:55 am ] | ||
Post subject: | Re: HTML w/ CSS | ||
It doesn't render because Firefox requires a proper HTML page in order to render it. You are missing a doctype, head, title, and of course the body tag. Your document should be something like the following.
w3c wrote: Defines text that has been deleted in a document. You want to define your navigation as deleted?
Also a suggestion, the Web Developer Toolbar is a handy addition to Firefox. Highly recommended. |
Author: | Numbah51 [ Mon Mar 12, 2007 10:35 am ] |
Post subject: | RE:HTML w/ CSS |
i am using del so i can center the navigation (works in ie) and when i remove it, the navigation is up a bit but still not perfect. |
Author: | PaulButler [ Mon Mar 12, 2007 1:35 pm ] | ||
Post subject: | Re: HTML w/ CSS | ||
To center a div in anything except IE, set the div's left and right margins to "auto". For example, in the css:
The rest of the problems probably have to do with how IE and FF treat padding differently, but it would take a while to figure out what exactly is the problem. When I get in a situation like this I would /* block comment */ the whole CSS file and uncomment it a few lines at a time, reloading it in both IE and FF after each reload, and make sure they still look the same. |
Author: | Fevian [ Mon Mar 12, 2007 5:03 pm ] |
Post subject: | RE:HTML w/ CSS |
Yeah. You really need a full HTML document for it to work. You are using XHTML 1.0, but it's got a few errors. For syntax and many more good tutorials about web design, include HTML/XHTML, XML, CSS, PHP, and all kinds of stuff. It's pretty good and helped me out a bit in the past. |