Forums
This topic is locked
Browser display problem
Posted 30 Sep 2005 01:32:05
1
has voted
30 Sep 2005 01:32:05 Chris Lloyd posted:
I have a page on a site built using DWMX and CSS that displays perfectly in opera, Firefox and Navigator but only shows images in the content div in IE. Left click and highlight the content will then bring it up.This behaviour doesn't happen on the other pages of the site. Some suggestions appreciated - cheers Chris
URL is www.sudbury.co.nz/links.htm
Replies
Replied 05 Oct 2005 19:58:27
05 Oct 2005 19:58:27 Ken Dobson replied:
I've never seen this before and still not quite sure what the exact cause of it is. I've located the culprit lines in your CSS file. Below is your CSS code that you need to modify. Remove each of the <b>display: block;</b> lines and your text will show up like it should.
img {
<font color=red>display: block;</font id=red>
margin-left: auto;
margin-right: auto;
margin-top: 20px /* give all images a top margin */
border: 0;
}
img.sp {
<font color=red>display: block;</font id=red>
margin-left: 0;
margin-right: 0;
margin-top: 20px /* give all images a top margin */
border: 0;
}
a img {
border: 0px none;
<font color=red>display: block; /* removes extra space....</font id=red>
}
In your #Center layer, if you remove the background color, your text will also show up. I'm sure you don't want to do this though, as it will remove the look you were going for. . .
Hope this helps.
img {
<font color=red>display: block;</font id=red>
margin-left: auto;
margin-right: auto;
margin-top: 20px /* give all images a top margin */
border: 0;
}
img.sp {
<font color=red>display: block;</font id=red>
margin-left: 0;
margin-right: 0;
margin-top: 20px /* give all images a top margin */
border: 0;
}
a img {
border: 0px none;
<font color=red>display: block; /* removes extra space....</font id=red>
}
In your #Center layer, if you remove the background color, your text will also show up. I'm sure you don't want to do this though, as it will remove the look you were going for. . .
Hope this helps.
Replied 28 Oct 2005 03:49:42
28 Oct 2005 03:49:42 Chris Lloyd replied:
Thanks
I'll try that - I did find a work around that corrected the display.