473,379 Members | 1,235 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,379 software developers and data experts.

margin-right and FF

Hi at all
into a page I wrote
<style>
body {margin-left:10%;margin-right:10%;text-align:justify;}
</style>
reading the page with FireFox the margin left is 10% but the right is 0%
Why?
How can I do to have a right margin like the left margin?
Best regards
Pab
Mar 7 '07 #1
11 4427
On 2007-03-07, Pablito <PA*****@nospam.comwrote:
Hi at all
into a page I wrote
<style>
body {margin-left:10%;margin-right:10%;text-align:justify;}
</style>
reading the page with FireFox the margin left is 10% but the right is 0%
Why?
How can I do to have a right margin like the left margin?
Best regards
Pab
Did you set any other width properties (width, left and right padding
or borders)?
Mar 7 '07 #2
Once upon a time *Pablito* wrote:
Hi at all
into a page I wrote
<style>
body {margin-left:10%;margin-right:10%;text-align:justify;}
</style>
reading the page with FireFox the margin left is 10% but the right is 0%
Why?
How can I do to have a right margin like the left margin?
Best regards
Pab
Well, {margin-left:10%;margin-right:10%;text-align:justify;} works for
me in SeaMonkey. Also the short {margin: 0 10%;text-align:justify;}

BTW, what "style"? It should be <STYLE TYPE="text/css"and that's what
I use.

--
/Arne

Proud User of SeaMonkey. Get your free copy:
http://www.mozilla.org/projects/seamonkey/
Mar 7 '07 #3

"Arne" <in*****@domain.invalidha scritto nel messaggio
news:55*************@mid.individual.net...
Once upon a time *Pablito* wrote:
>Hi at all
into a page I wrote
<style>
body {margin-left:10%;margin-right:10%;text-align:justify;}
</style>
reading the page with FireFox the margin left is 10% but the right is 0%
Why?
How can I do to have a right margin like the left margin?
Best regards
Pab

Well, {margin-left:10%;margin-right:10%;text-align:justify;} works for
me in SeaMonkey. Also the short {margin: 0 10%;text-align:justify;}

BTW, what "style"? It should be <STYLE TYPE="text/css"and that's what
I use.

--
/Arne
NO!
wirh my FireFox 2.0.0.2 the margin-right not work
Mar 7 '07 #4
Rik
Pablito <PA*****@nospam.comwrote:
"Arne" <in*****@domain.invalidha scritto nel messaggio
news:55*************@mid.individual.net...
>Once upon a time *Pablito* wrote:
>>into a page I wrote
<style>
body {margin-left:10%;margin-right:10%;text-align:justify;}
</style>
reading the page with FireFox the margin left is 10% but the right is
0%
Why?
How can I do to have a right margin like the left margin?

Well, {margin-left:10%;margin-right:10%;text-align:justify;} works for
me in SeaMonkey. Also the short {margin: 0 10%;text-align:justify;}

BTW, what "style"? It should be <STYLE TYPE="text/css"and that's what
I use.
NO!
Pardon?
wirh my FireFox 2.0.0.2 the margin-right not work
U....R.....L....
--
Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel
Mar 7 '07 #5
Pablito wrote:
into a page I wrote
<style>
body {margin-left:10%;margin-right:10%;text-align:justify;}
</style>
reading the page with FireFox the margin left is 10% but the right is 0%
Why?
No se.
Without an URL demonstrating the problem there is no way to answer the
question.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Mar 7 '07 #6
VK
On Mar 7, 11:25 am, "Pablito" <PABL...@nospam.comwrote:
Hi at all
into a page I wrote
<style>
body {margin-left:10%;margin-right:10%;text-align:justify;}
</style>
reading the page with FireFox the margin left is 10% but the right is 0%
Why?
How can I do to have a right margin like the left margin?
"to have a right margin like the left margin" commonly means "center
something inside something" ;-)
So you want to center body withing html and for that first you have to
switch IE into CSS1Compat mode: because in BackCompat mode the
relations between html and body on IE are different. Thus on the first
step add any mode-switching DOCTYPE if you didn't do it yet. Then the
task is as easy as say
body {
width: 80%;
margin: 0px auto;
}
See http://jsnet.sourceforge.net/tmp/countdown.html for example, I
posted it in response to another question but it uses the layout you
are asking about.

Mar 8 '07 #7

"Rik"
weote
U....R.....L....

www.eurotime.it/?_tar=_to_know
Mar 10 '07 #8
Rik
Pablito <PA*****@nospam.comwrote:
>
"Rik"
weote
U....R.....L....

www.eurotime.it/?_tar=_to_know
body{
width:100%;
}
body{
margin-left:10%;
margin-right:10%;
}

That's 120% in my book. And my FF obeys the margin-right, it just
stretches the page resulting in a horizontal scrollbar.

Take VK's advise.

And why use frames here? Sometimes it's defendable, here hardly...
--
Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel
Mar 10 '07 #9
55"Rik"
wrote

And why use frames here?

First frame is set to 0 and contain data variables only

The 2th.frame is set to 100% and you look the 2th.frame like a full screen
Mar 10 '07 #10
Rik
Pablito <PA*****@nospam.comwrote:
55"Rik"
wrote
>And why use frames here?

First frame is set to 0 and contain data variables only

The 2th.frame is set to 100% and you look the 2th.frame like a full
screen
That's how it works, yes, now for the reason?
--
Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel
Mar 10 '07 #11
"Rik"

wrote

>
That's how it works, yes, now for the reason?
--
Rik Wasmus
IT WORK VERY WELL LIKE TO HAVE NO FRAMES.

new page are called from menu that call a function that self call new pages
Mar 10 '07 #12

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

Similar topics

1
by: Tony Benham | last post by:
I'm having problems with a css layout where a margin is being inserted with the wrong width. I believe it's my css that's at fault since it is wrong in netscape 7.1, opera,7.11 and IE6 but I cannot...
3
by: Brian | last post by:
I have a page with content, navigation, and footer divs, in that order. The nav div has position: absolute, width 8em, on green background. The other divs have an 8em green left border, such that...
19
by: Thomas Mlynarczyk | last post by:
Hello, The following gives different results in IE and "Non-IE" browsers: <div style="background-color: green; width: 200px"> <div style="margin-top: 20px; background-color: red"> Hello...
3
by: Blacksmith | last post by:
Hi, I'm a CSS noob, and I'm trying to implement a very basic layout but am having problems in certain browsers. Basically, I want a horizontally centred box with a fixed width of 750px, with a...
13
by: Cool Guy | last post by:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>test</title> </head> <body> <div style="height: 100px; width: 100px;...
3
by: xen | last post by:
Hey there, In my html file I use a <div class="quote">. In my css file I define .quote I need to specify the margins for <pinside the <div> Today I learned that I can do this using ..quote p...
3
by: =?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?= | last post by:
Hello. I seek confirmation for the reasons behind a margin-related behavior I have observed. I have set up a simple test page to illustrate the issue. The page shows a very simple 2-column...
2
by: Steve Richter | last post by:
I want my panel to have an inner margin. Problem is label text does not appear to recognize the margin. In this example, the TextBox aligns on the margin, the label does not: <asp:Panel...
0
by: GTalbot | last post by:
Hello fellow stylesheet colleagues, Load this url: http://www.gtalbot.org/BrowserBugsSection/DefaultTopBottomMarginsForPargDisappear.html I would appreciate it if someone could explain 1-...
2
by: GTalbot | last post by:
www.authoring.html] Hello fellow HTML and markup coder colleagues, Please visit this url: http://www.gtalbot.org/BrowserBugsSection/DefaultTopBottomMarginsForPargDisappear.html I would...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.