Which code should I take?This should do the trick.You must be registered for see links
You'd want the .float-right and .reset class. You'd then wrap your links in the .float-right class, then you'd put the .reset class in a div below it, as seen in the CodePen.Which code should I take?
body, html {
margin: 0;
padding: 0;
font-family: Verdana;
font-size: 10px;
}
.red-bar {
background: red;
padding: 10px;
}
.float-right {
float: right;
}
.reset {
clear: both;
}
Tried that.To the parent element add this:
text-align:right;
This is the part I get confused,You'd want the .float-right and .reset class. You'd then wrap your links in the .float-right class, then you'd put the .reset class in a div below it, as seen in the CodePen.
Tried that.
This is the part I get confused,
Here is my CSS code & HTML
body, html {
margin: 0;
padding: 0;
}
.Test {
background: #D3D3D3;
padding: 15px;
box-shadow: 0px 1px 2px #838383;
}
.Test a {
color: #000000;
padding-left: 13px;
text-decoration: none;
text-align:right;
}
.Test a:hover {
color: white;
}
This is my HTML
<DOCTYPE! html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Test</title>
</head>
<body>
<div class="Test">
<a href="">Home</a>
<a href="">Team</a>
<a href="">Radio</a>
<a href="">Helpful</a>
<a href="">Guides</a>
<a href="">News</a>
<a href="">Report</a>
</div>
</body>
</html>
If I had a minute I'd put your badass in the kitchen. Ty!You must be registered for see links