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

  • Home
  • SEARCH
  • 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 8610697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:11:33+00:00 2026-06-12T04:11:33+00:00

OK as the title says I’ve got a div which is prepended and dynamically

  • 0

OK as the title says I’ve got a div which is prepended and dynamically loaded. The problem I have is that I can’t split the css on this one as it parses also whole strings. The usage is like that: I’ve got a @username somewhere in the string. If the user hovers it a div with informations will get prepended to the current username. Now there is the problem that I’ve allowed users to post images in this text also. As the autolinker is flexible it doesn’t know the image sizes and restrictions and I want to leave it like that! So I define css classes which look like that:

.minpost img{ max-height: 30px; max-width: 30px; }

Of course I don’t need to mention that this attribute is also inherited by the prepended div. And that I don’t want to! nifty little tricks like !important won’t work for me.

Ah and btw I thought about the solution as to set the images as backgrounds in the prepended divs as well, but I wanted to know if there is another solution. So I am asking you guys. If you need further informations just ask?!

— Edited —
http://jsfiddle.net/UAgDA/43/ <— added a jsfiddle showing the problem

  • 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-12T04:11:34+00:00Added an answer on June 12, 2026 at 4:11 am

    You need to reset max-width and max-height to none when inside #message:

    #message img {
        max-height: none;
        max-width: none;    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As title says, i know that new throws an exception which can be caught,
Title says most of it. I have a div container that holds all the
Title says all. I'll have navigation that looks like this and it's dynamically created
Like the title says :P Let's say I've got 10 classes and I can
As title says, I have a div. Somewhere (could be embedded in further child
As title says, I have a list of words, Like stopWords = [the, and,
As title says, I have access to the current listitem - and it's easy
The title says it mostly. If I have an object in Python and want
The title says it! I know that Jon Skeet was working on an implementation
The title says enough I think. I have a full quality BufferedImage and I

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.