The issue of background size failing to update even after CSS file has been modified

I am in the process of creating a web UI that currently features a blue banner. I have attempted to adjust its size in the CSS code below, but unfortunately, the changes do not seem to take effect. Previously, the background-size property was set to cover, however, I now require the banner's height to be reduced.

#header {
      background-color: #04f;
      color: rgba(255, 255, 255, 0.75);
      display: -moz-flex;
      display: -webkit-flex;
      display: -ms-flex;
      display: flex;
      -moz-align-items: center;
      -webkit-align-items: center;
      -ms-align-items: center;
      align-items: center;
      -moz-justify-content: center;
      -webkit-justify-content: center;
      -ms-justify-content: center;
      justify-content: center;
      -moz-flex-direction: column;
      -webkit-flex-direction: column;
      -ms-flex-direction: column;
      flex-direction: column;
      padding: 8em 0 6em 0;
      background-size: 20px 20px;
      background-position: center top;
      background-attachment: fixed;
      text-align: center;
      position: relative;
      cursor: default;
 }
<!DOCTYPE HTML>
<html>
<head>
<title>Author Script by SANDERS</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="static/main.css?version=1" />
</head>
<body>

<!-- Header -->
<header id="header" class="alt">
<div class="inner">
 <h1>Sanders Author Script</h1>
 <p>A free author formatting script by Stephan J. Sanders</p>
</div>
</header>
</body>
</html>

Answer №1

To increase the height of the header, simply adjust the height property in the CSS ID.

#header {
  background-color: #04f;
  height: 500px;
  width: 100%;

}

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

Cover the HTML background with floating objects using background-size:cover

I recently encountered an issue on a page I was working on. The body had an image background set to cover the entire screen using background-size:cover. To ensure the whole page was filled with content regardless of its size, I added html { height:100% }. ...

"Resolving Compatibility Issues Between Bootstrap 4 and fullcalendar.js: Embedding Fullcalendar Within a Bootstrap 4 Modal

I am currently using fullcalendar.js in conjunction with Bootstrap 4 modal. Whenever I click on a bootstrap4 button, a modal appears with the fullcalendar component displayed. However, upon initial load, I encounter this issue: https://i.sstatic.net/nni ...

``Consolidate and modify multiple records at once with a single click

Take a look at this code snippet for creating a table: while($record=mysql_fetch_array($myData) ) { echo "<form action=mydata3.php method=post>"; echo"<tr>"; echo "<td>" . $record['Id'] . "</td>"; echo "& ...

Implement a feature in JSP that allows users to dynamically add or remove fields before submitting the data to the database

<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http- ...

What is the best way to create a menu similar to the one found on the Microsoft Windows website?

Seeking some assistance with a menu design challenge I'm facing. I'm aiming to replicate the menu style from windows.microsoft.com () on a Drupal website. Specifically, two horizontal bars, with the lower one appearing only when the parent is c ...

Discover how to execute a function depending on a specific button in Node.js using Express

How can I trigger a function based on which button is clicked? I am working with an EJS file named test.ejs <form> <input type="submit" value="Click here 1"></input> <input type="submit" value="Click here 2">&l ...

Selecting the first child within a table using the first-child

I recently set up a login portal page for three different websites. The layout consists of three separate login portals displayed neatly in two columns within a table named "loginPortals". I am currently working on styling the page using CSS, aiming to enh ...

Interacting with CSS buttons using Selenium

Currently, I am working on a test case in Java where I am using Selenium to record a series of events and then play them back on an application. Here is the code snippet I have: // *The app opens a new window* // Get handle of the main window Stri ...

Arranging images in a row with the help of :before and :after styling

Looking to use the pseudo selectors :before and :after to create a border around a div with images, but running into some issues. The :after image is not positioning correctly on the right side of the element and the text is dropping below the image. Check ...

The issue with the Z-index being ineffective is causing the button to appear behind a container in the HTML-CSS

I am currently using Metro CSS (Windows 8 style) and running into an issue. Within my container, there are alerts displayed in blue, and above that is 'IT-CENTER'. When I click on 'IT-CENTER', a button should appear, but it seems to be ...

Utilize the mailto function in HTML to dispatch an email

I am utilizing an Android hybrid app that includes a link for sending emails: <a href="mailto:<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dcafb4aeb5b7bdb2a8b6bdb8b4bdaae4ea9cbbb1bdb5b0f2bfb3b1">[email protected]& ...

When the browser window is resized to mobile view, a div is overlapped by an image

I've encountered an issue with the image size and position when resizing to mobile view in the browser. .extension { display: table; padding: 50px 0px 50px; width: 100%; height: auto; color: #fff; background-color: #558C89; ...

Ways to incorporate a scroll feature and display an iframe using JQuery

Is there a way to animate the appearance of hidden iframes one by one as the user scrolls down the website using jQuery? I have come across some solutions, but they all seem to make them appear all at once. I'm looking for a way to make the iframes s ...

Unable to remove the most recently added Object at the beginning

I am currently working on a project to create a dynamic to-do list. Each task is represented as an object that generates the necessary HTML code and adds itself to a div container. The variable listItemCode holds all the required HTML code for each list it ...

Assign ratings to values based on stars

I am currently facing an issue with implementing a star rating system on my web application. The problem lies in retrieving previously rated values and displaying them as blinking stars. For example, if a user had previously rated something with 4 stars, t ...

CSS animations - Modifying a style element while maintaining the existing timing restrictions

I use CSS transitions to rotate an image img { transition:all 5s ease-out; } To change the rotation direction, I utilize jQuery $('img').css({'transform':'rotate('+2000+'deg)'}); Is it possible to switch the ...

Using JavaScript, ensure that a checkbox is selected by setting its specific name and ID as checked

I'm trying to set a checkbox in my HTML file with a specific name and id as checked. How can I accomplish this task? For example: <input type="checkbox" name="myName_1" id="1" value="my Value 1"> my Value 1 I'm aware of document.getEleme ...

Loading HTML div content on demand using AngularJS

I have been working on a project where I retrieve data from the server to update the data model on the client browser using one-way data binding. The structure of the data model is outlined below. In relation to this data model, I am displaying the conten ...

Return to the directory from which you originated

Is there a way to eliminate duplicate forms located in different folders, which are accessible by specific groups? Ideally, I want to consolidate these into one file. Additionally, the file should be capable of identifying the folder from which the user ...

Display a button within a table depending on the content of adjacent cells

Below is the code snippet I'm currently working with: <tbody *ngIf="packages"> <tr *ngFor="let package of packages"> <td class='checkbox'> <label class="css-control css-co ...