How can I use css to make this?

47 views Asked by At

enter image description here

I suspect using line gradient?I know how to do the ellipse thing but I just don't understand how I can make the red line right through the middle?

1

There are 1 answers

0
CodeGodie On

I would make something like this: DEMO FIDDLE

CSS:

#container {
    position: relative;
    width: 200px;
    background-color:black;
    z-index:-2;
    padding: 10px 0;
    text-align:center;
}
#line {
    position: absolute;
    top: 50%;
    width: 80%;
    left:10%;
    height: 1px;
    box-shadow: 1px 1px 20px 5px red;
    z-index:-1;
    background-color: red;
}

#text{
    color:white;
    font-weight:bold;
    text-transform:uppercase;
letter-spacing:8px;
    text-shadow: 1px 1px 1px #ccc
}

HTML:

<div id="container">
    <div id="text">Text</div>
    <div id="line"></div>
</div>