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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:19:03+00:00 2026-05-24T18:19:03+00:00

I want to create header for my website widgets. The header is like below

  • 0

I want to create header for my website widgets.
The header is like below image :
enter image description here

I wrote this code now :

.Widget-Header
{

    background-color: #f7901e;
    height: 40px;
    font-family: Sansation;
    font-weight: bold;
    font-size: 21px;

}

Now I don’t know how to style header icon and title.

SHould I consider separate tag for header text and Icon ?

How do I do for header Icons ? Would you please give an example ?

Update

I want to use this header class for some header containers with diffrent Icons.
So How do I do now ?

  • 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-24T18:19:05+00:00Added an answer on May 24, 2026 at 6:19 pm

    You could do it all with CSS and a background image. That way, the markup is clean (presentation and structure is separated) users who disable CSS will not need to download the image and still retain a functional anchor.

    Updated Demo – using a single style for the majority of the properties and defining one extra rule for each icon as a background-image property.

    Updated Demo 2 since the elements should be headings, so have made them <h2> and moved the anchor to the right side, matching the original question.

    HTML

    <h2 class="first">Stop Clock<a href="#">+</a></h2>
    <h2 class="second">Something else<a href="#">+</a></h2>
    

    CSS

    h2 {
        background: #f7901e no-repeat;
        height: 40px;
        font-family: Sansation;
        font-weight: bold;
        font-size: 21px;
        width:400px;
        margin-bottom:5px;
        padding-left:50px;
        line-height:2;
        position:relative;
    }
    
    .first {
        background-image:url(http://lorempixum.com/40/40/city/1)
    }
    
    .second {
        background-image:url(http://lorempixum.com/40/40/city/2)
    }
    
    h2 a {
        position:absolute;
        right:10px;
        top:15px;
        background:url(http://lorempixum.com/10/10) no-repeat;
        text-decoration:none;
        width:10px;
        display:inline-block;
        vertical-align:middle;
        text-indent:1000px;
        font-size:10px;
        line-height:1;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

all i want to create the header file for database like this. it contains
i want create image animation , i have 50 images with png format now
I want to create a simple box with a header bar containing a title
I want to encode DNS protocol header using C and create a UDP datagram.
I want to create a header file in Lua (header.lua), then execute the require
i want to create some header file for future use but i have 1
I want to create a header file in C and add it to a
I want to create a jQuery dialog on-the-fly. I'm using this: var newDiv =
In the development of a website, I encountered this problem. I want to pass
I am trying to create a common header & footer for my entire website.

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.