Problem With Chrome Right-to-left Paragraphs
I've started noticing this Chrome problem recently: Some paragraphs inside a table-cell within a right-to-left div - are randomly displayed left-to-right. The slower the server, th
Solution 1:
After struggling with this for a few days, I've found a workaround, by refreshing all paragraphs locally after everything is loaded:
<html>
<head>
<script>
function refreshParagraphs() {
var paragrahpContent;
var paragraphs = document.getElementsByTagName("P");
for (i = 0; i < paragraphs.length; i++) {
paragrahpContent = paragraphs[i].innerHTML;
paragraphs[i].innerHTML = paragrahpContent;
}
}
</script>
</head>
<body onload="refreshParagraphs();">
<div style="direction:rtl;">
<p>
long paragraph
</p><p>
another long paragraph
</p><p>
. . .
. . .
</p><p>
last long paragraph
</p>
</div>
</body>
</html>
Post a Comment for "Problem With Chrome Right-to-left Paragraphs"