473,394 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

zero page margin in mozilla?

Hi,
I have a page (several) where the top margin doesn't appear to be working.
I have this in my code:

<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #CCB979;
background-image: url(images/back.gif);
background-repeat: repeat-x;
}
-->
</style>

and the page is http://www.emergentrealestate.com

Is my problem a margin error or the table placement?

Thanks in advance!
Marita
Jul 24 '05 #1
5 5066
Marita wrote:
Hi,
I have a page (several) where the top margin doesn't appear to be working.
I have this in my code:

Looks just fine here. Mozilla browser.
Which other browsers have you tried?

--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Jul 24 '05 #2
Marita wrote:
Hi,
I have a page (several) where the top margin doesn't appear to be working.
I have this in my code:

<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #CCB979;
background-image: url(images/back.gif);
background-repeat: repeat-x;
}
-->
</style>

and the page is http://www.emergentrealestate.com

Is my problem a margin error or the table placement?

Thanks in advance!
Marita


What is it about the top margin (i.e. 'none') that you think is not
right? From here it looks like your background image is tucked tightly
against the top of the browser view port.
Isn't that what you want?

- Jacques
Jul 24 '05 #3
Fig
On Thu, 21 Jul 2005 16:50:18 +0100, Marita <td***@hotmail.com> wrote:
Hi,
I have a page (several) where the top margin doesn't appear to be
working.
I have this in my code:

<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #CCB979;
background-image: url(images/back.gif);
background-repeat: repeat-x;
}
-->
</style>

and the page is http://www.emergentrealestate.com

Is my problem a margin error or the table placement?


You need to set body margin /and/ padding to zero.
Different browsers have different defaults for their viewport treatment.

HTH

--
Fig
Jul 24 '05 #4
Tim
On Thu, 21 Jul 2005 21:00:26 +0100, Fig wrote:
You need to set body margin /and/ padding to zero. Different browsers have
different defaults for their viewport treatment.


Additionally, sometimes it may be necessary to modify the HTML padding,
too (the BODY element is inside the HTML element, and both can have
styling).

--
If you insist on e-mailing me, use the reply-to address (it's real but
temporary). But please reply to the group, like you're supposed to.

This message was sent without a virus, please delete some files yourself.

Jul 24 '05 #5
Tim wrote :
On Thu, 21 Jul 2005 21:00:26 +0100, Fig wrote:

You need to set body margin /and/ padding to zero. Different browsers have
different defaults for their viewport treatment.

Additionally, sometimes it may be necessary to modify the HTML padding,
too (the BODY element is inside the HTML element, and both can have
styling).


Only Opera gives a padding (8px) to the body element. I've never heard
of a browser giving a padding to the HTML element.

Gérard
--
remove blah to email me
Jul 24 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Haines Brown | last post by:
I find that when I use list-style-image with galeon or mozilla, padding is inserted between the symbol image and the following list text, while under IE 5.0 it seems to be inserted before the image...
2
by: Stanimir Stamenkov | last post by:
I'm trying to clear some sizing issues relative to the initial containing block and the root document element. The sample document I'm trying with: http://stanio.info/viewport_fill.html ...
3
by: Ali Sahin | last post by:
Hi there, I'd like to transform a XML-File to PDF. The XML-File ist build like followed: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <?xml-stylesheet type="text/xsl"...
7
by: Greg Heilers | last post by:
Perplexing problem: All of a sudden, the code I am tinkering with; renders a white-space margin around all four edges of the browser window (Mozilla, Firefox, Konqueror, and Opera). I can not...
3
by: ashkaan57 | last post by:
Hi, I have a page that looks crooked in Firefox but displays normally in IE. http://www.legalpersian.com The page was designed using Visual Web Developer 2005 (part of MS Vsual Studio 2005...
10
by: ashkaan57 | last post by:
The web site is in two languages, one in English and the other in Farsi (Persian) which is a right-to-left language. So, I used two stylesheets, with the same info, and changed the right and left...
1
by: dmitry sychov | last post by:
Hello, There should be no red lines - and Mozilla does not display them but IE does... <inputshould take the whole space of its parent element (<div>) Any workaround? <br><br><br><br>
3
by: Dave Griffiths | last post by:
Hi all Using VB 2005 I am trying to recreate some existing pages made originally in Dreamweaver to ASP.net. Now I am stuck at the first hurdle. Original code using css div.edges {...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
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,...
0
jinu1996
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...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.