Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/190025-question-about-css/
Share on other sites

#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?

Link to comment
https://forums.phpfreaks.com/topic/190025-question-about-css/#findComment-1002733
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.