我正在尝试获得负边距以允许我的徽标溢出标题。
我对 HTML 和 CSS 真的很陌生,尽管我已经尽我最大的努力来处理这段代码并试图在线(包括这个网站)寻找答案,但都无济于事。所以这是我与这些部分相关的代码:
#logo {
display: inline-block;
margin: -30px 0px -100px 10px;
}
.hheader {
background-color: #005073;
background-image: -webkit-linear-gradient(rgba(0, 60, 80, .8) 0%, rgba(0, 80, 105, .8) 50%, rgba(0, 60, 80, .8) 100%);
/* For Safari 5.1 to 6.0 */
background-image: -o-linear-gradient(rgba(0, 60, 80, .8) 0%, rgba(0, 80, 105, .8) 50%, rgba(0, 60, 80, .8) 100%);
/* For Opera 11.1 to 12.0 */
background-image: -moz-linear-gradient(rgba(0, 60, 80, .8) 0%, rgba(0, 80, 105, .8) 50%, rgba(0, …Run Code Online (Sandbox Code Playgroud)