Skip to main content

Style Any Element That Starts with Class Name - CSS

Define style to any elements which has a class that starts with "boxset", for an example, classes such as name "boxset-one", "boxset-two", "boxset-blah-blah" etc.

DEMO

Class .boxset

Class .boxset-one

Class .boxset-two

HTML

<h2 class="boxset">Class .boxset</h2>
<h2 class="boxset-one">Class .boxset-one</h2>
<h2 class="boxset-two">Class .boxset-two</h2>

CSS

  [class^="boxset"] {
  color: magenta;
}

Comments

Popular posts from this blog

Introduction

Hello world,  UIUX Component  is for those who newbie in HTML, CSS and JavaScript for their new career as Web Designer, Web Developer, Web Editor etc. We try our best to make sure we update the code which applicable for your daily routine in web development or maybe some for Apps content.  To utilise this site you should have basic knowledge on HTML, CSS and JavaScript. If you still not sure what we talking about, we have a few suggestion on where you should to start your knowledge. What is HTML HTML stands for Hyper Text Markup Language, the standard markup language for creating Web pages. Describes the structure of a Web page, consists of a series of elements which elements tell the browser how to display the content also elements label pieces of content such as "this is a heading", "this is a paragraph", "this is a link", etc. HTML Tutorial What is CSS CSS stands for Cascading Style Sheets, describes how HTML elements are to be displayed on screen, pape...

Audio Player - HTML

The HTML <audio> element is used to play an audio file, here are three supported audio formats MP3, WAV, and OGG for Safari OGG is not supported for now. DEMO Your browser does not support HTML audio. HTML < audio controls > < source src = "https://actions.google.com/sounds/v1/cartoon/crazy_dinner_bell.ogg" type = "audio/ogg" > < p > Your browser does not support HTML audio .</ p > </ audio > Muted < audio controls muted > < source src = "https://actions.google.com/sounds/v1/cartoon/crazy_dinner_bell.ogg" type = "audio/ogg" > < p > Your browser does not support HTML audio .</ p > </ audio >

Native Accordion - HTML

  Use details element to create native accordion, is so simple and effective without javascript. Tap here to see more details Lorem ipsum dolor sit amet consectetur adipisicing elit. Ut eum perferendis eius. Adipisci velit et similique earum quas illo odio rerum optio, quis, expedita assumenda enim dicta aliquam porro maxime minima sed a ullam, aspernatur corporis. Debitis nemo dolores sit in nihil vero, necessitatibus eveniet labore velit numquam voluptatibus quia. HTML < details > < summary > Tap here to see more details </ summary > < article > Lorem ipsum dolor sit amet consectetur adipisicing elit . Ut eum perferendis eius . Adipisci velit et similique earum quas illo odio rerum optio, quis, expedita assumenda enim dicta aliquam porro maxime minima sed a ullam, aspernatur corporis . Debitis nemo dolores sit in nihil vero, necessitatibus eveniet labore velit numquam voluptatibus qui...