Mismatched Styling in My Form - HTML vs CSS

Currently, I have been dedicatedly working on my website which is utilizing a built-in HTML editor that offers me various styling options. My main goal is to replicate the design and styles of the form displayed on this page:

If you want to take a look at my progress so far, here is the JSFIDDLE link: https://jsfiddle.net/su5rr2nh/1/

Despite my efforts, I am encountering some challenges in replicating the exact styles, including the dimensions of textboxes and select/dropdown elements. The images are not aligning properly within the textboxes, and my buttons do not resemble the ones on the reference page.

Here are snippets of my code:

<div style="padding: 40px; background-color: rgba(243, 242, 242, 0.611765); border: 3px dashed rgba(0,0,0,0.7);">
   <h1 style="font-size: 32px; text-align: center; font-weight: bold;">FREE BONUS!</h1>
   <h4 style="font-size: 18px; color: rgba(47, 47, 47, 0.6); text-align: center;">Reserve your seat TODAY for this free training, and we will send you our <span style="font-weight: bold;">Amazon's Secret Business Cheatsheet</span> that will get you up and running in NO TIME!</h4>
   <input id="name" style="border-radius: 5px !important; padding: 10px 90px; margin-top: 10px;" name="name" type="text" placeholder="Your Name.." />
   <img src="http://beaminggeek.com/profitbuilder/wp-content/uploads/2017/02/name2.png"/>
   <input id="email" style="border-radius: 5px !important; padding: 10px 90px; margin: 10px;" name="email" type="email" placeholder="Your Email.."/>
   <img src="http://beaminggeek.com/profitbuilder/wp-content/uploads/2017/02/email2.png"/>
   <select style="border-radius: 5px !important; padding: 10px 90px; margin: 10px;">
      <option value="desired">Select Desired Date</option>
      <option value="yesterday">Watch Yesterday's Broadcast Now</option>
      <option value="feb8th">Wednesday, Feb 8th, 2017</option>
      <option value="feb8th">Wednesday, Feb 8th, 2017</option>
   </select>
   <button style="padding: 13px 35px; margin-right: auto; margin-left: auto; color: #fff; font-weight: bold; display: inline-block; -ms-transform: all .2s ease-in-out; -webkit-transform: all .2s ease-in-out; transform: all .2s ease-in-out; text-align: center !important; text-decoration: none !important; background-color: #ea6645;">Register Your Spot Now! * seats are extremely limited *</button>

   <p>* we will not spam, rent or sell your information *</p>
   <p>Your Local Time: 4:18 PM</p>
</div>

I've given my best shot at replicating every style element, but it seems like something is still missing. Any assistance in identifying any overlooked aspects would be greatly appreciated. Feel free to make modifications directly on my jsfiddle if needed as my primary aim is to mirror the styles accurately. Although I've utilized Chrome's inspector tool, the vast amount of generated code is making it challenging to pinpoint the issue.

Any kind of guidance or support on this matter would be tremendously helpful.

Answer №1

UPDATE AND DISCUSSION

//text-align: left; specifies that the text should align to the left of the input.
//border: 1px solid rgba(0,0,0,0.2); creates a border around the input with 1px thickness, in black color and an opacity of 0.2
//box-shadow: 0 0 0 3px rgba(0,0,0,0.5); adds a shadow at the bottom of the input with a height of 3px, in black color and an alpha value of 0.5
//background-color: #fff; sets the background color of the input to white
//border-radius: 5px; rounds the corners of the input
//background-position: 96%; places the background at 96% of the input width (almost right)
//background-image: url(https://appassets1.clickfunnels.com/images/name2.png); sets the background as an image from the provided URL.
//background-repeat: no-repeat; ensures that the background image does not repeat within the element
//appearance: none; removes any custom appearance set by some browsers
//padding: 12px 18px; increases the size of the input slightly to prevent the text from touching the borders.
//font-size: 16px; sets the font size to 16px.
//width: calc(100% - 36px); dynamically calculates the width of the input considering padding on both sides.
<input type="text" placeholder="Enter Your Name..." name="name"  data-type="extra" style="text-align: left; border: 1px solid rgba(0,0,0,0.2); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); background-color: #fff; border-radius: 5px; background-position: 96%; background-image: url(https://appassets1.clickfunnels.com/images/name2.png); background-repeat: no-repeat; appearance: none; padding: 12px 18px; font-size: 16px; width: calc(100% - 36px);">

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

Guide to: Implementing Radio Buttons to Adjust Image Opacity

How can I dynamically change the opacity of an image using JavaScript when a radio button is clicked? I attempted to achieve this using a forEach function, but the current code causes all images to instantly switch to opacity 1; Additionally, after refre ...

Utilize Angular to initiate the transmission of attribute values upon a click event

My question may be simple, but I've been struggling to find an answer. How can I send attributes or item property bindings of an item through a click event in the best way? For example: <item class="item" [attr.data-itemid]="item.id ...

The toggle feature in jQuery doesn't hide content in the same manner as it was originally shown

Just diving into the world of jquery and I'm experimenting with the toggle function to display and hide a div, along with adding or removing an active class. http://jsfiddle.net/MAkyw/ I've encountered 2 issues: 1) The 'active' class ...

How can you quickly check an element's visual properties following a CSS modification?

I am facing an issue where I want to modify the appearance of an element in an HTML page using CSS and then immediately check its visual properties. However, the changes specified in the CSS are not applied instantly, but rather after a delay. CSS: .node ...

Extracting data from a database using PEAR for Excel: Enumerating columns

One aspect of my website allows users to extract an Excel file using data from a database, with the help of the PEAR library. The Excel table that is generated currently has 32 columns. My main goal is to insert a 33rd column that assigns a number startin ...

Investigate the dynamic form validation using jQuery

I have set up an input field using jQuery. When the button "add a step" is clicked, jQuery will generate the following structure in the div all_steps: <div class="step"> <div class="header_step">Step '+ (x + 1) +' of the Tutoria ...

What is the best way to horizontal center a flexbox within the browser viewport?

Looking to center a flexibox in the browser window? The code in the following jsfiddle works fine, but it doesn't center the flexibox. When the browser screen changes, the image and text adjust responsively. Check out the Fiddle here <!DOCTYPE ht ...

Traverse an array to generate a horizontal chart

My goal is to dynamically create a horizontal table by mapping through an array, similar to the design shown in this image. https://i.sstatic.net/YfElb.png This is how I am currently mapping through the array: const glanceGames = this.state.gameData.map ...

What is the correct way to implement overflow-y: auto for vertical flex-items?

Check out this interactive example. Here is the HTML code: <div class="overflow"> <div class="block"> <div class="header"> This is a green header </div> <div class="content&q ...

Angular provides a variety of functionality to control the behavior of elements in your application, including the

I have a page with Play, Pause, Resume, and Stop icons. When I click on the Play icon, the Pause and Stop icons are displayed. Similarly, I would like to show the Resume and Stop icons when I click on the Pause icon. I need help with this code. Thank you. ...

Choose an option to modify the URL

I am trying to implement a select form element with values ranging from 1 to 7+. When the user selects "7+", I want the URL to redirect to emailForm.php. How can I achieve this functionality? The other options selected should be captured when the user clic ...

Posting an array using a single input in Angular

When trying to post a list of numbers using the code below in an Angular tags input field, only one number from the list is being posted: HTML <tags-input placeholder="{{placeholder}}" min-length="1" ma ...

Modify the colors of <a> elements with JavaScript

I am brand new to the world of UI design. I am encountering an issue with a static HTML page. (Please note that we are not utilizing any JavaScript frameworks in my project. Please provide assistance using pure JavaScript code) What I would like to achie ...

What is the best way to trigger the closing of a Bootstrap (version 5.2) Modal using JavaScript

In order to complete my school project, I decided to create a modal using Bootstrap in HTML. Inside the modal, there is a prompt that needs to be checked from JavaScript. How can I close the Modal from JavaScript? This way, if the prompt is valid, I can sa ...

Troubleshooting problem with autoplay on a Parallax Content Slider in IE8

Does anyone know how to hide the arrows on pictures in IE8 when the mouse is not hovering over them? I've been struggling to find a solution and would really appreciate some help. ...

FormView does not have a defined namespace prefix asp - How should I specify my Page Directive?

After creating a basic web page using Microsoft Expression Web 4 with an ASP Connection to a local Access DB, I encountered an error when navigating to the page from another webpage. The browser displayed the following errors: Error: Namespace p ...

Adjust the text to match the position of this sliding image

Currently, I am facing a challenge in aligning text to various images for a presentation slider. The issue arises due to the varying number of items and the need for text in both English and Spanish languages to be accommodated regardless of length (usuall ...

`Mark a Wordpress post as read`

Is there a way to add a class to entries that have been read on the index page? Would it be best to use cookies or sessions for this purpose? I could use a little assistance with figuring out the most efficient way to do this. Thanks! ...

Interactive Map Using HTML5, CSS, and JQuery

As someone venturing into the world of web front end development, I am curious about the process of mapping an image so that specific functions can be triggered by pressing different parts. In this case, the shapes will be irregular (such as a map of Europ ...

Storing multiple email addresses in an array using an HTML input element

I have a small React Bootstrap form where I am trying to save multiple email addresses entered by the user into an array. However, when I use onChange={()=> setEmails(e.target.value as any} it stores them in string format like this --> [email p ...