By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,766 Members | 1,261 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,766 IT Pros & Developers. It's quick & easy.

margin-right and FF

P: n/a
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
Share this Question
Share on Google+
11 Replies


P: n/a
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

P: n/a
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

P: n/a

"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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a

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

www.eurotime.it/?_tar=_to_know
Mar 10 '07 #8

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
"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 discussion thread is closed

Replies have been disabled for this discussion.