Forum Moderators: not2easy
My queston is how do I get this site to work in Firefox and IE 5 and IE6
i ahve done a couple of test pages but for some reason the css that i put together will either work in one browser and not the other should I set up different CSS pages for each browser so one CSS set up for only Fire fox and one for IE?
if so how do I go about doing this making the browser read which browser it is curently using? any help any one can offer regarding this thread will greatly be appreachiated.
many thanks
Many say the best way is to create the site using FF as primary test browser then adjust CSS so all is well in I.E etc..
I have done it the other way round (tested on I.E from start) and am now trying adjust the style sheet which is proving to be a nightmare :(
I build with I.E. and FF, and yes use FF to guage how CSS should work in a compliant browser. I can get good results in both, it does take a little longer at first but you do speed up eventually
There is allot of fiddling, but I have found it INCREDIBLY helpful to build and whilst buildiing keep checking results in FF AND I.E. at the same time - there is no better way to learn about all the little discrepencies.
And Yes WebmasterWorld is brilliant, so very many helpful people...
ZA
e.g. if you have a div with id of container which holds some paragraphs, instead of:
#container {
padding-left:12px;
padding-right:4px;
width:200px;
}
use:
#container {
width:200px;
}
#container p{
margin-left:12px;
margin-right:4px;
}
more questions to follow
thanksagain everyone for your help so far
All my layouts work in IE5+ & FF. I use: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">, and with this i use the!important rule for FF, so that the layout renders the same. As we are not allowed to place links here give creative-xperience in a search engine and go to the com site, click on references and then you can check the css out.
Here an example of the important rule:
#container{
position:relative;
text-align:left;
margin:0 auto 0;
width:974px!important; /* for FF */
width:988px;
padding-top:182px;
padding-left:12px;
}
#icons{
position:absolute;
top:119px;
left:0;
width:191px!important;
width:216px;
height:30px!important;
height:32px;
padding-top:2px;
padding-left:25px;
}