Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
- <link rel="stylesheet" href="./css/style1.css">
- <title>Flexbox Links</title>
- <style>
- a {
- border: 2px red solid;
- display: flex;
- flex-direction: row;
- height: 100px;
- width: 250px;
- justify-content: center;
- align-items: center;
- margin:10px;
- }
- a span {
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- }
- a span:nth-child(1) {
- font-size: 20px;
- color: red;
- }
- a span:nth-child(2) {
- font-size: 10px;
- }
- </style>
- </head>
- <body>
- <a href="#">Hello World!</a>
- <a href="#">Hello World! Lorem ipsum dolor sit amet consectetur adipisicing elit.</a>
- <a href="#">Hello World! Lorem ipsum</br> dolor sit amet</br> consectetur adipisicing elit.</a>
- <a href="#"><span>Hello World!</span><span>Good Bye!</span></a>
- <a href="#"><span>Hello World! Lorem ipsum dolor</span><span>sit amet consectetur adipisicing elit.</span></a>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement