crobnson
01-04-2006, 08:30 AM
Hello,
I have been working on a volunteer project to incorporate a new graphical header to a blogsite. I finally was able to successfully have the header fill 100% of the space. It works perfect in IE6, exceptable results in NN and does not work at all in FF. The website where I am testing out the design is: http://crobnson.web1000.com/itm.html. This is what I have on there now and what works beautifully in IE (exceptable results in NN):
* html #photo {
position: relative; /* sets a new 'positioning context' so the child
image can be 100% */
left: -7px; /* get around padding from parent element */
margin-right: -27px; /* should be approximately the width of the
right col */
margin-top:0px;
padding-top:0px;
}
#photo img {
width: 100%;
height: 160px;
}
Prior to trying this out, I had the following on there:
#photo {width: 81%;height: 160px;margin-top:0px;padding-top:1px}
* html #photo {width: 100%;height: 160px;margin-top:0px;padding-top:1px}
These 2 together worked fine. But I prefer the new code in IE because it totally fills the space. As far as FF and NN are concerned, I do not have a problem with the banner being only 81%. All of my testing showed that that was the best I could hope for. Time is running out and I would like to just get the header at the top of the page instead of the bottom. Is there any possible way that I can hide the IE code from FF so that I can put the code that does work for them back on? Or some other way to make this work in FF?
I thank you in advance for your assistance,
Christine
I have been working on a volunteer project to incorporate a new graphical header to a blogsite. I finally was able to successfully have the header fill 100% of the space. It works perfect in IE6, exceptable results in NN and does not work at all in FF. The website where I am testing out the design is: http://crobnson.web1000.com/itm.html. This is what I have on there now and what works beautifully in IE (exceptable results in NN):
* html #photo {
position: relative; /* sets a new 'positioning context' so the child
image can be 100% */
left: -7px; /* get around padding from parent element */
margin-right: -27px; /* should be approximately the width of the
right col */
margin-top:0px;
padding-top:0px;
}
#photo img {
width: 100%;
height: 160px;
}
Prior to trying this out, I had the following on there:
#photo {width: 81%;height: 160px;margin-top:0px;padding-top:1px}
* html #photo {width: 100%;height: 160px;margin-top:0px;padding-top:1px}
These 2 together worked fine. But I prefer the new code in IE because it totally fills the space. As far as FF and NN are concerned, I do not have a problem with the banner being only 81%. All of my testing showed that that was the best I could hope for. Time is running out and I would like to just get the header at the top of the page instead of the bottom. Is there any possible way that I can hide the IE code from FF so that I can put the code that does work for them back on? Or some other way to make this work in FF?
I thank you in advance for your assistance,
Christine