The CSS gradient is not displaying properly, and the footer is not staying at the bottom of the page and is not resizing correctly on mobile devices

Does anyone know how to make this code responsive for mobile and other devices?

Visit:

Issues:

  • The gradient text doesn't load correctly when resizing the website.
  • The footer doesn't stick to the bottom and has display errors on mobile.

The HTML code is:

<!doctype html>
...
</html>

The CSS Code is:

@font-face {
...
}

Answer №1

To update the footer styling, you should remove the height property and make the following adjustments:

.footer{
    background-color: #000;
    text-align: center;
    color: #FFF;
    bottom: 0px;
    padding-bottom: 0px;
    position: fixed;
    right: 0px;
    left: 0px;
}

Regarding the gradient placement, it seems there is an error in implementing the gradient. I suggest referring to the linear-gradient documentation for proper guidance. However, you can incorporate the code below:

#grad {
    background: -webkit-linear-gradient(left, #3BD99F, #9600FA); /* Safari 5.1 to 6.0 */
    background: -o-linear-gradient(left, #3BD99F, #9600FA); /* Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(left, #3BD99F, #9600FA); /* Firefox 3.6 to 15 */
    background: linear-gradient(left, #3BD99F, #9600FA); /* Standard syntax */
} 

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

What are some strategies for accessing the original values of form components that have not been altered when using ngModel?

I am currently developing a form and I intend to utilize the previous values as "value" in the form. By employing ngModel dynamically, I am able to change some properties. However, I have encountered an issue where the field that remains unchanged by the u ...

How to Build a Chatbox using AJAX, HTML, and C#?

Currently, I am incorporating the Nancy Web Framework into my C# Console Application to develop a user-friendly Web Administration panel for my software. In this project, I have chosen to utilize the Spark View Engine due to its simplicity in handling HTML ...

Is it possible to apply a background color to a specific text div without affecting the rest of the elements on the page

I am currently facing an issue with a navigation div that is positioned at the top of my page. The div, which consists entirely of text, functions properly. However, when I scroll over an image or text on the page, the content inside the div becomes diffic ...

Obtain checkbox input from HTML using Angular 2 typescript

Within my HTML code, I have defined two checkboxes in the following manner: <label><input type="checkbox" id="checkbox1" /> Folder 1: </label> <label><input type="checkbox" id="checkbox2" /> Folder 2: </label> I am fac ...

Having trouble uploading an image of a varchar type from my MySQL database. Any ideas on how to fix this issue?

Currently, my PHP server is hosted on 000webhost and I am using phpMyAdmin for the database. The structure of my image row in the database table is as follows: image varchar(100) utf8_unicode_ci I am attempting to create a functionality where a user ...

Is it possible to adjust the height of input fields in MUI Reactjs?

Having trouble adjusting the height of input textfields using in-line css. <FormControl sx={{ "& .MuiOutlinedInput-notchedOutline": { borderColor: "blue", }, "&.Mui-focused .MuiOutlinedInpu ...

Internet Explorer: JQuery deselects radio button upon its selection

One issue I have encountered is with a listener for a group of radio buttons in IE. When a radio button is selected, it triggers a database call to populate a select element. However, in IE, after the code runs successfully, the selected radio button becom ...

Learn how to activate a JS native event listener using jQuery for the 'change' event

This question is unique from the one found at How to trigger jQuery change event in code. The focus here is on the interaction of jQuery with native event listeners, rather than jQuery event listeners. I am using addEventListener to bind a change event fo ...

Dealing with an AngularJS application that needs to handle a JSON object containing numerous levels of nesting and unpredictable data values

I am facing a challenge where I need to call a service that will return a JSON object with an unpredictable number of parents, children, grandchildren, etc., all having unknown names. Having limited experience with recursion from my college days, I am s ...

Is there a more optimized CSS approach for this layout?

I attempted to create this layout using only CSS (no JavaScript, etc.) within an existing HTML page (without altering the HTML code). Unfortunately, I couldn't achieve all the positions that I needed. Let's see if anyone has a better idea. Thanks ...

What is the best way to calculate a uniform height for multiple ui-btn elements within a ul?

How do I set a consistent height for multiple ui-btn elements within a ul? Consider the code snippet below: <div data-role="navbar" class="ui-navbar" role="navigation"> <ul class="ui-grid-d ui-tabs-nav ui-helper-reset ui-helper-clear ...

When implementing dynatable with Meteor, the outcomes may vary between the demonstration in a fiddle and the actual application

Here is the fiddle I created for this question: https://jsfiddle.net/ereday/82wzwem8/2/ In the fiddle, you'll notice that the table header has a green background. Now, let me share the code snippet from my meteor project: simple-todos.html <head ...

What does the error message "Uncaught TypeError: Cannot access property 'style' of an undefined object" mean?

I've been attempting to execute the code below, but I keep encountering an error. I even tried including document.addEventListener('DOMContentLoaded', (event) => yet it still doesn't work. Interestingly, there are no errors if I run ...

Creating duplicates of a div element with each click

I am looking for a way to create a button (ADD) that, when clicked, generates a form with a field and a delete button. The form fields and the delete button should be erased when the button is clicked. <button type="button" class="btn btn ...

The paragraph tag remains unchanged

I am currently working on developing a feature that saves high scores using local storage. The project I'm working on is a quiz application which displays the top 5 scores at the end, regardless of whether the quiz was completed or not. However, I&apo ...

What causes an image background to take precedence over the background color of Bootstrap buttons?

Why is the CSS overriding the bootstrap button background styling and making it transparent instead of the default color? For example, if I have a button with the following styling in my document that sets the background-image of the entire body to an ima ...

Implement checkbox functionality for data binding in Vue framework

I'm having trouble figuring out how to display the selected values in Vue. I've got a form that triggers a query based on the user's selections: <form id="Register"> <br>Firstname<input type="checkbox" value="firstNam ...

Heroku failing to load CSS files

I am encountering an issue with the code in my settings.py file in Django. DEFAULT_FILE_STORAGE = 'hhhh.utils.MediaRootS3BotoStorage' STATICFILES_STORAGE = 'hhhh.utils.StaticRootS3BotoStorage' S3DIRECT_REGION = 'us-west-2' S3 ...

Overlay a translucent navbar above a jumbotron using Bootstrap

I'm interested in creating a landing page design with a large jumbotron at the top and a transparent navbar overlaid on it, similar to the layout on this website: https://stripe.com/en-gb-dk. The jumbotron will simply have a colored background, withou ...

What is the best way to create a horizontal scrolling feature for a two-row layout using Bootstrap?

When using one row, the script works successfully. Here is an example of the code: html : <div class="testimonial-group"> <div class="row"> <div class="col-md-4">1</div> <div class="col-md-4">2</div> < ...