@ShyneADL
Posted
- Use more pixels than percentages because % are relative units that changes depending on the width/height of the wrapping div/screen.
To add the email to the success paragraph you can use this little code snippet in your js file
function convertToParagraph() {
// Get the value of the input data from the input element with Id 'text'
var inputData = document.getElementById("text").value;
// Create a new paragraph element
var paragraph = document.createElement("p");
// Set the text content of the paragraph element to the input data
paragraph.textContent = inputData;
// Get the span element where you want to add the email to
var outputEmail= document.getElementById("outputEmail");
// Clear any existing content in the output paragraph
outputParagraph.innerHTML = "";
// Append the new paragraph to the output paragraph element
outputParagraph.appendChild(paragraph);
}
This should work for you.