esims esims - 1 year ago 103
CSS Question

Masking with CSS

I have a webpage with a box and want to place a text label over the border of the box, and hide the border underneath. Right now I am doing it like this:

I wonder if there is a better way, like masking or something. Since I am using different div's with background images, instead of CSS3.

Answer Source

It's simply, there's a HTML tag for that called fieldset

<div class="wrapper">
  <legend>Label of the box:</legend>

You can read more about it here:

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download