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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:16:37+00:00 2026-05-28T03:16:37+00:00

has anyone had any experience with thin images in the html box model? ie

  • 0

has anyone had any experience with thin images in the html box model?

ie
this code is killing me:

<!DOCTYPE html>
<html>
<head>
</head>

<body>
<img src="myimage1.jpg" border="1" /></div>
<img src="myimage2.jpg.jpg" border="1" />
</body>
</html>
where both images are like 6px height and 960px wide

in a standard box model ie:

<html>
<head>
</head>

<body>
<img src="myimage1.jpg" border="1" /></div>
<img src="myimage2.jpg.jpg" border="1" />
</body>
</html>

this works as expected

can someone tell me how to make number 1 work like number two

  • 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-28T03:16:38+00:00Added an answer on May 28, 2026 at 3:16 am

    I am going to guess what you are encountering.

    <img src="myimage1.jpg" border="1" /></div>
    

    What is happening –

    Modern browsers/parsers, especially picky ones like Chrome will try to repair your code instead of ignoring the /div to make it semantic. If you are using developer tools, right click to inspect the element and you may notice that the browser has added a <div></div>

    This is defined by the html5 <!DOCTPE html> which will make sure the browser forces it into a more strict mode rather than a quirks mode

    Also
    changing the css for the image in the strict mode display:block; or vertical-align:bottom; will give you something similar to the quirks version

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

Sidebar

Related Questions

Has anyone had any experience writing a web control (in either ASP.net, or javascript/HTML/CSS),
Has anyone had any experience debugging CUDA code on a server while coding on
Has anyone had any experience targetting WSH in the way that VBScript , JScript
Has anyone had any experience in building a 'real world' application with the Smart
Has anyone had any experience scaling out SQL Server in a multi reader single
Has anyone had any experience in saving app preferences (within app, not in Settings
Has anyone had any experience using Adobe Air to create BitTorrent application? Is there
Has anyone had any experience of talking between an iSeries (using IBM's Websphere MQ)
I'm wondering if anyone has had any experience with the API that gives you
Has anyone had experience using these two technologies in tandem? What are (if any)

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.