| Author |
margin-right and FF
|
|
| Pablito 2007-03-07, 6:17 am |
| 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
| |
|
| On 2007-03-07, Pablito <PABLITO@nospam.com> 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
Did you set any other width properties (width, left and right padding
or borders)?
| |
|
| 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/
| |
| Pablito 2007-03-07, 6:17 am |
|
"Arne" <invalid@domain.invalid> ha scritto nel messaggio
news:557couF22lpi7U1@mid.individual.net...
> Once upon a time *Pablito* wrote:
>
> 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
| |
|
| Pablito <PABLITO@nospam.com> wrote:
> "Arne" <invalid@domain.invalid> ha scritto nel messaggio
> news:557couF22lpi7U1@mid.individual.net...
s =
[color=darkred]
r[color=darkred]
what[color=darkred]
> 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
| |
| Jim Moe 2007-03-07, 6:17 pm |
| 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)
| |
|
| On Mar 7, 11:25 am, "Pablito" <PABL...@nospam.com> 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?
"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 <PABLITO@nospam.com> wrote:
>
> "Rik"
> weote
> U....R.....L....
>
> www.eurotime.it/?_tar=3D_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 2007-03-10, 6:17 pm |
| 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
| |
|
| Pablito <PABLITO@nospam.com> wrote:
> 55"Rik"
> wrote
>
> 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 2007-03-10, 6:17 pm |
| "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
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |