<div class="title">


    position: absolute;
    height: 14%;
    width: 65%;
    left: 5%;
    top: 5%;
    background-color: #E8E8E8;
    z-index: 119;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

.title h2
    position: absolute;
    color: #000000;
    z-index: 1200;

For some reason the text keeps going under the background. How can I bring the text above the background #E8E8E8? I tried using z-index, but it didn't work.

Recommended Answers

All 2 Replies

What browser are you seeing this in? I just copied this code and tried it in IE, FF and Chrome and it looked OK in all of them.

Sorry, fixed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.