Issue with Logo and Header Containers Incorrectly Scaling

I've been working hard to make sure that both my company logo image and the background image resize accordingly based on the screen size. However, I'm facing an issue where if the background image resizes correctly, the logo image remains unchanged in size. On the other hand, if I manage to get both images to resize, the logo ends up being too large and covers the entire width of the screen. Then, when I try to reduce the width of the logo image, the background image shrinks to less than the screen's width.

Check out the landing page where I'm encountering these problems:

I want the header image and logo to create the desired effect while being responsive to different screen sizes, similar to what you can see in this image: Hopeful Header and Logo Appearance

If anyone could help me with this issue, I would greatly appreciate it. I've spent hours trying to figure it out to no avail. Let me know if you need any additional information.

Below is all the code related to the Header section...

/*---------[HEADER]---------*/
#header-holder { 
    width:100%; 
    height:auto; 
    float:left; 
    color:#fff; 
    background-image:url(https://lh3.googleusercontent.com/-dYSRZJJhqiM/VibgbmiBMeI/AAAAAAAADIU/OfLCyLyozy4/s1440-Ic42/DD%252520Landis%252520Large.png);background-repeat:no-repeat;background-size: contain;}
#logo-container img {
    width: 100%; 
    height: auto; 
    background-size: contain;
}
.Page_title{
    font-family:'Droid Sans';font-weight:bold;font-size:27px;text-shadow:0px 2px 0px #000;width:800px;text-align:center;padding:10px;margin:17px auto 30px auto;}
.Page_content{
    font-family:'Droid Sans';font-size:13px;width:560px;text-align:center;margin:0 auto;padding:0 0 56px 0;line-height:22px;color:#ffbda4;text-shadow:0px 1px 0px #000}

Answer №1

Here is my input for the editor.

.container,
#front_page_container {
    width: 100%
}

By keeping this code as it is, the countdown will stay centered. However, on smaller screens, it may appear too large. I am unsure if this class is utilized elsewhere on the website. I recommend reconsidering the layout. The current template lacks responsiveness, requiring significant effort to make it adapt well to different devices.

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

Launching Stealthy Slider

I am currently having an issue with implementing Sly Slider on a free WordPress theme. I have properly enqueued the JS file, set up the HTML markup, and written a jQuery function following the documentation but it does not seem to work vertically. What cou ...

Combining a left vertical navigation bar with a top navigation bar in Bootstrap 4

I am currently working on creating an admin UI using bootstrap 4 that includes two menus, one vertical and the other at the top bar. My goal is to have a navigation layout similar to this: https://i.sstatic.net/q2NbY.png Here is the snippet of my HTML co ...

Guide on How to Show Only the Initial Word of an H2 Header Using JavaScript or CSS

Is there a way to display only the first word from an h2 heading? For instance: In the website's source code, it would appear like this <h2> Stackoverflow is an Ideal Place</h2> But on the live website, it should be displayed like this ...

Tips for designing resizable overlay divs

Looking to design an image with an overlay gradient and text, similar to this: <div> <img src="url"/> <div background-image="other url" background-repeat:repeat-x;> <h2>some text</h2> </div> </div> Some impor ...

Images in the background that adapt to the screen size

Hello, I am a beginner in React and looking for assistance with my home.js code: I am attempting to use an image as a background for my page, but I am struggling to make it adjust to the window size. I have tried using properties like background-repeat: n ...

Tips for modifying jsFiddle code to function properly in a web browser

While similar questions have been asked before, I am still unable to find a solution to my specific issue. I have a functional code in jsFiddle that creates a table and allows you to select a row to color it red. Everything works perfectly fine in jsFiddle ...

Creating a dynamic image gallery with varying image dimensions using JavaScript and Bootstrap

Struggling with aligning an image gallery featuring images of varying sizes? I don't want to set the size programmatically as it may not look good on different screens. The additional challenge is dealing with white spaces between images and not knowi ...

Is it possible to use JQgrid to navigate to a new page upon double-clicking?

I have a straightforward jQgrid implementation on my website <div id="catalogueSearchList" class="dataGrid"> <script type="text/javascript"> var catalogueSearchListConfig = { ...

Limited functionality: MVC 5, Ajax, and Jquery script runs once

<script> $(function () { var ajaxSubmit = function () { var $form = $(this); var settings = { data: $(this).serialize(), url: $(this).attr("action"), type: $(this).attr("method") }; ...

Error message occurs when attempting to use the ->num_rows function on inner join statement and accessing a property of a non-object

I am attempting to fetch both Product_Name from the product table and Order_Date from the order table, but I keep encountering an issue at line 35 mentioning the "num_rows line". <?php $servername = "localhost"; $username='root'; $password = ...

How to target child <div> elements within a parent <div> using jQuery

I am facing an issue with my parent <div> named #amwcontentwrapper. It contains a series of child divs with their own classes and ids. My goal is to utilize jQuery to select these child divs, and if they have the class .amwhidden, I want to leave th ...

Data is not being recorded in the database

As a newcomer to PHP, I am currently working on a registration form in my 'reg.php' file. <form method="post" action="scripts/signup.php" class="ui form""> <div class="field"> <label>UserName ...

Creating a see-through circle going in the opposite direction with CSS

Can someone assist me with making a section on color background transparent using CSS? Below is an example of the background I'm trying to achieve: I haven't attempted anything yet because I am unsure how to do it. If I place it as a div within ...

"An issue with IE9 causing small dots on rounded corners during rendering

Help Needed: Strange IE9 Rendering Issue I'm experiencing an odd rendering problem in Internet Explorer 9. You see those little white dots on the left? What could be causing them? Any suggestions on how to remove them? Microsoft, why always so myst ...

Opacity filter malfunctioning

It seems that the filter: opacity property is not functioning as expected in IE8. Despite having used it successfully before, I am currently facing issues with its implementation. Strangely enough, Firebug does not display the filter rule at all; only norm ...

Troubleshooting Problem with Website Responsiveness on iPhones Using Bootstrap 5

I am currently experiencing a challenge involving the responsiveness of a website I am developing, particularly when it comes to iPhones. The site utilizes Bootstrap 5 and displays correctly on Android devices and in Chrome Dev Tools. However, upon testing ...

The color of CSS links appears inconsistent when viewed on the homepage of the root URL

When I hover over the links in my drop-down menu, they are supposed to turn light blue. This works perfectly on my index.html page. However, when I visit the root URL of my website, the color change does not happen and stays as the standard color. I have t ...

What is the best way to activate the default action/event of an HTML link (anchor element)?

Is there a way to programmatically trigger the default action of an HTML link using JavaScript or jQuery? Essentially simulating a user click on the link. Simply using .click() does not seem to do the trick. $('#alink').click(); // nothing happ ...

Exploring the possibilities of CSS grids within the Wordpress platform

After successfully building my website, I am now in the process of converting it into a customizable wordpress theme. One challenge I am facing is integrating a dynamic gallery using CSS grid. The goal is to upload photos, videos, and gifs in Wordpress and ...

Replicate the action of clicking on the download button in R

Is there a way to programmatically simulate clicking on the download button on the following website using R and download the TSV table? I have looked into methods such as Rselenium and PhantomJS, but they seem to be outdated now. I came across V8 as a po ...