Jul 26, 2008

Rendereng Problem

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

free web hosting

Rendereng Problem

kvarnerexpress
Hi,

I stambled into strange rendereng problem in firefox 1.0.7(on windows xp) when using border-collapse:collapse and direction:rtl css styles.

here is a little test-case html file (see how firefox renders table in first case):

Code:

CODE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>border-collapse and rtl</title>
<style type="text/css">

body{padding:50px;}

table td{
padding:5px;
border-width:1px;border-color:#ccc;border-style:solid;
}

#tblrtl{border-collapse:collapse; direction:rtl;}

#tbl{border-collapse:collapse;}

#tblnospcing{direction:rtl;}

</style>
</head>
<body>
<div><b>case 1:</b> with rtl and with border-spacing</div>
<table id="tblrtl" cellspacing="0">
<tr><td>תא 1</td><td>כאן יש הרבה יותר טקסט</td><td>קצר ולעיניין</td></tr>
</table>

<br><br>
<div><b>case 2:</b> without rtl and border-spacing</div>
<table id="tbl" cellspacing="0">
<tr><td>תא 1</td><td>כאן יש הרבה יותר טקסט</td><td>קצר ולעיניין</td></tr>
</table>

<br><br>
<div><b>case 3:</b> with rtl but without border-spacing</div>
<table id="tblnospcing" cellspacing="0">
<tr><td>תא 1</td><td>כאן יש הרבה יותר טקסט</td><td>קצר ולעיניין</td></tr>
</table>
</body>
</html
>

notice that in case 3 when ommiting border-collapse firefox renders table fine.

by the way opera renders exactly like firefox does...

do you understand why ff renders it like that?
thanks

 

 

 


Reply

jlhaslip
Check this link out: http://www.westciv.com/style_master/academ...ement_type.html
I notice that border-collapse is not very well supported in almost any Browser. And they list no support at all for direction.

Why the need for rtl direction? Can it be avoided?

Reply

Tyssen
Border-collapse is supported by IE5+, N7+ and Opera so we're talking about at least 99% of users. And direction is right to left cos it's in a non-Roman script.
It looks like it could be a bug in FF 1.0.7, but it's probably not worth worrying about cos it's been fixed for FF 1.5 (I checked in both).

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : rendereng


    Looking for rendereng, problem

Searching Video's for rendereng, problem
advertisement



Rendereng Problem



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE