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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:03:06+00:00 2026-05-26T22:03:06+00:00

I’m looking for a little sage advice from some helpful HTML/CSS masters. I am

  • 0

I’m looking for a little sage advice from some helpful HTML/CSS masters. I am in the process of building a website to help people in my area find an apartment. I’ve been working with a friend of mine who does graphics design and he created some really nice looking mockups that I am now working on implementing in HTML/CSS.

I attached an image of the filters and I was wondering how I should create them. If I use CSS to style the pill shaped inputs, it probably won’t work on all browsers. Should I take the approach of creating small, repeating blue lines that form the background of the inputs?

I’m not asking for someone to write the code for me, but I was wondering if anyone has advice on taking a CSS or image based approach to building a design that looks like the attached mockup.

mocked up input elements

  • 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-26T22:03:07+00:00Added an answer on May 26, 2026 at 10:03 pm

    It depends on your audience. I target only the latest browsers, so I choose the latest CSS. Almost anything is possible in CSS. If you must support older browsers, use JS as a fallback.

    Here’s what I did in pure CSS in about 20 mins. Of course it could be much better, but I didn’t want to spend any more time on it, just wanted to get you started if you decide to go that way.

    enter image description here

    Here’s the demo: http://jsfiddle.net/ThinkingStiff/PHTsb/

    HTML:

    <div id="bedrooms" class="button">
        <div id="walking">Walking</div>
        <div class="body">Bedroom</div>
        <div class="count">1</div>
        <div class="down">&#x25bc;</div>
    </div>
    

    CSS:

    @import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz|Satisfy);
    
    body
    {
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAADCAYAAABWKLW/AAAAGklEQVQI12Pw8fH5X19fD8YMMAZIkAHGANEAiZwUkmznO8QAAAAASUVORK5CYII=);
    }
    
    #bedrooms
    {
    width: 146px;        
    }
    
    .button
    {
    background-color: #65c3e6;
    background-image: linear-gradient( 
        top, rgba( 255, 255, 255, .4 ) 0%, rgba( 255, 255, 255, .0 ) 60%);
    background-image: -webkit-linear-gradient( 
        top, rgba( 255, 255, 255, .4 ) 0%, rgba( 255, 255, 255, .0 ) 60%);
    background-image: -moz-linear-gradient( 
        top, rgba( 255, 255, 255, .4 ) 0%, rgba( 255, 255, 255, .0 ) 60%);
    background-image: -o-linear-gradient( 
        top, rgba( 255, 255, 255, .4 ) 0%, rgba( 255, 255, 255, .0 ) 60%);
    background-image: -ms-linear-gradient( 
        top, rgba( 255, 255, 255, .4 ) 0%, rgba( 255, 255, 255, .0 ) 60%);
    border-bottom: 1px solid #4998b8;
    border-radius: 22px;
    border-top: 1px solid #cbeef7;
    box-shadow: 0 0 0 5px rgba(71,71,71,.65);
    -webkit-box-shadow: 0 0 0 5px rgba(71,71,71,.65);
    -moz-box-shadow: 0 0 0 5px rgba(71,71,71,.65);
    -o-box-shadow: 0 0 0 5px rgba(71,71,71,.65);
    -ms-box-shadow: 0 0 0 5px rgba(71,71,71,.65);
    color: white;
    height: 36px;
    margin: 30px 0 0 30px;
    position: relative;
    }
    
    #walking
    {
    font: bold 24px Satisfy;
    left: -17px;
    letter-spacing: -2px;
    position: absolute;
    text-shadow: 3px 3px 3px rgba(69,69,69,.2), -1px 1px 1px rgba(69,69,69,.1);
    top: -13px;
    transform:rotate(-15deg);
    -webkit-transform:rotate(-15deg);
    -moz-transform:rotate(-15deg);
    -o-transform:rotate(-15deg);
    -ms-transform:rotate(-15deg);
    }
    
    .body
    {
    border-right: 1px solid #73c7e6;
    display: inline-block;
    font: normal 24px/24px Yanone Kaffeesatz;
    height: 30px;
    margin-left: 10px;
    padding: 6px 8px 0 0;
    text-shadow: 1px 1px 1px rgba(69,69,69,.2), -1px 1px 1px rgba(69,69,69,.1);
    text-transform: uppercase; 
    vertical-align: top;
    }
    
    .count
    {
    border-left: 1px solid #8fd4eb;
    color: #185269;    
    display: inline-block;
    font: bold 16px/16px Helvetica, Arial;
    height: 25px;
    padding: 11px 6px 0 8px;
    margin-left: 1px;
    text-shadow: 1px 1px 1px rgba(255,255,255,.3), -1px 1px 1px rgba(255,255,255,.2);
    vertical-align: top;
    }
    
    .down
    {
    color: #42778c;    
    display: inline-block;
    font: normal 14px/14px Helvetica, Arial;
    height: 24px;
    padding-top: 12px;
    text-shadow: 1px 1px 1px rgba(255,255,255,.3), -1px 1px 1px rgba(255,255,255,.2);
    vertical-align: top;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have thousands of HTML files to process using Groovy/Java and I need to
I have a jquery bug and I've been looking for hours now, I can't
I have just tried to save a simple *.rtf file with some websites and
I used javascript for loading a picture on my website depending on which small
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.