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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:45:35+00:00 2026-06-11T21:45:35+00:00

Here is an example: http://jsfiddle.net/7zhLm/5/ The image inside is larger than the div supports.

  • 0

Here is an example: http://jsfiddle.net/7zhLm/5/

The image inside is larger than the div supports.

Therefore it is cropping the rest (overflow-x: hidden).

I am trying to create a white border around the image, but it doesn’t seem to work.

After checking what’s going on there with dev tool I saw that the lower part overlays the white border.

How to I fix that?

  • 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-11T21:45:36+00:00Added an answer on June 11, 2026 at 9:45 pm

    I see you’re using both overflow-x and overflow-y. You can just use overflow:hidden; as it works on any browser while -x and -y are not supported by older ones.

    Anyway, to avoid it you can add another <div>. Check the live demo, and here is the updated code:

    <div id="fixed_event_1" class="splashTabLogout" >
    <div>
    <img src="http://www.twospy.com/galleriffic/demo/Sample%202.jpg" width="300" />
    </div>
    </div>
    
    .splashTabLogout {
        width: 300px;
        height: 100px;
        cursor: pointer;
        background: #fff;
        padding: 10px;
        /* border-radius and box-shadow stuff */
    }
    .splashTabLogout > div {
        max-width:100%;
        max-height:100%;
        overflow:hidden;
    }    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here an example http://jsfiddle.net/7aVXc/ Let' say current image height is 400px . How do
Example here: http://jsfiddle.net/7h2Dh/ Got this html: <span>Text<div id=wtf>Content</div>Text</span> I need to set div display
i have this simple example here : http://jsfiddle.net/pTyvc/1/ i don't want the sub_menu div
I have an autocomplete textbox inside some tabs. See here for an example: http://jsfiddle.net/fTQ26/3/
Here's the example: http://jsfiddle.net/sammy/RubNy/ Scroll down in the div container. Then click anywhere in
Why height in Chrome is bigger than Firefox of input See example here http://jsfiddle.net/jitendravyas/89Msh/1/
Here an example http://jsfiddle.net/EhLsT/ $(window).scroll(function () { if ($(window).scrollTop() > $(#header).offset().top) { $(#floating).show(); }
Here an example http://jsfiddle.net/NuzDj/ If you resize windows size, sidebar overlapping the wrapper &
Here's an example: http://jsfiddle.net/7g8GD/1/ Once you have entered an invalid input and hit enter
Here is the example: http://jsfiddle.net/FdT23/4/ The goal is that when you hover your mouse

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.