Question
How to add a text outline to a heading
Hello
How to add a stroke outline to text thicker then 1px ?
Example is I made the outline 2px and it looks ragged compared to the 1px.
Is there a better way to add a stroke outline to any text?
Also can you take an image and resize it as the screen is resized?
https://cooltext.com/Logo-Design-Keen
Example of what I want but using css.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Text Stroke</title>
<style type="text/css">
body {
background-color: #4B7187;
padding: 0px;
margin-top: 50px;
margin-bottom: 50px;
}
.container {
max-width: 60%;
min-width: 350px;
background-color: #62C0FF;
margin-right: auto;
margin-left: auto;
margin-top: 0px;
margin-bottom: 0px;
padding: 0px;
border: 2px solid #000;
}
.header {
background-color: #FFFFCA;
padding: 0px;
margin: 0px;
}
.sidebar {
float: left;
width: 100px;
margin: 0px;
padding: 15px;
}
.content {
padding: 15px;
float: left;
margin: 0px;
}
.footer {
position: relative;
clear: both;
margin: 0px;
padding: 10px;
text-align: center;
}
h1 {
font-size: 400%;
font-family: Georgia, "Times New Roman", Times, serif;
color: #e35926;
padding: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 90px;
}
.stroke1 {
text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000;
}
h2 {
margin: 0px;
padding: 0px;
display: block;
font-family: Georgia, "Times New Roman", Times, serif;
color: #FFFF00;
font-size: 350%;
}
.stroke2 {
text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}
p {
font-family: Roboto;
font-size: 110%;
padding: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 10px;
line-height: 1.2em;
}
</style>
<div class="container">
<div class="header">
<h1 class="stroke1">Text Stroke</h1>
</div>
<!-- end of header -->
<div class="sidebar">
<h3>Menu </h3>
<p>HTML</p>
<p>CSS</p>
<p>Is</p>
<p>Driving</p>
<p>Me</p>
<p>Crazy</p>
</div>
<!-- end of sidebar -->
<div class="content">
<h2 class="stroke2">Header</h2>
<p>Container / wrapper div is at 60% width of screen.<br>
min-width is 350px
<br>
Random text lorem ipsum. Random text lorem ipsum. </p>
</div>
<!-- end of content -->
<div class="footer">
<p>Footer </p>
</div>
<!-- end of footer -->
</div>
<!-- end of container -->
</body>
</html>
