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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:42:37+00:00 2026-06-17T20:42:37+00:00

I have the following: http://jsfiddle.net/B8e8A/ I have the headers with width: 50%; and a

  • 0

I have the following:

http://jsfiddle.net/B8e8A/

I have the headers with width: 50%; and a span inside the h2 tags to help me achieve this.

I am looking to make it so the heading is left aligned to the text, so that the header bars will be of different size, yet the bars will still stretch to the left of the screen. Is this possible?

  • 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-17T20:42:38+00:00Added an answer on June 17, 2026 at 8:42 pm

    Modify the following CSS:

    Changes: Removed width:50%

    h2 {
        background: none repeat scroll 0 0 #FF8C00;
        border-bottom-right-radius: 40px;
        border-top-right-radius: 40px;
        display: inline-block;
        font-size: 150%;
        margin-bottom: 10px;
        overflow: hidden;
        padding: 15px 30px 15px 0;
        /*--width:50%*/
    }
    

    Changes: Float right to left, text-align right to left, added nowrap

    h2 span {
        float: left;
        text-align: left;
        white-space: nowrap;
    }
    

    Example: http://jsfiddle.net/B8e8A/1/

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

Sidebar

Related Questions

let's i have the following code http://jsfiddle.net/QhJWt/ <span contentEditable=true>asdfasdf </span> span { height:20px; width:100px;
I have the following code: http://jsfiddle.net/SPWWx/ I'm completely new to javascript, this is my
Here is the following example http://jsfiddle.net/coderslay/FBcKP/ I have a div like this <div id=test>
I am sure this is simple but... I have the following: http://jsfiddle.net/SUBH3/1/ HTML: <div
I have the following code: UPDATED: http://jsfiddle.net/Zdevq/2/ .container { height: 100%; width: 100%; background:
I have the following tree- http://jsfiddle.net/anirbankundu/wzEBW/ This tree can have n number of nodes.
I have the following script: http://jsfiddle.net/oshirowanen/pALBV/ How do I make this more dynamic, so
I have the following jsfiddle http://jsfiddle.net/coderslay/Z78Gz/ In this the heading(Summary) is at the left…
I have the following code: http://jsfiddle.net/atlchris/CC53T/ What this does is it takes the jQuery
I have the following example: http://jsfiddle.net/LAMdV/ HTML: <div id=imageSlider> <span class=info id=info1> hello world

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.