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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:29:33+00:00 2026-06-03T15:29:33+00:00

I am using 5 banner images with hover effects and using below code #banner

  • 0

I am using 5 banner images with hover effects and using below code

#banner
{
    float:left;
    width:99.025%;
    padding:0 0 0 10px;
    margin:0;
    height: 16.714em; /* 234px*/
    position:relative;
    overflow:hidden;
    display:block;
    background:url('/pages/images/bottom_wood_repeater.jpg') 0 104px repeat-x;
}

#banner img
{
    float:left;
    width:19.435%; /*197px;*/
}

#banner a img
{
    float:left;
    display:block;
}

#banner a:hover img
{
    float:left;
    position:relative;
    top:-16.714em; /* 234px*/
}   

Can i use height in percentage instead of em?

height: 16.714em; /* 234px*/

Actually i am creating responsive design and it is creating problem for smaller resolution or for mobile.

Current site : http://new.brandonplanning.com/home

Thanks in Advance 🙂

  • 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-03T15:29:39+00:00Added an answer on June 3, 2026 at 3:29 pm

    Yes and no.

    Specifically, you can not do that if the parent element does not have a fixed height. Think about it: if an element could have a height equal to a percentage of its parent’s height, then the parent’s height would need to be calculated first. But to calculate the parent’s height, you need first to calculate the height of its children. But before you calculate the height of this child, you need to calculate the parent’s height. You see where this is going.

    If the parent does have a fixed height then percentage heights on children are fine.

    If the parent does not have a fixed height and you set a percentage height to a child the browser will simply give up and treat the child as having height: auto.

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

Sidebar

Related Questions

I am using the following dynamic code to get my gallery images: <section id=banner>
I'm using a flash rotating banner in my website which takes images and descriptions
I have 4 banner images, and I want to cycle through them using a
I'm using some images as banners on my site. They're full (960px) width and
Let's says I have : <img src='static/images/banner/blue.jpg' /> Using jQuery, how could I get
I am using a storyboard and I have added iAd banner to my view.
I'm using colorbox , i just get undefined as my get values? $('.banner').colorbox({ opacity:
Using LINQ on collections, what is the difference between the following lines of code?
I am using a jquery banner to show advertisements on my site. When I
I'd like to test banner (two css background images) and rotate them randomly on

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.