overlordofevil Posted January 27, 2010 Share Posted January 27, 2010 Hello All, I am still pretty new to css and I have a few issues/questions. 1) Do you have to write multiple CSS pages for different browsers or can you write one page that all browser can use. - My pages work fine in Firefox but IE the layout is off. 2) how can you setup a page break with a css page. I have tried to do this and it just isn't working for me. I figure all the issues are probably a mistake in my code so any suggestions on what to look at or a resource that will help teach me what to do properly woudl be appreciated. Thanks Bill Quote Link to comment https://forums.phpfreaks.com/topic/190025-question-about-css/ Share on other sites More sharing options...
RussellReal Posted January 28, 2010 Share Posted January 28, 2010 #1 where as browser to browser css is rendered differently, proper css should never be affected by this, for some simple instructions to overlook such browser problems.. 1) Use margin instead of padding whenever possible. using a container div inside of a border or parent div, with the container div having a margin setting, instead of having 1 div in total with border + padding, as browsers handle padding differently. 2) There is an IE6 specific css hack which doesn't validate, however, it will only affect IE browsers, * html element { } firefox and other browsers will see the * for all elements then see html and cancel because there is no elements outside of html, but IE will still render the css the way it normally would. #2 a page break..? just use br? Quote Link to comment https://forums.phpfreaks.com/topic/190025-question-about-css/#findComment-1002733 Share on other sites More sharing options...
haku Posted January 28, 2010 Share Posted January 28, 2010 The more practice you have, the less you need IE specific stylesheets. Russel real gave the reasons why for the most part. But if you need to create IE specific browser sheets, you can use conditional comments. Quote Link to comment https://forums.phpfreaks.com/topic/190025-question-about-css/#findComment-1002757 Share on other sites More sharing options...
overlordofevil Posted January 30, 2010 Author Share Posted January 30, 2010 Thanks for the feedback.. I am using padding not the margin option along with 4 div's so that might explain the issue i am having with IE. Thanks for the info I appreciate it. Bill Quote Link to comment https://forums.phpfreaks.com/topic/190025-question-about-css/#findComment-1004397 Share on other sites More sharing options...
RussellReal Posted January 30, 2010 Share Posted January 30, 2010 Add me to MSN if you have any problems and I'm available I'll help you out Quote Link to comment https://forums.phpfreaks.com/topic/190025-question-about-css/#findComment-1004402 Share on other sites More sharing options...
overlordofevil Posted January 31, 2010 Author Share Posted January 31, 2010 Thanks again but it wasn't an issue with my css... grr i had an issue on one of my pages in the html layout so that caused a problem with the layout.... sigh.... i feel silly now... Bill Quote Link to comment https://forums.phpfreaks.com/topic/190025-question-about-css/#findComment-1004489 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.