Log In · Register

 
Stylesheets in all browsers
giraffasaurous
post Jul 2 2007, 06:16 PM
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. :)
 
 
Start new topic
Replies
threepointone
post Jul 19 2007, 11:25 PM
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.
 

Posts in this topic
giraffasaurous   Stylesheets in all browsers   Jul 2 2007, 06:16 PM
tripvertigo   what are you trying to do?   Jul 2 2007, 08:15 PM
phoenixdown   all browsers? that really isn't neccessary. ie...   Jul 3 2007, 03:29 PM
synkro   you probably have some errors in your coding. can ...   Jul 4 2007, 12:24 AM
giraffasaurous   The codes I'm using is here: http://www.freewe...   Jul 5 2007, 04:30 PM
The Markster   QUOTE(giraffasaurous @ Jul 5 2007, 02:30 ...   Jul 14 2007, 05:30 PM
tripvertigo   right off the bat, css files do not use <title...   Jul 6 2007, 12:25 AM
1angel3   Another thing to make sure your layout works in al...   Jul 9 2007, 05:28 PM
tripvertigo   QUOTE(1angel3 @ Jul 9 2007, 03:28 PM) Ano...   Jul 11 2007, 08:38 PM
1angel3   ^ well it's a start. If you understand your co...   Jul 13 2007, 01:50 PM
tripvertigo   99% of the time, my shit passes validation and i s...   Jul 14 2007, 12:25 AM
threepointone   the \par coding is actually the coding for th...   Jul 19 2007, 11:25 PM
Chicago   the coding above is much neater, and looks like it...   Jul 21 2007, 11:02 PM


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: