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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:30:54+00:00 2026-06-15T08:30:54+00:00

Background info I am building a site which displays pictures to its users. This

  • 0

Background info

I am building a site which displays pictures to its users. This site uses a table for the ‘posts’.

The problem

When I add the picture (or a div) to the table, it automatically resizes the column next to it. You can look at this fiddle. http://jsfiddle.net/hsNpj/ The red DIV forces the column to the left of it to be smaller than its defined width. Weird. I thought that width means width and not ‘width something like’.

Here is the code to the CSS which should define the widht to 100px:

td.postopt
{
    background:#f6f6f6;
    width:100px;
    border-right:1px solid #666;
    height:100%;
}

Why does HTML&CSS do this? And how do I fix it?

  • 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-15T08:30:57+00:00Added an answer on June 15, 2026 at 8:30 am

    Set display:block;. This will force td to take the width specified.

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

Sidebar

Related Questions

Background info: Me and a couple of friends are building this platform game in
A bit of background info; this is an application that allows users to created
Background info: I'm using Microsoft Visual C# 2010 for this project. I want to
Background info I'm developing a visual form designer in which people with no coding
Background info : I was handed a Tool, which was made using MS-Access 2007,
First I will give a little background info so this question isn't completely without
Quick background info: of the three database tables that are relevant for this question,
Some background info I am programming in a system that uses a proprietary programming
Background info I have an app where users can make microsites ala http://myname.the_app.com .
A bit of background info: I am building a geolocation based game for Android

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.