My website is optimized for desktop and tablet viewing, but unfortunately it is not responsive on mobile devices. Can you advise on how to fix

I recently completed a portfolio website using HTML, CSS, Bootstrap 4, and jQuery. While the site displays properly on the browser and up to tablet mode, I encountered issues when viewing it on my phone. There seems to be a blank area that can be scrolled into, the text within the banner image gets cut off, and the image in the "about me" section shrinks to nothing. The website in question is www.reallybilly.com if my explanation is unclear.

Despite experimenting with different viewpoints and @media widths, I have not been able to resolve these display issues.

body,
html {
height: 100%;
max-width: 100%;
}

.banner {
 background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 
 0.5)),
 url("../imgs/city/IMG-5676.JPG");
 height: 100vh;
 width: 100%;
 background-position: center;
 background-repeat: no-repeat;
 background-position: center;
 background-size: cover;
 position: relative;
 }

 .text-box {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
 }

I am seeking ways to make the site completely responsive without starting from scratch.

Answer №1

I noticed after reviewing your website that you should consider removing the 'padding:100px;' from the #about CSS code. This padding is what is causing the layout issue on mobile devices.

Alternatively, it would be best to implement an @media query to apply that padding only when the user is browsing on a tablet or larger screen.

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

Even when the alert is dismissed, the `UnexpectedAlertOpenError` in Selenium Webdriver on Node.js continues to persist, causing unexpected

In my current setup, I am using Cucumber.js and Selenium Webdriver JS within a Node.js environment with Firefox as the chosen browser. The scenario involves testing a page that triggers an alert upon loading. While I have successfully created a Cucumber s ...

Maintaining the current image while awaiting the completion of the new image update

I have successfully implemented a script using setInterval along with the jQuery load function to periodically update an image tag. var refresh_days = setInterval(function() { $('#box_name').load("dynamic.php");}, 1000 ); While this setup wo ...

Use Angular Js to add HTML inner elements to the table

This is my custom HTML code: <body> <div ng-app="tham" ng-controller="tham-control"> <div class="container"> <table class="table table-bordered table-striped"> <thead> ...

Leveraging Ajax in WordPress for email delivery

I'm feeling a bit lost trying to implement Ajax for sending emails via a web form I built. I'm unsure how to make Ajax work within Wordpress. Firstly, I created an action: add_action( 'wp_ajax_siteWideMessage', 'wpse_sendmail&apo ...

Expanding the content to fit the text alignment

I have implemented text justification on a block of content. Here is a link to view the text: Click here Upon closer inspection, you may notice that within the text block, some words are stretched out to fill the space but this causes an abnormal spacing ...

What is the method for including the `meta:redirect` or `<meta http-equiv="refresh" content="0; url=http://example.com" />` in the metadata object for Next.js version 13?

In order to redirect users from one of my pages, I previously utilized the redirect metatag. However, I am unable to locate similar options within the metadata API in Next.js 13 for the appRouter. ...

Any ideas on how to create a fading effect for a background image while scrolling using jQuery?

I am looking to create a fading background image that changes as I scroll down my page. I remember seeing something similar with two divs that fade using opacity. It looked like this: <div class="background1"></div> <div class="background2 ...

The correct order for the "float:right" property is as it appears in the HTML code

I am dealing with a container div containing two child divs, each with the float: right property. The structure of my code is as follows: <div class="container"> .container {width: 50%} <div class="a"></div> ...

Retrieve the quantity of files in a specific directory by implementing AJAX within a chrome extension

I need assistance with obtaining the count of images in a specific directory using JS and AJAX within my chrome extension. My current code is included below, but it does not seem to be functioning as expected since the alert is not displaying. main.js .. ...

Angular 2: Emptying input field value on click event

I am experiencing an issue with resetting my input values. I have a search bar with filter functions. When I enter a value, it displays a list below and I want to add a function to these links. When I click on one of them, it takes me to another component ...

Tips for identifying a pair of numbers (with varying ranges) in which one number must be present at all times

I am currently trying to understand the regex I have implemented in Angular 2 using Typescript: /[0-5]?[0-9]?/ Surprisingly, this regular expression works flawlessly to match any valid minute from 1 to 59, even though it seems like an empty string would ...

What is the best way to integrate Emotion styled components with TypeScript in a React project?

Currently, I am delving into TypeScript and attempting to convert a small project that utilizes Emotion to TypeScript. I have hit a roadblock at this juncture. The code snippet below export const Title = styled.div(props => ({ fontSize: "20px", ...

The issue with React select right-to-left (RTL) functionality is that it

When using react select, I include isRtl as a prop like so: <Select onChange={handleChange} isRtl isMulti options={colourOptions} /> However, only the input receives the rtl direction style and not the options. How can I ensure that both the input a ...

Parallel with one <div> and subsequently another <div>

I have been challenged by HTML and CSS to embrace humility: Attempting to replicate the following design: Here is my effort: <div> <div style="width:800px;"> <div style="float:left;width:25%;background-color:red;">Facility #: COM ...

Is there a different method for looping in JSX besides .map()?

In my JSX code, I am attempting to display a specific value based on certain conditions. The current code snippet checks if the 'item.result' exists and has a length greater than 0. If so, it maps through the 'item.result' array and dis ...

Is there a way in JQuery to display a message when the ul element is empty and hide it when items are added to the list?

In the title lies the question. I find myself with a ul element that lacks list items, and I'm searching for a way to present a message (perhaps a li element) so users can easily see that the list is empty. Once an item gets added to the ul, the messa ...

Obtain the XPath of an element in angleSharp

Is there a specific method to obtain the xPath of an angleSharp IElement In order to pass an IElement to a JavaScript function, I require a way to convert the angleSharp element into a JavaScript DOM element. function selectLevels(element, name, level){ ...

Guide on executing edit form alongside file upload

Is there a way to update a form without having to upload a new image? I have successfully implemented multer for image uploads when creating a form. My frontend is built using ReactJS and the backend server side is Node.js. This is the front end code usi ...

Issue with codeigniter and jquery login functionality not triggering/responding

My controller had a working login function that suddenly stopped functioning after some changes were made. The login feature consists of two input fields for username and password, along with a submit button. //Javascript function initLogin(e) { e.p ...

What is the best way to retrieve an <a> tag element using Selenium in Python?

I am fairly new to using Selenium and could use some guidance with the following issue. I am attempting to create a birthday bot for Facebook, but navigating through the platform's latest UI has been challenging with JavaScript disabled. I've bee ...