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 11 4454
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)?
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/
"Arne" <in*****@domain .invalidha scritto nel messaggio
news:55******** *****@mid.indiv idual.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
Pablito <PA*****@nospam .comwrote:
"Arne" <in*****@domain .invalidha scritto nel messaggio
news:55******** *****@mid.indiv idual.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
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 .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.
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 see what is wrong.
The page with the problem is www.woodleyzebrasfc.com and the incorrect item
is shown under the left hand navigation menu under links. The link to ysr
has a margin applied which is causing the space between it and the next item...
|
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
the nav sits on that border. There is a thin red top border on footer
for testing.
http://www.tsmchughs.com/test/
On that page, all is as expected. However, on the long page
http://www.tsmchughs.com/test/long
|
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
</div>
</div>
|
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 100px high header, a 50px high footer, and a contents box that grows
to fit the contents. I also want a margin at the top and bottom of the
centred box of a fixed height (30px).
I have the following HTML file which gives the desired results in...
|
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; background-color: red;">
<div style="height: 50px;
margin-top: 50px;
| |
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 {
margin-top: 5px;
margin-bottom: 5px;
|
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 layout, where columns are
contained in /div/ elements.
The first column is floated left and the second one is offset by a left
margin. You should be able to notice that the contents of the first
column are lower than those of the second one. Is...
|
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 id="Panel1" runat="server"
BackColor="gainsboro"
Scrollbars=Both Style="margin:25px;"
Height="200px"
Width="300px">
|
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- why MSIE 7 render this simple webpage so differently from Firefox
2.0.0.9, Opera 9.50, Safari 3.0.3?
|
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 appreciate it if someone could explain
1- why MSIE 7 render this simple webpage so differently from Firefox
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |