dimanche 28 mai 2017

vertical Scrollbar is not working

Here is my problem i want to use scrollbar but it is only showing scrollbar but that scrollbar is not working. I am using CSS to style the scrollbar and other layouts and Html to use that styling. here is my Styling Code

  #sub_menu, #content{
    display: inline-block;
}

#sub_menu{
    width:23%;
    height: 10%;
    background-color: #999999;
    padding: 1%;
    vertical-align: top;
    border: 1px solid;
}
#content{
    width: 73%;
    margin-right: 1%;
}
@media screen and (max-width: 600px), sreen\0{
 #sub_menu{
        height: initial;
        font-size: 15px;
        margin-bottom: 2%;
    }
    #content, #sub_menu{
        display: block;
        width: 95%
    } }
 .contentt {



  height: 100%;
  overflow-y: scroll;
  margin-bottom: 1%;
}

.contentt::-webkit-scrollbar { 

  display: none;
}

And Here is my HTML CODE

 <div id="sub_menu">
                      <h3  style="border-bottom: 3px solid rgb(135, 31, 139);">Related Videos</h3>


    <div class="contentt" style="width:100%;height:40%; margin-bottom:3%;padding:2%" >

     <?php

    $con = new mysqli('localhost','','','');


    $sql = "SELECT ID, Title, Link FROM that where Category like 'this'";
    $result = $con->query($sql);

    if ($result->num_rows > 0) {

    while($row = $result->fetch_assoc()) {

        $url = $row["Link"];


        $title = $row["Title"];
        $id = $row["ID"];
        $path="http://domain/Song.php";

        echo "<h5>$title'</h5>";
        echo '<a href="' . $path . '?Title=' . $title .'&id=' . $id .'"><img src="http://domain/images/' . $id .'.jpg"  alt="HTML tutorial" style="width:75%;height:95%;border:0;"class="btnn songpicc"></a>';

       echo '<hr>';
    }
    } else {
    echo "0 results";
    }

    $con->close();

    ?>
    </div>
    </div>

Thanks in Advance




Aucun commentaire:

Enregistrer un commentaire