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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:23:24+00:00 2026-06-05T13:23:24+00:00

Given the above dynamically generated text (meaning that I can’t just use an image),

  • 0

Design I need to convert to markup / css

Given the above dynamically generated text (meaning that I can’t just use an image), I am trying to recreate the design using just html and css selectors.

I would like to just use a single h4 with the containing text, but am open to other solutions. I would prefer to not use absolute positioning, but again, if that is the only way, then so be it.

I have tried surrounding with span tags, but those are inline elements that don’t have an inherent width.

The h4 will be nested within a div, though not always of the same class or id.

Any ideas or resources to get me started?

  • 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-05T13:23:25+00:00Added an answer on June 5, 2026 at 1:23 pm

    Check out how they do the text underneath Contact me on this form. Pretty clean and simple. http://www.onextrapixel.com/examples/html5-css3-contact-form/

    Here is the actual CSS that does it:

    h1 {
    font-family: 'Questrial', Verdana, sans-serif;
    text-align:center;
    font-size:40px;
    padding:0;
    margin:0 0 20px 0;
    position:relative;
    color:#8C8C8C;
    }
    
    /** have a nice ampersand **/
    h1:after {
    font-size:25px;
    color:#D6CFCB;
    content: '&';
    text-align:center;
    display:block;
    width:100%;
    font-family: 'Alice', Verdana, serif;
    text-shadow: 0px 1px 0px #fff;
    }
    
    /** create the gradient bottom **/
    h1:before {
    position:absolute;
    bottom:15px;
    content: ' ';
    text-align:center;
    display:block;
    height:2px;
    width:100%;
    background: linear-gradient(left,  rgba(255,255,255,0) 0%,rgba(182,180,180,0.7)     42%,rgba(180,178,178,0) 43%,rgba(168,166,166,0) 50%,rgba(180,178,178,0)  57%,rgba(182,180,180,0.7) 58%,rgba(238,237,237,0.3) 90%,rgba(255,255,255,0) 100%); /* W3C */
    }
    

    Sorry for yet another edit, but here is an explanation. h1 { … } styles the actual text, so “Event Schedule” for you, and h1:before { … } does the cool line effect. h1:after { …} does the ampersand, so this is actually where you would put your text i suppose

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

Sidebar

Related Questions

I am trying to use JavaScript to dynamically replace content inside of curly braces.
i'm trying to create dynamically generated icon list for tiny mce. I have written
String a=(Yeahhhh) I have finally made it to the (top); Given above String, there
Given the following cod: $number = 1050.55; var_dump($number - floor($number)); Why does the above
I have 2 divs above each others, at a given moment one is shown
/one_path/some_page.php?var1=value1&var2=value2&var3=value3 Suppose I'm given something like the above. Not just the query variable string,
Given the following table: id category_id categorizable_id categorizable_type 66 22 67 Image 72 22
I am trying to pass dynamically created form fields to a php script, and
I am trying to call a class method dynamically depending on a condition. This
I have a small WCF hosting engine that I am writing that will dynamically

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.