Search
 
SCRIPT & CODE EXAMPLE
 

CSS

move header down css

.header {
  /* styles */
  position: fixed;
  margin-top: 50px; /* or whatever */
}
Comment

move header down css

<!DOCTYPE html>
<html>
<head>
    <title>Testing My HTML and CSS</title>
    <style>

        * {
            padding: 0;
            margin: 0;
        }

        .header {
            background-color: black;
            height: 100px;
            width: 100%;
        }

        .header h1 {
            margin-top: 0;
            text-align: center;
            color: white;
            height: 100px;
            width: 100%;
        }

        .sidebar {
            background-color: #ebebeb;
            position: absolute;
            width: 200px;
            height: 100%;
        }

    </style>
</head>
<body>
    <div class="header">
        <h1>Hello, World!</h1>
    <div class="sidebar">
    </div>
    <div class="content">
    </div>
    <div class="footer">
    </div>
</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Css :: refresh css on page 
Css :: wpforms submit button css 
Css :: rgba blue 
Css :: how to dedeclare a variable and use it in css 
Css :: css code examples 
Css :: button click css style 
Css :: arrow right css 
Css :: Border property to set the LEFT border to "dotted" 
Css :: ubuntu uninstall unity hub 
Css :: remove auto focus selected background color 
Css :: place two div elements next to each other 
Css :: how to change button border color in css 
Css :: ease in out css 
Css :: div center 
Css :: css if select has value 
Css :: grid css fr width of content 
Css :: subtract height css 
Css :: how to style ul circles black in css 
Css :: css padding attribute order 
Css :: input focus css default 
Css :: color tr first row css 
Css :: make text available only to screen reader 
Css :: scrollheight 
Css :: css shape-outside 
Css :: css text color 
Css :: fade in animation css codepen 
Css :: css change background color on hover 
Css :: css 16 9 ratio 
Css :: border style shorthand 
Css :: boostarp grid npm css react 
ADD CONTENT
Topic
Content
Source link
Name
1+4 =