Webforumz's RSS FeedRSS Webforumz RegistrationRegister Contact Webforumz StaffContact

Firefox CSS problem with hebrew (works ok on IE)

This is a discussion on "Firefox CSS problem with hebrew (works ok on IE)" within the Web Page Design section. This forum, and the thread "Firefox CSS problem with hebrew (works ok on IE) are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Aug 4th, 2006, 13:00
New Member
Join Date: Aug 2006
Location: TelAviv
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Firefox CSS problem with hebrew (works ok on IE)

Hello,
Im building a webiste and i run into a problem with some css code that only seems to be working fine on IE.


First let me give a simple example of what im doing. its a simple list arranged horizontically:


Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1255">
<style type="text/css">
#menu{
border-top: 2px solid #000000;border-bottom: 2px solid #000000;
padding:4px;
text-align: right;
}
#menu ul {
margin: 0px;
padding: 0px;
}
#menu li {
display: inline;
padding: 0px 20px 0px 0px;
}
</style>
</head>
<body>
<div id="menu">
<ul>
<li>One</li>
<li>Two</li>
<li>three</li>
<li>Four</li>
<li>Five</li>
</ul>
</div>
</body>
</html>
i use a 20px padding to the right of each <li> entry to add space between the items of the list.

As soon as i change the <li> items to hebrew i lose the 20px paddin. instead of having a 20px space between each list entry i get the whole 100px (5 times 20px) to the before the first item with no space between the items.

This problem only occurs when i use FF. on IE it works fine.

Im adding screen caps as well.
http://img394.imageshack.us/my.php?image=examplefx4.gif

please help me with my problem, thank you all

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old Aug 4th, 2006, 14:28
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Firefox CSS problem with hebrew (works ok on IE)

My initial response is that your problem lies with this line:
Code: Select all
META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1255">
Use an international charset such as the ISO-8859-8 which is for Hebrew or probably better still, the utf-8 or utf-16.

You might find that if you move to one of the utf sets that some characters in your code/text will no longer be valid and will have to be replaced with special characters.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Aug 4th, 2006, 16:12
New Member
Join Date: Aug 2006
Location: TelAviv
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Firefox CSS problem with hebrew (works ok on IE)

ok, i tried UTF-8 and sadly the problem still persists. i followed the instructions on the W3C website just to make sure do everything right (http://www.w3c.org.il/HebrewOnWebh.html)

so its not the charset, and both charsets work fine on IE, the only thing i make out of it all is that its a FireFox bug (?)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Aug 4th, 2006, 16:53
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Firefox CSS problem with hebrew (works ok on IE)

Just as a matter of interest, try in Opera and let us know the outcome.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Aug 4th, 2006, 17:41
New Member
Join Date: Aug 2006
Location: TelAviv
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Firefox CSS problem with hebrew (works ok on IE)

both 1255 and utf-8 working fine on Opera
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Aug 5th, 2006, 16:16
New Member
Join Date: Aug 2006
Location: TelAviv
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Firefox CSS problem with hebrew (works ok on IE)

just in case anyone would be willing to try it, here is the code with the hebrew fonts:

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1255">
<style type="text/css">
#menu{
border-top: 2px solid #000000;border-bottom: 2px solid #000000;
padding:4px;
text-align: right;
}
#menu ul {
margin: 0px;
padding: 0px;
}
#menu li {
display: inline;
padding: 0px 20px 0px 0px;
}
</style>
</head>
<body>
<div id="menu">
<ul>
<li>אחת</li>
<li>שתיים</li>
<li>שלוש</li>
<li>ארבע</li>
<li>חמש</li>
</ul>
</div>
</body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Aug 5th, 2006, 18:06
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Firefox CSS problem with hebrew (works ok on IE)

When I try to copy the code into my editor, the Hebrew characters are replcaed by ? as it obviously doesn't know what they are.

Within the editor you are using, is there an option to run the file through something that will convert the characters into their unicode equivalent code.

For example, here in the uk, when using a £ sign in a file coded to utf-8, I replace the £ with £ otherwise it shows as ? in IE and Firefox tells me there is a format error in my file.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
firefox, css, problem, hebrew, works

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
flash movie works in IE but not in firefox forry Web Page Design 8 May 19th, 2008 16:01
Floating works fine in firefox but not IE ! marSoul Web Page Design 13 Dec 18th, 2007 19:37
insert works in firefox but not i.e. gecko PHP Forum 6 Aug 22nd, 2007 06:06
Flash only works in Firefox fosfora Flash & Multimedia Forum 33 Jul 12th, 2007 17:53
Centre column of 3 col layout problem - Works in IE but not firefox!? audiopleb Web Page Design 6 Jun 8th, 2006 17:20


All times are GMT. The time now is 19:42.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8