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 6915285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:27:22+00:00 2026-05-27T09:27:22+00:00

My code is working perfectly as desired in firefox(TEXT1 on top of TEXT2) and

  • 0

My code is working perfectly as desired in firefox(TEXT1 on top of TEXT2) and chrome but not in Internet explorer.
Here is my code.Note that TEXT1 &TEXT2 replaces other html elements in my original code,just used TEXT to simplify the code. Thank you.

    <div style="float:left;">
     <span class="line-1">
      TEXT1
     </span><br />
     <span class="line-2">
     TEXT2
     </span>
     </div>  

css

    .line-1{
    margin:3px; 
    padding:5px;    
    background:#F0F2F5; 
    float:left;
   -moz-border-radius:3px;
   -webkit-border-radius:3px;
    border-radius:3px;
    border-left:solid #B6BBC3 1px;
    border-right:solid #B6BBC3 1px;
    border-top:solid #B6BBC3 1px;
    border-bottom:solid #B6BBC3 1px;
    width:220px;
   -moz-box-shadow: 0px 4px 1px #F0F2F5;
   -webkit-box-shadow: 0px 4px 1px #F0F2F5;
    box-shadow: 0px 4px 1px #F0F2F5;}

    .line-2{
     color:#808080;
     font-size:11px;}
  • 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-05-27T09:27:23+00:00Added an answer on May 27, 2026 at 9:27 am

    Replace clear: both; with display: inline-block;


    Also, did you declare a doctype? A doctype tells the browser what version of HTML you are using, so that the browser can render it correctly.

    At the top of the page (Above the <html> tag) put:

    <!DOCTYPE html>
    

    This uses the HTML5 doctype, it allows for pretty flexible HTML code and should hopefully result in your page display correctly.

    In HTML5, you can write markup in many different ways.
    <br> is valid and so is <br /> a new thing to HTML5 is that for an empty div you can actually use <div id="emptyDiv" /> or <div id="emptyDiv"></div>

    You can validate your HTML markup aswell.
    The W3C Markup Validation Service is a free service that lets you upload your code or link to it and then run validation against it and print the errors/warnings. Some of the warnings are a little cryptic, especially for a beginner with HTML, but it’s not the end of the world if you have a few warnings/errors any browser worth using will sort of ‘figure it out’ and render the HTML properly (it’s called Quirksmode). Some of these validators are a bit more confusing/more complex than they should be to use, so you’ll have to find the one you like most and stick with it.

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

Sidebar

Related Questions

I am working with localStorage. My code is perfectly working in Chrome, but not
I have this code working perfectly in firefox. <!DOCTYPE html> <html lang=en> <head> <meta
Thanks to StackOverflow, I managed to get the following code working perfectly, but I
My code is working perfectly, it says the row was saved but when I
Struggling with this tournament fixtures algorithm. The code is working perfectly but I need
I am working on a drawing project. My code is working perfectly other than
I have a pretty typical bookmarklet code that's working perfectly for me in all
I am using the below code to block the taskbar which is working perfectly.
I am using below code to show jquery dialog, its working perfectly, Sub OpenDialog(ByVal
I recently refactored some ajax code to make it asynchronous. It was working perfectly

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.