Stylesheets in all browsers |
Stylesheets in all browsers |
![]()
Post
#1
|
|
![]() Member ![]() ![]() Group: Member Posts: 17 Joined: Jun 2007 Member No: 532,062 ![]() |
So I'm trying to mess with stylesheets to hopefully make editing the layout and whatnot on my boyfriend's site a little bit easier. It's working in AOL, and IE, but it isn't in Firefox. How do I get it to work in all browsers?
Any help is appreciated. Thanks. :) |
|
|
![]() |
![]()
Post
#2
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Member Posts: 122 Joined: Feb 2005 Member No: 106,057 ![]() |
the \par coding is actually the coding for the RTF format. From what I can see, you probably tried to edit the css file in wordpad--this will only cause trouble for you. Use plain old notepad--the extra formatting codes will only mess up your CSS.
I agree, validation is hardly everything. It'll check that the XHTML is complaint, but compliance with the standards hardly means that it'll comply with how you want it to look. In addition, a lot of browsers *cough*IE*cough* don't follow the standards in the first place. Usually I find that most CSS is portable across browsers without much work; however, making any specific HTML file to look the same across all the browsers using that CSS file is a completely different story. You might need some custom styles for particular parts of the page for everything to look right in all the browsers. Big hint for getting everything to look right: if things don't align right with different browsers, try explicitly setting the margin: and padding: values for all the HTML elements involved. In my experince, the default numbers are COMPLETELY different for each browser, and cause all sorts of chaos if you forget about them. |
|
|
![]() ![]() |