Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Why does my html p element appear on top?

$
0
0

The paragraph element is under the div element in the code but over the div element in the website.Also my headline turn white when i delete position:fixed;What is wrong with my code ?

I tried aligning things but it didn`t work

body {  margin: 0px;}.headline {  height: 100px;  width: 1000px;  display: inline;  background-color: #14213D;  position: fixed;}.logo {  padding-top: 15px;  padding-left: 50px;  width: 300px;}.logo p {  margin: 0px;  color: #fcab11;  font-weight: bolder;  font-size: 50px;  display: block;}
<div class="headline"><div class="logo"><p>Muttis kurs</p></div></div><p>hello</p>

Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>