Loading...
 
Skip to main content

Themes


Short "bars" in Articles with IE7 but not Firefox

Hi,

I have a problem with the length of the bars in "Articles".
Each bar ends with the last letter of the title in IE7 but with Firefox
everything is ok. Unfortunately I need it to work properly with IE7 as well.

Here you can check out two screenshots I have made. One with IE7 and one with FF.
http://img268.imageshack.us/img268/2372/articlesfirefox.jpgQuestion
http://img524.imageshack.us/img524/6747/articlesie7.jpgQuestion

Does anybody know how to fix this?

Bye
Tischi

The problem is that IE7 is buggy. Headings are block elements according to CSS standards. Block elements by definition go the full width of whatever they're contained in. This is why the heading background is full-width in Firefox and other standards-compliant browsers.

Quite a bit of time has been spent making things in Tiki work for IE6 and IE7, but this particular detail didn't get the attention. To work around IE7's bug, you could try making a new file with this path and name:

styles/coelesce/ie7.css

with this content:

div.articletitle h2 {background: none}
div.articletitle {background: url(tiki-centerbg.jpg) repeat-x}

This (for IE7 only) will remove the background from the heading and add it to the div that contains the heading (and the subtitle). I just tried this and it does seem to work ok; we should probably add this to the Tiki package. Thanks for pointing out the problem.

Edited: background url corrected.

-- Gary


You're welcome. About the cut-off text, try changing the first item to this:

div.articletitle h2 {
background: none;
line-height: normal;
}

Another bug workaround.

-- Gary


Thank's again, Gary!
This also has worked out perfectly. I am really happy to have this
all fixed so quickly 😀

Bye Tischi

PS: You should add this too..