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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:03:31+00:00 2026-06-09T21:03:31+00:00

I have a page with a container div 900px wide, margin is auto. I

  • 0

I have a page with a container div 900px wide, margin is auto. I have a header tag within this 150px high.

I want the header to consist of ann image on the left, some text and then another image on the right (opposite the imagine on the left). When I put two img tags in the header div, the second image is on lower than the first. I’ve tried amending to an inline display without any luck.

Any ideas?

CSS

html, body {
    background-color: #ccd6cc;
    margin: 0px;
    padding: 0px;   
}

body {
    font-family: Arial, Helvetica, Verdana, Sans-serif;
    font-size: 12px;
    color: #666666; 
}


.hidden {
    display: none;
}


#page-container {  
    width: 900px;
    margin: auto;
    background-color: white;
}



#header {
    height: 150px;
    background-color: yellow;
}


#content {
    line-height: 18px; 
}

img#mcclogo {   
    display:inline;
    float:left;
    margin:0;
    padding:0;
}

img#bactulogo {
    display:inline;
    float:right;
    margin:0;
    padding:0;
}

HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript" src="curvy.corners.trunk.js"></script>
<head>
    <title>Intranet Layout</title>
    <link rel="stylesheet" type="text/css" href="test_layout.css" media="screen" />
</head>
<body>

<div id="page-container">
    <div id="header">
    <img id="mcclogo" src="../images/logo.gif" alt="xx" width="244" height="48" />  
    <img id="bactulogo" src="../images/bactu3.gif" alt="xx" width="260" height="124" /> 
    </div>  



    <div id="content">
    Content 
    </div>
</div>
</body>
</HTML>
  • 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-09T21:03:32+00:00Added an answer on June 9, 2026 at 9:03 pm

    Assuming html is correct, http://jsfiddle.net/sbAvB/

    css should be something like this then:

    #main{
        width:900px;
        margin: auto; }
    
    #header{
        height:150px;
        width:100%
    }
    
    #picL
    {
        float:left;
    }
    
    #text{
        position:absolute;
        left:50%;
        right:50%;
        width:70%;
    }
    
    #picR
    {
        float:right;
        margin-right:0px;   }​
    

    Likely the issue is a lack of a position/margin variables set in the css properties. To align multiple objects in a line, one way to do this is.

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

Sidebar

Related Questions

I have a div (.header) contained within other divs. When my page loads, momentarily
I have an ASP.Net page that contains a <div> with an <img> tag within.
I have a div like this <section class=item_container> <article class=item> <h2>Page Title</h2> <p><a class=delete_page
I have a website with the following setup: <div id=container> <div id=header></div> <div id=content></div>
Description: I have a page, with a container (div.display). The div for the main
I have a page with a container div that holds three additional divs as
I have a container div which is centred at 50% of the page width.
I have a header inside a container div with a width of 960px. The
I have a main container DIV for the content of my page, that is
I am trying to get 2 nested page container div 's to have a

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.