Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 7th, 2007, 08:35 AM
Pablito
Guest
 
Posts: n/a
Default 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


  #2  
Old March 7th, 2007, 08:45 AM
Ben C
Guest
 
Posts: n/a
Default 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)?
  #3  
Old March 7th, 2007, 09:05 AM
Arne
Guest
 
Posts: n/a
Default 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/
  #4  
Old March 7th, 2007, 09:55 AM
Pablito
Guest
 
Posts: n/a
Default 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


  #5  
Old March 7th, 2007, 10:15 AM
Rik
Guest
 
Posts: n/a
Default 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
  #6  
Old March 7th, 2007, 08:45 PM
Jim Moe
Guest
 
Posts: n/a
Default 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)
  #7  
Old March 8th, 2007, 05:45 PM
VK
Guest
 
Posts: n/a
Default 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.

  #8  
Old March 10th, 2007, 02:55 PM
Pablito
Guest
 
Posts: n/a
Default Re: margin-right and FF


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

www.eurotime.it/?_tar=_to_know


  #9  
Old March 10th, 2007, 03:05 PM
Rik
Guest
 
Posts: n/a
Default 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
  #10  
Old March 10th, 2007, 03:55 PM
Pablito
Guest
 
Posts: n/a
Default 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


  #11  
Old March 10th, 2007, 04:05 PM
Rik
Guest
 
Posts: n/a
Default 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
  #12  
Old March 10th, 2007, 05:15 PM
Pablito
Guest
 
Posts: n/a
Default 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


 

Bookmarks

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles