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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T14:18:20+00:00 2026-05-28T14:18:20+00:00

I am a little rusty with css and I am stuck on this, what

  • 0

I am a little rusty with css and I am stuck on this, what I am trying to achieve is to have two div’s side by side with an image overlapping the two top corners, This I have done much (I hope correctly), what I am stuck doing is trying to centre the two side-by-side divs which i currently cant do without breaking it

any help would be great, Thanks

    <style>
#wrapper {
    margin:0 auto;
    height:auto;
    overflow: hidden; /* add this to contain floated children */
}
#first {
    width: 300px;
    float:left; /* add this */
    color:#FFF;
    padding:0 5px 5px 5px;
    background: url(view.image?id=598) 0 100% #fcb033 no-repeat;
}
#second {
    width: 300px;
    float: left;
    padding:0 5px 5px 5px;
    color:#FFF;
    background: url(view.image?id=595) 100% 100% #c1d72e  no-repeat;

}
    #overlayleft{
        position:absolute;
        top:-40px; 
        left:-30px;
    }

    #overlayright{
        position:absolute;
        top:-40px; 
        left:570px;
    }
    </style>


    <div id"wrapper">
    <div id="first"><div id="overlayleft"><img alt="Dr Sayer" height="94" src="view.image?Id=592" width="93" /></div><h1 style="text-align:right">Dr John Sayer</h1><p>Cystic kidney diseases, such as polycystic kidney
    disease (PKD), are responsible for ten per cent of
    patients requiring dialysis and transplantation in
    the UK. As with most cystic kidney diseases, PKD
    is a genetic condition which causes fluid-filled
    sacks to develop on the interior and exterior of
    the kidneys. These sacks gradually replace normal
    kidney tissue, enlarging the organs and reducing
    their ability to function – eventually causing them
    to fail altogether. A recently discovered gene,
    involved in the onset of cystic kidney diseases,
    has provided a basis for the work of Dr John Sayer.
    Dr Sayer is studying this specific gene closely and
    hopes not only to improve our understanding of
    the molecules which cause cystic kidney diseases,
    but also test potential new drug treatments aimed
    at preventing the formation of cysts.</p></div>

    <div id="second"><div id="overlayright"><img alt="Donate" height="94" src="view.image?Id=592" width="93" /></div><h1>Carol Norbury</h1>
    <p>Carol Norbury’s family has a prolonged history of polycystic
    kidney disease. Her husband, John, was diagnosed with the condition in 1996, before
    going on to suffer complete renal
    failure in late 2004. Luckily, Carol
    was found to be a suitable organ
    donor. However, since then, each
    of Carol and John’s three children
    has been diagnosed with
    the condition.</p></div>
    <div class"clear"></div>
    </div>
  • 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-28T14:18:21+00:00Added an answer on May 28, 2026 at 2:18 pm

    You have to specify a width on the wrapper for the “margin:0 auto;” to work.

    AND you’re missing the equal sign on the wrapper id

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

Sidebar

Related Questions

My XPath is a little bit rusty... Let's say I have this simple XML
My php is a little rusty but this is boggling my mind right now.
A little stuck here. I have a simple question I guess. Given the following
I'm a little lot rusty with my SQL and this is driving me nuts.
I have a quick little question involving the read() command. I am really rusty
Little bit of a 2 parter. First of all im trying to do this
I have a website with a fixed background and another little image that is
My C++ is a little rusty but I have made a program that reverses
My windbg skills are a little rusty, so forgive me if this is obvious.
My C++ is a little rusty having worked in Java and C# for the

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.