html div height=,HTML/CSS - div height issue

So my footer is overlapping with the bottom bits of my div. I have included an image. I don't understand what I am doing wrong. I tried to play around with the height values but it isn't working. What am I doing wrong? check here

here are my values for the background div, the form div and the footer

.hero{

background-image: linear-gradient(rgba(0,0,0,0.3),rgba(0,0,0,0.4)), url('4.jpg');

min-height:800px;

background-position: center;

background-size: cover;

overflow:hidden;

position: relative;

}

.form{

margin: 10px 25%;

width:50%;

position: absolute;

border:2px solid black;

padding:20px;border-radius: 25px;

background:silver;

opacity: 0.8;

}

.footer{

left:0px;

width:100%;

height:100px;

background:pink;

position: fixed;

bottom: 0;

}

Btw my footer is inside the div hero.. Div hero acts as the container div

here is my html code:

$db = mysqli_connect("localhost", "root", "", "therapy");

SESSION_START();

if (isset($_POST['upload'])) {

$first= mysql_real_escape_string($_POST['name']);

$last= mysql_real_escape_string($_POST['name1']);

$country= mysql_real_escape_string($_POST['country']);

$city= mysql_real_escape_string($_POST['city']);

$age= mysql_real_escape_string($_POST['age']);

$username=$_SESSION['username'];

$sql= "UPDATE `userinfo` SET `FirstName`='$first',`LastName`='$last',`Country`='$country',`City`='$city',`Age`='$age' WHERE `Username`='$username'";

$result= mysqli_query($db,$sql);

$_SESSION['username']= $username;

if($result)

{

echo $_SESSION['message']= " You submitted ";

header("Location: profile2.php");

}

else

{

echo $_SESSION['message'] = "wrong information";

}

}

?>

.dp{

border-style: solid;

border-radius: 200px;

border-color: black; height: 200px; width:200px;

overflow-y: hidden; overflow-x:hidden; margin-left:35%;

}

@media (max-width:700px){

.dp{

float:left;

margin-left:10%;

height: 150px; width:150px;

}

}

error_reporting(E_ALL & ~E_NOTICE);

$pic=$_SESSION['image'];

echo "%22.%24pic.%22";

?>

Name:

Country:

City:

Age:

Submit

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值