473,386 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Page looks crooked in Mozilla

The web site is in two languages, one in English and the other in Farsi
(Persian) which is a right-to-left language. So, I used two
stylesheets, with the same info, and changed the right and left
properties (i.e. the left-margin:20px in English version changed to
right-margin:20px in farsi version).
It works fine in IE in both languages. In Mozilla, the English version
works fine but the Farsi version looks crooked. the menu and everything
else is shifted to the left. I spent a couple of days trying to figure
out what is wrong and I can't (being new to CSS). I would GREATLY
appreciate any assistance.
I am not sure if this is appropriate or if it helps but here is the
structure of the pages using CSS (the indentations imply <div
id="header" is contained within <div id="container", ...):

English pages:

Container 800px, relative
Header (relative, 800x226)
Logo (absolute, 150x100, top:82, left:550)
key_visual (absolute, 437x127, top:82, left:86)

container1 (800px)
left_column
left_column_container (padding:0; margin:0)
main_nav_container (margin: 30px 0 0 0)
<Flash menu>
main_container (padding:0 20px 0 60px), relative
layout_table (relative)
right_column (500x475)
<aps_content_placeholder>
sub_container2 (padding:18 0 20 5px), 495
slogan (margin: 0 0 10px 0)
content_container (490px)

footer (800x120, margin:0, padding:0)
footer_line (margin:0 0 0 195) 500x40
footer_text (margin:10 0 0 25)

Farsi version:

container (800px, relative)
header (relative, 800x226)
logo (absolute, 437x127, top:82, left:86)
key_visual (absolute, 437x127, top:82, left:263)

container1 (800px)
main_container (padding:0 60px 0 20px)
layout_table (relative)
right_column (500x475)
<aps_content_placeholder>
sub_container2 (495px, padding:18 0 20 5)
slogan (padding: 0 0 10 0)
content_container (490px)

left_column
left_column_container
main_nav_container (margin: 30 12 0 0)
<menu>
Footer (800x120)
footer_line (margin:0 195 0 0) 500x40
footer_text (margin: 10 25 0 0)

The pages:
http://www.legalpersian.com/en/home.aspx (in English)
http://www.legalpersian.com/fa/home.aspx (in Farsi)

Sep 13 '06 #1
10 1969
Am 13.09.2006 19:45 schrieb as*******@hotmail.com:
The web site is in two languages, one in English and the other in Farsi
(Persian) which is a right-to-left language. So, I used two
stylesheets, with the same info, and changed the right and left
properties (i.e. the left-margin:20px in English version changed to
right-margin:20px in farsi version).
It works fine in IE in both languages. In Mozilla, the English version
works fine but the Farsi version looks crooked. the menu and everything
else is shifted to the left. I spent a couple of days trying to figure
out what is wrong and I can't (being new to CSS). I would GREATLY
appreciate any assistance.
I am not sure if this is appropriate or if it helps but here is the
structure of the pages using CSS (the indentations imply <div
id="header" is contained within <div id="container", ...):
....
The pages:
http://www.legalpersian.com/en/home.aspx (in English)
http://www.legalpersian.com/fa/home.aspx (in Farsi)
At least your Javascript seems to be buggy - I see +40 errors when you
page loads ("AniMenu_DoFSCommand is not defined" in some anonymous
function). The CSS does not validate. Try fixing the errors.
Sep 14 '06 #2

Christian Kirsch wrote:
Am 13.09.2006 19:45 schrieb as*******@hotmail.com:
The web site is in two languages, one in English and the other in Farsi
(Persian) which is a right-to-left language. So, I used two
stylesheets, with the same info, and changed the right and left
properties (i.e. the left-margin:20px in English version changed to
right-margin:20px in farsi version).
It works fine in IE in both languages. In Mozilla, the English version
works fine but the Farsi version looks crooked. the menu and everything
else is shifted to the left. I spent a couple of days trying to figure
out what is wrong and I can't (being new to CSS). I would GREATLY
appreciate any assistance.
I am not sure if this is appropriate or if it helps but here is the
structure of the pages using CSS (the indentations imply <div
id="header" is contained within <div id="container", ...):
...
The pages:
http://www.legalpersian.com/en/home.aspx (in English)
http://www.legalpersian.com/fa/home.aspx (in Farsi)
At least your Javascript seems to be buggy - I see +40 errors when you
page loads ("AniMenu_DoFSCommand is not defined" in some anonymous
function). The CSS does not validate. Try fixing the errors.
Thanks for the reply Christian.
I open Firefox's Javascript console and then open the pages but don't
see any errors. Also, when I open the pages, they don;t pop up any
errors. How did you manage to have the errors listed?

Sep 14 '06 #3
Am 14.09.2006 16:24 schrieb as*******@hotmail.com:
Christian Kirsch wrote:
>Am 13.09.2006 19:45 schrieb as*******@hotmail.com:
>>The web site is in two languages, one in English and the other in Farsi
(Persian) which is a right-to-left language. So, I used two
stylesheets, with the same info, and changed the right and left
properties (i.e. the left-margin:20px in English version changed to
right-margin:20px in farsi version).
It works fine in IE in both languages. In Mozilla, the English version
works fine but the Farsi version looks crooked. the menu and everything
else is shifted to the left. I spent a couple of days trying to figure
out what is wrong and I can't (being new to CSS). I would GREATLY
appreciate any assistance.
I am not sure if this is appropriate or if it helps but here is the
structure of the pages using CSS (the indentations imply <div
id="header" is contained within <div id="container", ...):
...
>>The pages:
http://www.legalpersian.com/en/home.aspx (in English)
http://www.legalpersian.com/fa/home.aspx (in Farsi)
At least your Javascript seems to be buggy - I see +40 errors when you
page loads ("AniMenu_DoFSCommand is not defined" in some anonymous
function). The CSS does not validate. Try fixing the errors.

Thanks for the reply Christian.
I open Firefox's Javascript console and then open the pages but don't
Move your cursor over the menu (which doesn't show any text in the
farsi version). This gives Javascript errors.
see any errors. Also, when I open the pages, they don;t pop up any
errors. How did you manage to have the errors listed?
As I said: The CSS does not *validate*. Use the validator at
http://jigsaw.w3.org/css-validator/
The Farsi version seems to be ok now (did you change anything),
there's still one warning in the english version, though.

Sep 14 '06 #4

Christian Kirsch wrote:
Am 14.09.2006 16:24 schrieb as*******@hotmail.com:
Christian Kirsch wrote:
Am 13.09.2006 19:45 schrieb as*******@hotmail.com:
The web site is in two languages, one in English and the other in Farsi
(Persian) which is a right-to-left language. So, I used two
stylesheets, with the same info, and changed the right and left
properties (i.e. the left-margin:20px in English version changed to
right-margin:20px in farsi version).
It works fine in IE in both languages. In Mozilla, the English version
works fine but the Farsi version looks crooked. the menu and everything
else is shifted to the left. I spent a couple of days trying to figure
out what is wrong and I can't (being new to CSS). I would GREATLY
appreciate any assistance.
I am not sure if this is appropriate or if it helps but here is the
structure of the pages using CSS (the indentations imply <div
id="header" is contained within <div id="container", ...):

...
The pages:
http://www.legalpersian.com/en/home.aspx (in English)
http://www.legalpersian.com/fa/home.aspx (in Farsi)

At least your Javascript seems to be buggy - I see +40 errors when you
page loads ("AniMenu_DoFSCommand is not defined" in some anonymous
function). The CSS does not validate. Try fixing the errors.
Thanks for the reply Christian.
I open Firefox's Javascript console and then open the pages but don't

Move your cursor over the menu (which doesn't show any text in the
farsi version). This gives Javascript errors.
see any errors. Also, when I open the pages, they don;t pop up any
errors. How did you manage to have the errors listed?
As I said: The CSS does not *validate*. Use the validator at
http://jigsaw.w3.org/css-validator/
The Farsi version seems to be ok now (did you change anything),
there's still one warning in the english version, though.
Hi Christian,
yes, I fixed the two errors on the CSS file in Farsi version of the
page; they validated. The warnings seem to be related to missing
'background-color'.
But I still can't see any javascript errors. When I go to
http://www.legalpersian.com/fa/home.aspx I see the menu and moving my
mouse over it does not display any errors. Also, I don't see any errors
on the javascript console. I tried it with Netscape 7.1, same thing:
crooked page but no errors.

Sep 14 '06 #5

Christian Kirsch wrote:
Am 14.09.2006 16:24 schrieb as*******@hotmail.com:
Christian Kirsch wrote:
Am 13.09.2006 19:45 schrieb as*******@hotmail.com:
The web site is in two languages, one in English and the other in Farsi
(Persian) which is a right-to-left language. So, I used two
stylesheets, with the same info, and changed the right and left
properties (i.e. the left-margin:20px in English version changed to
right-margin:20px in farsi version).
It works fine in IE in both languages. In Mozilla, the English version
works fine but the Farsi version looks crooked. the menu and everything
else is shifted to the left. I spent a couple of days trying to figure
out what is wrong and I can't (being new to CSS). I would GREATLY
appreciate any assistance.
I am not sure if this is appropriate or if it helps but here is the
structure of the pages using CSS (the indentations imply <div
id="header" is contained within <div id="container", ...):

...
The pages:
http://www.legalpersian.com/en/home.aspx (in English)
http://www.legalpersian.com/fa/home.aspx (in Farsi)

At least your Javascript seems to be buggy - I see +40 errors when you
page loads ("AniMenu_DoFSCommand is not defined" in some anonymous
function). The CSS does not validate. Try fixing the errors.
Thanks for the reply Christian.
I open Firefox's Javascript console and then open the pages but don't

Move your cursor over the menu (which doesn't show any text in the
farsi version). This gives Javascript errors.
see any errors. Also, when I open the pages, they don;t pop up any
errors. How did you manage to have the errors listed?
As I said: The CSS does not *validate*. Use the validator at
http://jigsaw.w3.org/css-validator/
The Farsi version seems to be ok now (did you change anything),
there's still one warning in the english version, though.
Hi Christian,
yes, I fixed the two errors on the CSS file in Farsi version of the
page; they validated. The warnings seem to be related to missing
'background-color'.
But I still can't see any javascript errors. When I go to
http://www.legalpersian.com/fa/home.aspx I see the menu and moving my
mouse over it does not display any errors. Also, I don't see any errors
on the javascript console. I tried it with Netscape 7.1, same thing:
crooked page but no errors.
Is it possible to send me the errors? I am not sure why you see the
errors and I don't.

Sep 14 '06 #6
In article <11**********************@h48g2000cwc.googlegroups .com>,
as*******@hotmail.com wrote:
Christian Kirsch wrote:
[snip]

Move your cursor over the menu (which doesn't show any text in the
farsi version). This gives Javascript errors.
see any errors. Also, when I open the pages, they don;t pop up any
errors. How did you manage to have the errors listed?
As I said: The CSS does not *validate*. Use the validator at
http://jigsaw.w3.org/css-validator/
The Farsi version seems to be ok now (did you change anything),
there's still one warning in the english version, though.
Hi Christian,
yes, I fixed the two errors on the CSS file in Farsi version of the
page; they validated. The warnings seem to be related to missing
'background-color'.
But I still can't see any javascript errors. When I go to
http://www.legalpersian.com/fa/home.aspx I see the menu and moving my
mouse over it does not display any errors. Also, I don't see any errors
on the javascript console. I tried it with Netscape 7.1, same thing:
crooked page but no errors.
Is it possible to send me the errors? I am not sure why you see the
errors and I don't.
I opened your page in Firefox 1.5, then opened the Javascript console,
and saw lots of errors. They appear to be related to the English page,
not the Farsi one.

I get:

Error: Error in parsing value for property 'font'. Declaration dropped.
Source File: http://www.legalpersian.com/en/assets/css/EngStyle.css
Line: 48

I'm not sure what you mean by "looking crooked" (slanted?), but there
does appear to be an alignment problem with the menu and text divs
relative to the book "edges" in the background image - is this what
you were referring to?
Sep 14 '06 #7

David Stone wrote:
In article <11**********************@h48g2000cwc.googlegroups .com>,
as*******@hotmail.com wrote:
Christian Kirsch wrote:
[snip]
>
Move your cursor over the menu (which doesn't show any text in the
farsi version). This gives Javascript errors.
>
see any errors. Also, when I open the pages, they don;t pop up any
errors. How did you manage to have the errors listed?
As I said: The CSS does not *validate*. Use the validator at
http://jigsaw.w3.org/css-validator/
The Farsi version seems to be ok now (did you change anything),
there's still one warning in the english version, though.
Hi Christian,
yes, I fixed the two errors on the CSS file in Farsi version of the
page; they validated. The warnings seem to be related to missing
'background-color'.
But I still can't see any javascript errors. When I go to
http://www.legalpersian.com/fa/home.aspx I see the menu and moving my
mouse over it does not display any errors. Also, I don't see any errors
on the javascript console. I tried it with Netscape 7.1, same thing:
crooked page but no errors.
Is it possible to send me the errors? I am not sure why you see the
errors and I don't.

I opened your page in Firefox 1.5, then opened the Javascript console,
and saw lots of errors. They appear to be related to the English page,
not the Farsi one.

I get:

Error: Error in parsing value for property 'font'. Declaration dropped.
Source File: http://www.legalpersian.com/en/assets/css/EngStyle.css
Line: 48

I'm not sure what you mean by "looking crooked" (slanted?), but there
does appear to be an alignment problem with the menu and text divs
relative to the book "edges" in the background image - is this what
you were referring to?
Hi Christian,
Yes, the mis-alignment is waht I was referring to. I fixed the error in
css file and ran it through validator and it went through.
I tried everything to get the mis-aligment working but to no avail. The
css for persian is exactly the same as ENglish except for sitching left
and right values (leftmargin changed to right-margin, etc.) and it
looks fine in IE. I really appreciate your help.

Sep 14 '06 #8
In article <11**********************@e3g2000cwe.googlegroups. com>,
as*******@hotmail.com wrote:
David Stone wrote:
In article <11**********************@h48g2000cwc.googlegroups .com>,
[snip]

I'm not sure what you mean by "looking crooked" (slanted?), but there
does appear to be an alignment problem with the menu and text divs
relative to the book "edges" in the background image - is this what
you were referring to?
Hi Christian,
Yes, the mis-alignment is waht I was referring to. I fixed the error in
css file and ran it through validator and it went through.
I tried everything to get the mis-aligment working but to no avail. The
css for persian is exactly the same as ENglish except for sitching left
and right values (leftmargin changed to right-margin, etc.) and it
looks fine in IE. I really appreciate your help.
Not Christian, David.

There appear to be a number of common issues with IE vs FF when dealing
with images and tables. A google search on "looks different" should
pull up most of them! I'm guessing that your problem either arises from
one of these, or from an error in one of your px values for sizing and
spacing your divs, etc. that is worked around by IE but not FF.
Sep 15 '06 #9

David Stone wrote:
In article <11**********************@e3g2000cwe.googlegroups. com>,
as*******@hotmail.com wrote:
David Stone wrote:
In article <11**********************@h48g2000cwc.googlegroups .com>,
[snip]
>
I'm not sure what you mean by "looking crooked" (slanted?), but there
does appear to be an alignment problem with the menu and text divs
relative to the book "edges" in the background image - is this what
you were referring to?
Hi Christian,
Yes, the mis-alignment is waht I was referring to. I fixed the error in
css file and ran it through validator and it went through.
I tried everything to get the mis-aligment working but to no avail. The
css for persian is exactly the same as ENglish except for sitching left
and right values (leftmargin changed to right-margin, etc.) and it
looks fine in IE. I really appreciate your help.

Not Christian, David.

There appear to be a number of common issues with IE vs FF when dealing
with images and tables. A google search on "looks different" should
pull up most of them! I'm guessing that your problem either arises from
one of these, or from an error in one of your px values for sizing and
spacing your divs, etc. that is worked around by IE but not FF.
Thanks David. I did a search and found a lot of links, some of them
discussing the same problems. I tired the suggestions but no change. I
even modified the web.config file for my ASP application to prevent
Firefox being taken as a down-level browser, it didn't help either. I
tried to modify all the margin and padding settings, ...

Sep 15 '06 #10

as*******@hotmail.com wrote:
David Stone wrote:
In article <11**********************@h48g2000cwc.googlegroups .com>,
as*******@hotmail.com wrote:
Christian Kirsch wrote:
[snip]

Move your cursor over the menu (which doesn't show any text in the
farsi version). This gives Javascript errors.

see any errors. Also, when I open the pages, they don;t pop up any
errors. How did you manage to have the errors listed?
As I said: The CSS does not *validate*. Use the validator at
http://jigsaw.w3.org/css-validator/
The Farsi version seems to be ok now (did you change anything),
there's still one warning in the english version, though.
Hi Christian,
yes, I fixed the two errors on the CSS file in Farsi version of the
page; they validated. The warnings seem to be related to missing
'background-color'.
But I still can't see any javascript errors. When I go to
http://www.legalpersian.com/fa/home.aspx I see the menu and moving my
mouse over it does not display any errors. Also, I don't see any errors
on the javascript console. I tried it with Netscape 7.1, same thing:
crooked page but no errors.
Is it possible to send me the errors? I am not sure why you see the
errors and I don't.
I opened your page in Firefox 1.5, then opened the Javascript console,
and saw lots of errors. They appear to be related to the English page,
not the Farsi one.

I get:

Error: Error in parsing value for property 'font'. Declaration dropped.
Source File: http://www.legalpersian.com/en/assets/css/EngStyle.css
Line: 48

I'm not sure what you mean by "looking crooked" (slanted?), but there
does appear to be an alignment problem with the menu and text divs
relative to the book "edges" in the background image - is this what
you were referring to?
Hi Christian,
Yes, the mis-alignment is waht I was referring to. I fixed the error in
css file and ran it through validator and it went through.
I tried everything to get the mis-aligment working but to no avail. The
css for persian is exactly the same as ENglish except for sitching left
and right values (leftmargin changed to right-margin, etc.) and it
looks fine in IE. I really appreciate your help.
Hi,
I found that if I change the padding in main_container (in Farsi
version) from (0 60px 0 20px) to (0 0 0 20px), in IE the menu gets
pushed to the right 60px but nothing changes in FF.

Sep 15 '06 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Manny | last post by:
I have a web form "Page1.asp" and it reads data from a database, does some calculations, and displays the records in pages. Works fine. I have a button that displays on the page, defined as...
7
by: Aaron Prohaska | last post by:
I have just run into a problem where I have a page that posts back to itself to execute code, except when the page does the post back it somehow executes code that is in our home page for the site....
7
by: Paul | last post by:
I thought this is more of an IE issue but i've had no joy on that group perhaps somebody here will have a clue. If i click a link to a web page embedded in Excel (97 OR 2000) i get the standard...
10
by: Anders Wegge Jakobsen | last post by:
Hi, I'm playing around with a layout for a weblog. A mockup can be seen at <http://outside.bakkelygaard.dk/~wegge/testblog/index.html>. The page has a fixed width of 800px, so I'm perfectly...
3
by: Rick Cook | last post by:
No, it's not mine, but I ran across it and I'm curious why it displays in such a horribly screwed up manner under Mozilla 1.75. Nearly everything overlaps. ...
2
by: Peter | last post by:
I have a link that refers to a page that requires authentication. Is there a way to set the logon credentials prior to or while posting to a new web page.... My users are clicking on the link...
9
by: Veerle | last post by:
Hi, I would like to divide the whole of my html page in 4 equal rectangles using only div tags in my html. The result should look a bit like this site:...
4
by: Nick Wedd | last post by:
I have a test page http://www.files.maproom.org/00/12/q/w.html which almost does what I want. The idea is that, when you hover the mouse over one of the dates near the top of the page, it...
3
by: ashkaan57 | last post by:
Hi, I have a page that looks crooked in Firefox but displays normally in IE. http://www.legalpersian.com The page was designed using Visual Web Developer 2005 (part of MS Vsual Studio 2005...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.