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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:13:25+00:00 2026-05-27T12:13:25+00:00

how can I achieve something similar? Basically, the question is: how can I position

  • 0

how can I achieve something similar?

that's the way I want it to look

Basically, the question is: how can I position the small png with the corner from top left of the caption to be outside and to achieve this effect?

I am doing this to loop the latest category posts:

  <div class="pages-thumbs">
  <?php $cat_id = 19; $cat_link = get_category_link( $cat_id ); ?>
  <a href="<?php echo the_permalink(); ?>"><h2><?php the_title(); ?></h2></a>
  <?php the_post_thumbnail('medium'); ?>
  <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  <?php the_excerpt(); ?>
  </div>
  </div>

Then, this is what I have for the h2 (css) in order to have that badge thing aligned to the top left:

.home-thumbs h2 {
    background: url("images/top-left-label.png") no-repeat scroll left top #CBCBCB;
    font-size: 12px;
    margin-left: -8px;
    margin-top: -66px;
    max-width: 268px;
    padding-left: 12px;
    position: absolute;
}

This is how it is now based on the css I have:
this is how it looks now

Should I try another approach as I don’t seem to be able to move the bg png outside my h2?

  • 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-05-27T12:13:26+00:00Added an answer on May 27, 2026 at 12:13 pm

    Reduce the background image to just the corner. Then edit your css as follows:

    .home-thumbs h2 {
        background: url("images/top-left-label.png") no-repeat scroll left top;
        font-size: 12px;
        margin-left: -8px;
        margin-top: -66px;
        max-width: 268px;
        position: absolute;
    }
    
        .home-thumbs h2 span {
    
            width: inherit;
            background-color: #CBCBCB;
            padding-left: 12px;
            margin-top: HEIGHT OF H2 BG IMAGE;
    
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I achieve something similar to the TOP function is SQL using Xquery?
I know you can define them indirectly achieve something similar with companion objects but
how can i paste something on multiple lines? i'm trying to achieve the same
How can I achieve this? I am trying to load content from the database
Basically, I am doing something like this: select a.name from schedule as a where
I want to achieve something similar to what these guys do here: - (NSUInteger)countForFetchRequest:(NSFetchRequest
I am trying to achieve something similar to the way the heading of a
So I asked something similar yesterday and did receive an answer to my question,
I'm trying to achieve something similar to this: public void execute(){ RandomClass item =
Im trying to achieve something similar to Apples Contact.app. When the user press Edit

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.