Holas, I'm trying to create a header inside a pre block through its rel attribute, something like this:
as you will see in the image has a header with the HTML text, something like that I want to achieve but I could not, this is my pre code:
pre.block,
{
background-color: #fafafa !important;
/*-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-o-border-radius: 4px;
-ms-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;*/
color: #000000;
padding: 5px;
border: 1px solid #c9c9c9;
overflow: auto;
margin-left: 10px;
font-size: 13px;
width: 95%;
white-space: pre-wrap;
font-family: Consolas, "Bitstream Vera Sans Mono", "Andale Mono", Monaco, "DejaVu Sans Mono", "Lucida Console", monospace;
}
I tried to make a: after but the text was too far from the container, can it be done or will there be a better way to do it?
Greetings.