Wow, people here are too fast, but I will send my code just for that. Here are two possible solutions: the first is the best (as other posts have shown):
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <style media="all"> ul {list-style: none; margin: 0; padding: 0;} .activity-date-grouping span { font-weight: bold; font-size: 1.3em; color: #911c51; position: relative; } .activity-date-grouping span:after { content: ""; position: absolute; left: 105%; bottom: 0.2em; width: 999em; border-bottom:1px dashed #911c51; } </style> </head> <body> <ul> <li class="activity-date-grouping"> <span>4 Apr 2013</span> </li> <ul> </body> </html>
And other:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <style media="all"> ul {list-style: none;} .activity-date-grouping { border-bottom:1px dashed #911c51; } .activity-date-grouping span { font-weight: bold; font-size: 1.3em; color: #911c51; display: inline-block; background: white; margin-bottom: -1px; } </style> </head> <body> <ul> <li class="activity-date-grouping"> <span>4 Apr 2013</span> </li> <ul> </body> </html>
source share