Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8898743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:41:21+00:00 2026-06-15T00:41:21+00:00

XUL box for div element contained an inline br child, forcing all its children

  • 0
XUL box for div element contained an inline br child, forcing all its children to be wrapped in a block.

It is just an alert but not a fatal error, the webpage won’t have any problems with this error, but it took place in my firebug console which is annoying, how to prevent this? Or how to ignore these errors in firebug?

I suspect it is cause by this :

#top_icon01{
    position:relative;
    background-image : url('../hill_header/img/top_Icon_i01.png');
    background-repeat : no-repeat;
    background-size : 56px 56px;
    background-position: 50% 20px;
    width : 172px;
    height : 130px;
    padding-top : 25px;
    text-align: center;
    display:block;
    display:-webkit-box;
    display:-moz-box;
    -webkit-box-pack:center;
    -webkit-box-align:center;
    -moz-box-pack:center;
    -moz-box-align:center;
}

I provide some more details:
I didn’t tick show chrome error, see this is very annoying.
enter image description here
If I remove the top header :

<div id='topHeader'>
    <section id='top_middle_panel'>
        <div id='top_ryan'>
        <span class='float'> 
            <div id='top_icon01' class='top_icons'> 
                <h1>Design</h1><br><h6>Create Value</h6>
            </div>
        </span>
        <span class='float'> 
            <div id='top_icon02' class='top_icons'> 
                <h1>Multimedia</h1><br><h6>Amazing Presentation</h6>
            </div>
        </span>
        <span class='float'> 
            <div id='top_icon03' class='top_icons'> 
                <h1>Marketing</h1><br><h6>Connect to The World</h6>
            </div>
        </span>
        </div>
    </section>
</div>  

There is no more errors.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:41:22+00:00Added an answer on June 15, 2026 at 12:41 am

    edit: changing my answer

    I’ve reproduced it in jsFiddle! http://jsfiddle.net/brianpeiris/KEsZh/show/

    Since you’ve set your top_icon divs to use the flexible box model (display: -moz-box), Firefox warns you that you’ve put a <br /> directly inside, which then forces it to wrap the contents of those divs in another block, so it complains about that (perhaps unnecessarily).

    So, to stop Firefox from complaining, you can wrap the contents of your top_icon divs in another div explicitly. This makes Firefox happy.

    <div id='topHeader'>
        <section id='top_middle_panel'>
            <div id='top_ryan'>
            <span class='float'> <div id='top_icon01' class='top_icons'><div><h1>Design</h1><br><h6>Create Value</h6></div></div></span>
            <span class='float'> <div id='top_icon02' class='top_icons'><div><h1>Multimedia</h1><br><h6>Amazing Presentation</h6></div></div></span>
            <span class='float'> <div id='top_icon03' class='top_icons'><div><h1>Marketing</h1><br><h6>Connect to The World</h6></div></div></span>
            </div>
        </section>
    </div>  
    

    Alternatively, you can remove the <br /> and find another solution to format your content.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am playing around with a xul browser element in a sidebar (the idea
If I just put in XUL file <label value=&#176;C/> it works fine. However, I
Just for fun I'm developing a native Win32 port of Mozilla XUL. XUL allows
Is it possible to integrate XUL with PHP, just like we do with HTML
Using SQLite-manager (in its XUL form) on a Mac. How can I diff a
I'm a newbie in XUL & Java-Script programming. I just realized that I was
I would like to create a custom XUL element named 'video' for a video
In my firefox extension I'm creating a xul:browser element. I want to have an
I am trying to add a dialog box using XUL to a Firefox extension
https://developer.mozilla.org/en/XPCOM_Interface_Reference/nsIPromptService#prompt_example https://developer.mozilla.org/en/Code_snippets/Alerts_and_Notifications Mozilla XUL offers various types of alert and notification box messages. But,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.