The appearance of dotted points changes when they are printed on paper

Check out this customized printable application form that allows users to easily input their information and print it.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8>
    <title>Custom Printout</title>
    <sytle>
        p{
            font-size: 20px;
        }
        .complete {
          border-bottom: 2px dotted #888;
          font-weight: bold;
          line-height: 12px;
        }
    </style>
</head>
<body>
    <p>
    Name:<span class="complete">Jane Doe</span>
    </p>
    <p>
    Gender:<span class="complete">Female</span>
    </p>
    <p>
    Date of Birth:<span class="complete">05-April-1985</span>
    </p>
</body>
</html>

The fillable dotted points look great in the browser, but when printing, they appear as squares and asterisks instead.

https://i.sstatic.net/3D15m.jpg

How do I resolve this CSS issue with the border-bottom style set to dotted? Any suggestions are appreciated. Thanks.

Answer №1

Make sure to utilize the existing HTML method!

<!DOCTYPE HTML>
<html>
<head>
<style>
    u.dotted{
      border-bottom: 1px dashed #999;
      text-decoration: none; 
    }
</style>
</head>
<body>
     Name: <u class="dotted">John Nathon</u>
</body>
</html>

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Display Issue on Android Devices

I've been experimenting with an HTML file on Android tablets and phones to adjust the viewport for different resolutions. I used the meta viewport tag: <meta name="viewport" content="width=device-width, target-densityDpi=device-dpi, user-scalable ...

Attempting to incorporate a border underneath the H1 title labeled MY TODO LIST

<html lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conte ...

JavaScript code altered link to redirect to previous link

I added a date field to my HTML form. <input type="date" name="match_date" id="matchDate" onchange="filterMatchByDate(event)" min="2021-01-01" max="2021-12-31"> There is also an anchor tag ...

Implementing a queue with an on-click event

As a self-proclaimed Java nerd diving into the world of jQuery, I'm facing some challenges. My goal is to create 3 interactive boxes that behave in a specific way: when clicked, one box should come forward while the other two dim and stay in the back ...

ERROR : The value was modified after it had already been checked for changes

Encountering an issue with [height] on the main component and seeking a solution Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '753'. Current value: '731'. I have th ...

How to dynamically modify the form action with JQuery on submission

Currently, I am working on a project that utilizes the Spring Web model-view-controller (MVC) framework version 3.2.8. In this project, I encountered an issue where I needed to change the form action upon clicking a submit button. However, the code I imple ...

How is it that the magic table refuses to conform to CSS styling? This is truly sorcery!

My HTML table is as simple as it gets: <table class="dispdtab"> <tr> <td><b>Dealer: </b></td> <td>dealername</td> </tr> <t ...

Using Angular 2 to assign unique ids to checkbox values

Is there a way to retrieve the value of a checkbox in Angular 2 without needing an additional Boolean variable? I am trying to toggle the enabled/disabled state of an input field based on the selection of a checkbox. While I know this can be accomplished ...

Is a webpage's sluggishness in Internet Explorer due to its lengthy page structure causing issues while loading quickly on other browsers?

My application has a page that is particularly long, around 8Mb of source HTML mainly comprised of tables. I am aware that this indicates poor architecture, but unfortunately, I am unable to make immediate changes due to certain constraints. In most brows ...

Loading content beforehand vs. loading it on the fly

I am facing a dilemma with loading a large amount of content within a hidden <div>. This content will only be revealed to the user upon clicking a button. Should I load this content beforehand or wait until it is requested? ...

Creating a visualization tool for Pareto analysis with Javascript, Html, and JSON

Currently, I am on the lookout for plugins, examples, or any related resources that can assist in creating a Pareto Chart for an HTML page. My goal is to construct it using HTML, style it with CSS, and populate data through JSON. While I am open to buildin ...

"Eliminate specific time increments like days, hours, and minutes when the timer reaches zero in a jQuery countdown

Utilizing jQuery countdown, I am attempting to eliminate days/hours/minutes when the timer reaches 00 using the update callback function .on('update.countdown', function(event) {. It is almost working correctly. However, there is just one issue: ...

Redirecting to a blank homepage using PHP

Having trouble with this code. After logging in, I'm not redirected to the home page, but instead, I stay on the login page. I want users to be redirected to (http://localhost/trial/index.php#Home) once successfully logged in. How can I fix this? < ...

Implementing Window.Open function within a jQuery Modal

I've set up my Modal Div like this: <div id="dialog-modal" title="Open File"> <img alt="progress" src="images/ajax-loader.gif"/> </div> When I click the button, the modal appears and I can see the progress icon. <sc ...

PHP results can be manipulated with jQuery and JavaScript

I have a unique jQuery script that is designed to insert custom content after each paragraph in news articles. Here's an example: $(document).ready(function() { $("<a>The link inserted in jQuery</a>") .insertAfter("p") ...

Instantly appearing and disappearing Bootstrap modal popup catches users off guard

I've encountered an issue with my bootstrap popup that displays student results - it opens and closes immediately. In my master page file, I have included the following JS files: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="ser ...

What is the best way to trigger an onclick event for an input element with a type of "image"?

In the code I'm working on, there's an input of type "Image". <div class="icon" id="button_dictionary"> <form> <input class="buttonDictionary" type="image" src="icone_dicionario.jpg" value="" id="inputDictionary"> ...

Setting Aggrid style height to 100% in JustPy made easy

I am attempting to adjust the Aggrid height style to 100%, but unfortunately, the table is not displaying as expected. I have tried using viewport and pixel measurements, which worked fine. Interestingly, percentage width is working perfectly well. My goa ...

Change the background image when hovering over an element with vanilla JavaScript by utilizing data attributes

I would like to be able to change the background image of a <div> when hovering over a link. Initially, the <div> should not have a background image when the page loads for the first time. This is my current setup: <div class="background"& ...

The button on the master page is not able to be accessed when it is covered by a div tag on the Home page of an ASP.NET website

On my home page, I have a div tag containing a login form. In the master page, there is a signout button. After the user logs in, the text box and label used in the login form are hidden, and the signout button becomes visible. However, I am facing an issu ...