letter k with smooth lines

how to make letter K   (with no jagged lines)    I want smooth lines.

a similar question makes the number 8
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/CSS/Q_26920978.html 
LVL 1
rgb192Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

imantasCommented:
Draw a letter K with smooth edges, then for every pixel make a DIV or any other element displayed as a block with the background color same as the pixel you refer to. That is possible, but it's quite a lot of work to write it by hand.

Here's an example how to make such smooth lines:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
 <title>Blank page</title>
</head>
<body>
<style type="text/css">
* {
  padding: 0px;
  margin: 0px;
  border: none;
}
div > div {
  width: 5px;
  height: 5px;
  float: left;
  font-size: 1px;
  display: block;
}
</style>
<div style="line-height: 1px">
<div style="background-color: #a0a0a0"></div><div style="background-color: #000000"></div><div style="background-color: #a0a0a0"></div><div style="background-color: #e0e0e0"></div><br clear="all"/>
<div style="background-color: #e0e0e0"></div><div style="background-color: #a0a0a0"></div><div style="background-color: #000000"></div><div style="background-color: #a0a0a0"></div><div style="background-color: #e0e0e0"></div><br clear="all"/>
<div style="background-color: #ffffff"></div><div style="background-color: #e0e0e0"></div><div style="background-color: #a0a0a0"></div><div style="background-color: #000000"></div><div style="background-color: #a0a0a0"></div><div style="background-color: #e0e0e0"></div><br clear="all"/>
<div style="background-color: #ffffff"></div><div style="background-color: #ffffff"></div><div style="background-color: #e0e0e0"></div><div style="background-color: #a0a0a0"></div><div style="background-color: #000000"></div><div style="background-color: #a0a0a0"></div><div style="background-color: #e0e0e0"></div><br clear="all"/>
<div style="background-color: #ffffff"></div><div style="background-color: #ffffff"></div><div style="background-color: #ffffff"></div><div style="background-color: #e0e0e0"></div><div style="background-color: #a0a0a0"></div><div style="background-color: #000000"></div><div style="background-color: #a0a0a0"></div><div style="background-color: #e0e0e0"></div><br clear="all"/>
<div style="background-color: #ffffff"></div><div style="background-color: #ffffff"></div><div style="background-color: #ffffff"></div><div style="background-color: #ffffff"></div><div style="background-color: #e0e0e0"></div><div style="background-color: #a0a0a0"></div><div style="background-color: #000000"></div><div style="background-color: #a0a0a0"></div><div style="background-color: #e0e0e0"></div>
</div><br clear="all"/>
</body></html>

Open in new window

0
remorinaCommented:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Letter K</title>
    <style type="text/css">
        .d1 {height:3px;background:#000;width:10px;display:inline-block;}
        .d2 {height:3px;background:#fff;width:10px;display:inline-block;}
        .d3 {height:3px;background:#000;width:12px;display:inline-block;}
    </style>
</head>
<body>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:8px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:6px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:4px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:2px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:8px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:6px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:4px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:2px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d3"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d3" style="margin-left:8px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d3" style="margin-left:6px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d3" style="margin-left:4px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d3" style="margin-left:2px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d3"></div></div>
    <div><div class="d1"></div><div class="d3" style="margin-left:8px;"></div></div>
    <div><div class="d1"></div><div class="d3" style="margin-left:6px;"></div></div>
    <div><div class="d1"></div><div class="d3" style="margin-left:4px;"></div></div>
    <div><div class="d1"></div><div class="d3" style="margin-left:2px;"></div></div>
    <div><div class="d1"></div><div class="d3"></div></div>
    <div><div class="d1"></div><div class="d3" style="margin-left:2px;"></div></div>
    <div><div class="d1"></div><div class="d3" style="margin-left:4px;"></div></div>
    <div><div class="d1"></div><div class="d3" style="margin-left:6px;"></div></div>
    <div><div class="d1"></div><div class="d3" style="margin-left:8px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d3"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d3" style="margin-left:2px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d3" style="margin-left:4px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d3" style="margin-left:6px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d3" style="margin-left:8px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d3"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:2px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:4px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:6px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:8px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:2px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:4px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:6px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3" style="margin-left:8px;"></div></div>
    <div><div class="d1"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d2"></div><div class="d3"></div></div>
</body>
</html>

Open in new window

0
remorinaCommented:
My code posted above might would break in IE7 and IE6 due to inline-block bug & font-sizes, I've done some modifications and the code below should work flawlessly in any browser.

Cheers!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Letter K</title>
    <style type="text/css">
        .d1 {height:3px;background:#000;width:10px;font-size:1px;display:inline-block;}
        .d2 {height:3px;background:#fff;width:10px;font-size:1px;display:inline-block;}
        .d3 {height:3px;background:#000;width:12px;font-size:1px;display:inline-block;}
    </style>
</head>
<body>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:8px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:6px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:4px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:2px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:8px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:6px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:4px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:2px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d3"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d3" style="margin-left:8px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d3" style="margin-left:6px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d3" style="margin-left:4px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d3" style="margin-left:2px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d3"></span></div>
    <div><span class="d1"></span><span class="d3" style="margin-left:8px;"></span></div>
    <div><span class="d1"></span><span class="d3" style="margin-left:6px;"></span></div>
    <div><span class="d1"></span><span class="d3" style="margin-left:4px;"></span></div>
    <div><span class="d1"></span><span class="d3" style="margin-left:2px;"></span></div>
    <div><span class="d1"></span><span class="d3"></span></div>
    <div><span class="d1"></span><span class="d3" style="margin-left:2px;"></span></div>
    <div><span class="d1"></span><span class="d3" style="margin-left:4px;"></span></div>
    <div><span class="d1"></span><span class="d3" style="margin-left:6px;"></span></div>
    <div><span class="d1"></span><span class="d3" style="margin-left:8px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d3"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d3" style="margin-left:2px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d3" style="margin-left:4px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d3" style="margin-left:6px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d3" style="margin-left:8px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d3"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:2px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:4px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:6px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:8px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:2px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:4px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:6px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3" style="margin-left:8px;"></span></div>
    <div><span class="d1"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d2"></span><span class="d3"></span></div>
</body>
</html>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rgb192Author Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.