Hi;
How can i draw dotted line with css? i searched but could not find.
thanks
Hi;
How can i draw dotted line with css? i searched but could not find.
thanks
Found the answer here using Google search "css dotted lines":
<div class="horizontal_dotted_line"></div>
and in styles.css:
.horizontal_dotted_line{
border-bottom: 1px dotted [color];
width: [put your width here]px;
}
<style>
.dotted {border: 1px dotted #ff0000; border-style: none none dotted; color: #fff; background-color: #fff; }
</style>
<hr class='dotted' />
For example:
hr {
border-top: 1px dotted #f00;
color: #fff;
background-color: #fff;
height: 1px;
width:50%;
}
See also Styling <hr>
with CSS.
This is best cross browser solution
http://divitodesign.com/css/css-1px-dotted-border-bug-in-internet-explorer-6/
add following line to the element you want to have dotted line.
style="border-bottom: 1px dotted #ff0000;"