Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

margin issue in FireFox

Tags:

html

css

firefox

I have a margin issue in Firefox which totally works in other browsers so, this is my HTML

HTML:

//*** means some code

<header>
    <div class="left">
        <div class="logo">
            //***
        </div>
    </div>

    <div class="right">
        <div id="log-on">
            //***
        </div>
    </div>
    <div class="clear"></div>
</header>
<section class="search-seaction">
    //***    
</section>

CSS:

.clear { clear:both; }

.left { float: left }

.right { float: right }

.search-seaction
{
    margin-top: 62px;        
}

and here is screenshots

Firefox: enter image description here

Opera & Chrome: enter image description here

That margin over header appears only in Firefox. What is the reason of that behavior?

ISSUE : when I give margin to section, the header is "margining"

like image 235
Artur Keyan Avatar asked Dec 05 '11 14:12

Artur Keyan


People also ask

How do I get rid of Margins in Firefox?

At the top of the screen that appears, click Page Setup, and then click on the Margins & Header/Footer tab. Manually change Top, Right, Bottom, and Left margins to 0. (Note that this will change the defaults for all web printing from Firefox).

Why does it say my Margins are too small?

The main reason behind this issue is that you are trying to print a document exceeding the minimum limit of margin, which varies printer to printer. To automatically fix it, do the following: Open the Word document you are having the issue with. When the document has opened, click on the Layout on the menu-bar.


1 Answers

Try giving the header a height:

header {
  height: 100px;
}

(setting the overflow to hidden works too)

header {
  overflow: hidden;
}
like image 140
ramblex Avatar answered Oct 11 '22 22:10

ramblex