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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:05:34+00:00 2026-06-01T20:05:34+00:00

Yellow bar is width:100% header I would like to achieve MAIN TEXT to be

  • 0

Yellow bar is width:100% header

I would like to achieve MAIN TEXT to be always CENTERED no matter the side text’s length.

Margins between text are 100px

Image:

enter image description here

Thanks in advance

EDIT : HTML and CSS so far:

HTML:

    <html>
    <head>
    </head>
    <body>
    <center>
    <div id="top"></div>
    Text Logo
    <span id="mainText"> Menu Links </span>
    Username: <?php echo $uname; ?>
    </center>
    </body>
    </html>

CSS:

    #mainText {

    margin-right:100px;
    margin-left:100px;

    }
  • 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-01T20:05:35+00:00Added an answer on June 1, 2026 at 8:05 pm

    If i understand may be that’s you want.

    CSS

    .left{
        float:left;
        background:yellow;
    }
    .right{
        float:right;
        background:green;
    }
    .middle{
        display:inline-block;
        *display:inline/*For IE7*/
        *zoom:1;
        vertical-align:top;
        background:red;
        margin:0 100px;
    }
    .parent{
        text-align:center;
    }
    .parent div{
        text-align:left;
    }
    

    HTML

    <div class="parent">
     <p class="left">L side Text</p>
     <p class="middle">Center side Text</p>
     <p class="right">R side Text</p>
    </div>
    

    Check this http://jsfiddle.net/XhMtK/3/

    UPDATED

    May that’s you want

    Check this http://jsfiddle.net/XhMtK/4/

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

Sidebar

Related Questions

I would like to add a fixed notification bar (like the yellow one here
I would like to implement something similar to 37Signals's Yellow Fade effect. I am
I have a fixed-width web page (640 pixels wide). I would like this page
string = Yellow puts string[1..string.length] -> outputs ellow Is there a shorter way to
On a generic plot, with time on the x-axis, I would like to highlight
I want to create a simple box with a header bar containing a title
I have 3 yellow bars. The bar should come from out of my boundary
I want a centered header DIV and inside it the following absolutely positioned DIVs:
I have a webpage that uses a custom plugin, like this: <embed height=0 width=0
$('div').animate({ 'background':'yellow' }, 2000,'linear', function() { }) why?? thanks

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.