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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:03:31+00:00 2026-06-04T22:03:31+00:00

This is without height attribute: http://jsfiddle.net/karthik64/pFcpX/ And this with height attribute: http://jsfiddle.net/karthik64/pFcpX/1/ The problem

  • 0

This is without height attribute: http://jsfiddle.net/karthik64/pFcpX/

And this with height attribute: http://jsfiddle.net/karthik64/pFcpX/1/

The problem is I need to set a fixed ‘height’ attribute to get background-color as black and if I remove the height attribute from the CSS property , the background-color wont be black. I have to tell you that the height of my div here, is a dynamic one. It depends on the data fetched from database.

I have tried !important, something like that, but it did not work.

  • 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-04T22:03:34+00:00Added an answer on June 4, 2026 at 10:03 pm

    Add overflow: hidden to the style of the outer div

    See this JsFiddle

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

Sidebar

Related Questions

This is the layout I am using: <ScrollView xmlns:android=http://schemas.android.com/apk/res/android android:background=@color/background android:layout_width=fill_parent android:layout_height=fill_parent android:padding=30dip >
I defined two ImageViews and set the background like this: int tmpID = findViewById(R.id.mypng)
We need the ability to gracefully resize any photo/image to an exact width/height without
I need to set the height of every textbox on my form, some of
How can I do this without having a million if then statements?
Can I do this without reference to the object in the constructor? In other
I have done this without much effort on T-SQL, but I want to implement
Can I do this without Javascript? Here is the mock markup.. <div id=parent> <div
Is it possible to somehow do this without taking out the @? It does
It is hard to find a resource on this without finding Java EE, 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.