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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:53:44+00:00 2026-06-17T10:53:44+00:00

I am looking to have a logo extend into a black bar that will

  • 0

I am looking to have a logo extend into a black bar that will run along the entire top of the screen as seen in the example below:
image example for what I want to achieve

My original thought was that there would be a way to add CSS to the body to just do a border on the top similar to:

body {
    border-top: .5em solid #000;
}

Since I don’t believe that’s the solution, I was thinking something along the following HTML, but haven’t been able to get it to work.

<div id="topBlackBar">
    <div class="container"><!--Per Bootstrap-->
        <div class="span2">
            <img src="img/logo.png" alt="Bachner+Co Logo" />
        </div>
    </div>
</div>

But then I couldn’t figure out how to get the logo to go on top of it.

I am using Twitter Bootstrap 2.2.2 as a framework in building this. I would prefer to do this mostly in CSS and not have to use a black image if possible.

Thank you all for your time and assistance in this. I greatly appreciate it!

  • 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-17T10:53:45+00:00Added an answer on June 17, 2026 at 10:53 am

    How about this: Set a top border and then a negative margin of the same amount. Your image will need to be transparent, unlike the Google logo I used in the example.

    Demo

    #topBlackBar {
      border-top: 50px solid #000;
    }
    
    #logoContainer {
      margin-top: -50px;
    }
    
    <div id="topBlackBar">
      <div class="container" id="logoContainer"><!--Per Bootstrap-->
        <div class="span2">
          <img src="https://www.google.com/logos/2012/birthday12-hp.jpg" alt="Bachner+Co Logo" />
      </div>
    </div>
    

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

Sidebar

Related Questions

I'm looking to have a collection of objects that implement a certain interface, but
I'm looking to have it so that if someone enters information in a form,
I have recently started looking into development on the Opencart PHP eCommerce framework. I
I'm looking for recommended virtual machines that can run on a 8-bit microprocessor AND
I have seen websites where they have some links in the top, and when
I have a with multiple cart items listed. I have a x-men logo looking
I am looking into starting my own brand of clothing. I have the sample
I have a site that needed a few cosmetic changes such as the logo
Looking to have a database query set all the instance variables in a class:
Im looking to have a common parent function like so void main (param 1,

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.