Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 10th, 2006, 06:25 PM
paulroskilly@hotmail.com
Guest
 
Posts: n/a
Default margin-top and firefox

Hello,

I have the following css :

body {
background-color: #CACACA;
margin-left: 0px;
margin-top: 10px;
margin-right: 0px;
margin-bottom: 0px;
}

#divMain
{
width: 770px;
background-color: #FFFFFF;
margin: 0 auto;
}

#topPanelGrey
{
position:relative;
width: 750px;
margin-left: 10px;
margin-top: 10px;
background-color: #64646E;
border: solid 1px red;
}

and this html :

<body>
<div id="divMain">
<div id="topPanelGrey">
<img src="images/rainbow.gif">
<img src="images/cslogo-grey.gif">
<p class="linkwhite"><A href="who.html">Who is this site
for?</A></p>
</div>
</div>
</body>

In IE everything looks fine (it looks the way id expect it to look.

In firefox it seems to ignore margin-top: 10px; but it honours the
left margin ok. So theres a 10px gap between the left of divMain and
topPanelGrey but no gap at all between the top of divMain and
topPanelGrey.

If i increase the top margin in topPanel grey to 20 px it brings
everything down the screen by 10px, its as if ive increased the margin
of divMain by 10px.

Im confused, thanks for any help.

Paul

 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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