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

The Archive Base Latest Questions

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

I am constructing a website based off of the Fluid 960 GS System .

  • 0

I am constructing a website based off of the Fluid 960 GS System. I want to overlay an image in the header so that it stays put relative to the header image without disrupting the header itself. If I use the following CSS, I get halfway there:

.imgFloat {
    position:absolute;
    left:400px;
    top:-2px;
    z-index:1;  
}

<div class="grid_16">
    <h1 id="branding">
        <a href=""><img src="img/logo.png" /></a>
        <img src="img/float.png" class="imgFloat" />
    </h1>
</div>

The only “issue” (not really since the CSS is doing what it is supposed to) with this code is that the image stays put rather than being staying x pixels away from the header image like I want.

If I change the position to relative, it breaks the size of the header and thus the layout of the header itself, but it will position the image like I want.

Is there a happy medium CSS “trick” that I can apply to achieve this result?

Thanks in advanced!

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

    You just need to make sure that the absolute positioned element is inside the element you want it to be relative to. Then just add position: relative to that element and it should work.

    So:

    tag(position:relative)
      ag(position:absolute; left:2px)
    

    Should work

    I’m just guessing here since the code you’re showing is not detailed enough 😉

    Update:

    #branding {position:relative}
    
    .imgFloat {
        position:absolute;
        left:400px;
        top:-2px;
        z-index:1;  
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on this big website and I want to put it online before
I am building an asp.net website and I am constructing a Excel document based
I am currently constructing a wordpress website with a page that allows questions to
Ok, here's the deal: I am constructing a Drupal website that has several different
I am in charge of constructing a website with a '2-dimensional' site map, as
I am constructing a large HTML document from fragments supplied by users that have
I am currently constructing a Carputer front end and one function that it needs
We are constructing an application that will be interacting with Exchange 2007 calendar functions.
Suppose it's a website that sells photo cameras. Here are my entities (tables): Camera:
I'm building a website where I hook people up so that they can anonymously

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.