Connecting Tech Pros Worldwide Forums | Help | Site Map

margin-right and FF

Pablito
Guest
 
Posts: n/a
#1: Mar 7 '07
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



Ben C
Guest
 
Posts: n/a
#2: Mar 7 '07

re: margin-right and FF


On 2007-03-07, Pablito <PABLITO@nospam.comwrote:
Quote:
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)?
Arne
Guest
 
Posts: n/a
#3: Mar 7 '07

re: margin-right and FF


Once upon a time *Pablito* wrote:
Quote:
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/
Pablito
Guest
 
Posts: n/a
#4: Mar 7 '07

re: margin-right and FF



"Arne" <invalid@domain.invalidha scritto nel messaggio
news:557couF22lpi7U1@mid.individual.net...
Quote:
Once upon a time *Pablito* wrote:
Quote:
>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.
>
--
Quote:
/Arne
NO!
wirh my FireFox 2.0.0.2 the margin-right not work


Rik
Guest
 
Posts: n/a
#5: Mar 7 '07

re: margin-right and FF


Pablito <PABLITO@nospam.comwrote:
Quote:
"Arne" <invalid@domain.invalidha scritto nel messaggio
news:557couF22lpi7U1@mid.individual.net...
Quote:
>Once upon a time *Pablito* wrote:
Quote:
>>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?
Quote:
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
Jim Moe
Guest
 
Posts: n/a
#6: Mar 7 '07

re: margin-right and FF


Pablito wrote:
Quote:
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)
VK
Guest
 
Posts: n/a
#7: Mar 8 '07

re: margin-right and FF


On Mar 7, 11:25 am, "Pablito" <PABL...@nospam.comwrote:
Quote:
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.

Pablito
Guest
 
Posts: n/a
#8: Mar 10 '07

re: margin-right and FF



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

www.eurotime.it/?_tar=_to_know


Rik
Guest
 
Posts: n/a
#9: Mar 10 '07

re: margin-right and FF


Pablito <PABLITO@nospam.comwrote:
Quote:
>
"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
Pablito
Guest
 
Posts: n/a
#10: Mar 10 '07

re: margin-right and FF


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


Rik
Guest
 
Posts: n/a
#11: Mar 10 '07

re: margin-right and FF


Pablito <PABLITO@nospam.comwrote:
Quote:
55"Rik"
wrote
Quote:
>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
Pablito
Guest
 
Posts: n/a
#12: Mar 10 '07

re: margin-right and FF


"Rik"

wrote

Quote:
>
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


Closed Thread