Challenges with utilizing multiple backgrounds in CSS

 <!DOCTYPE html>
 <html lang="en">
 <head>
 <meta name="description" content="">
 <meta name="author" content="">
 <title>Main Website</title>
 <link href="css/main.css" rel="stylesheet">
 </head>



    <body>
    <nav>
    <div>  
        <div>
            <ul>
              <li><a class="active" href="index.html">Home</a></li>
              <li><a href="mens_clothing.html">Mens Clothing</a></li>
              <li><a href="women_clothing.html">Womens Clothng</a></li>
              <li><a href="boys_clothing.html">Boys Clothing</a></li>
            </ul>
        </div>

    </div>

</nav>


<div class="container">

    <div>


        <div>

            <div class="accordion">
                    <ul>
                        <li>
                            <div class="caption"><a href="#">Slide 1</a></div>
                            <a href="#">
                        <img src='Slider_Image1.jpg'/></a>
                        </li>

                    <li>
                            <div class="caption"><a href="#">Slide 2</a></div>
                            <a href="#">
                        <img src='Slider_Image2.jpg'/></a>
                        </li>

                    <li>
                            <div class="caption"><a href="#">Slide 3</a></div>
                            <a href="#">
                        <img src='Slider_Image3.jpg'/></a>
                        </li>

                    </ul>
            </div>

            </div>

            <div>

                 <div class="centre , fade ,">
                    <div class="thumbnail">
                     <a href="Nike_Shoes1.html">
                        <img src="Image1.jpg" alt="">
                    </div>
                </div>

                <div class="centre , fade">
                    <div class="thumbnail">
                        <a href="Nike_Trainers.html">
                        <img src="Image2.jpg" alt="">

                    </div>
                </div>

                 <div class="centre , fade">
                    <div class="thumbnail">
                        <img src="Image3.jpg" alt="">   
                    </div>
                </div>

                 <div  class="centre , fade">
                    <div class="thumbnail">
                        <a href="new.html">
                        <img src="Mens_Clothing.jpg" alt="Mens Clothing">  
                    </div>
                </div>

                 <div  class="centre , fade">
                    <div class="thumbnail">
                        <a href="women_clothing.html">
                        <img src="Womens_Clothing.jpg" alt="Womens Clothing">
                    </div>
                </div>


                 <div  class="centre , fade">
                    <div class="thumbnail">
                        <a href="boys_clothing.html">
                        <img src="Boys_Clothing.jpg" alt="Boys Clothing">
                    </div>
                </div>

                 <div  class="centre , fade">
                    <div class="thumbnail">
                        <img src="Converse_clothing.jpg" alt="Converse Clothing">
                    </div>
                </div>

                <div  class="centre , fade">
                    <div class="thumbnail">
                        <img src="Adidas_clothing.jpg" alt="Adidas Clothing">
                    </div>
                </div>

                </div>

            </div>

        </div>

    </div>

</div>


<div>
    <!-- Footer -->
    <footer>



    </footer>

</div>

If you love the code of this website, I have some ideas for you to make it even more unique. One way to enhance your website is to add two images on either side of the webpage. Also, if you are struggling with setting an image as your background and seeing a white area instead, there are ways to troubleshoot and fix this issue. Feel free to reach out if you need any assistance!

Answer №1

To achieve the best result, consider combining both images into a single image using editing software and then applying the merged image as your background.

Answer №2

To create a unique background, simply combine the two images in Paint and set it as your new backdrop.

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

Using flexbox auto margin within nested elements: A guide

Is it possible to achieve consistent margins between the heading and list items using flexbox? section { display: flex; background: #eee; } h1 { background: #bbb; } ul { display: flex; flex: 1; list-style-type: none; background: #ccc; ...

Positioning of the navigation menu

After customizing my Bootstrap navbar, I noticed that when the responsive size changes to mobile, the burger menu opens on the left side. Is there a way to move it to the right? Any help would be appreciated. Here is the HTML code: <!DOCTYPE html> ...

CanJS utilizes mustache templates to escape HTML tags

I have a requirement to present a series of choices to the user. I am using a mustache template along with the CanJS JavaScript framework to showcase these options. The problem arises when attempting to display an option such as: Potato Rs. 12 The mustac ...

Employing state management in React to toggle the sidebar

A working example of a sidebar that can be toggled to open/close using CSS, HTML and JavaScript is available. Link to the Example The goal is to convert this example to React by utilizing states instead of adding/removing CSS classes. To ensure the side ...

Change the color of this element and input field background

Having trouble with setting the background color of an input field to red in this code: $(document).ready(function(){ $(".abc").focus(function(){ $(this).attr('background', 'red'); $("label").text('Insert tex ...

Top tips for utilizing CSS in a web component library to support various themes

Our team is currently in the process of developing a comprehensive design system that will be utilized across multiple projects for two distinct products. Each product operates with its own unique brand styleguide which utilizes design tokens, such as: Th ...

Issues with the aligning of buttons using the justify-content property

The issue I'm facing involves a parent container with 3 buttons nested inside. The parent container is set to display:inline-flex, however, the justify-content: space-between property is not behaving as expected. Each button has a defined max-width in ...

Unable to remove stock using delete query

Currently, I am working on a clothing shopping website where the admin can manage the stock by adding, updating, and deleting items. However, I have encountered an issue with my delete query. The problem lies in the fact that when I click on the delete b ...

The display message in Javascript after replacing a specific string with a variable

I'm currently working on a task that involves extracting numbers from a text input, specifically the first section after splitting it. To test this functionality, I want to display the result using an alert. The text input provided is expected to be ...

The JavaScript code is failing to retrieve the longitude and latitude of the location on a mobile browser

I am having an issue with my Javascript code not properly retrieving the longitude and latitude from the mobile Chrome browser. While this code works fine on laptop or desktop browsers, it seems to be failing on mobile devices: <script> if (nav ...

Modify the HTML select tag to toggle from a selected checkbox

What should I do when a certain option is checked in the checkbox, and that label needs to be shown in the select tag? https://i.stack.imgur.com/ZxRNF.png Checkbox input <input type="checkbox" class="toggle-product pull-right" @if(!isset($restrictedPr ...

The custom attribute in jQuery does not seem to be functioning properly when used with the

I am currently working with a select type that includes custom attributes in the option tags. While I am able to retrieve the value, I am experiencing difficulty accessing the value of the custom attribute. Check out this Jsfiddle for reference: JSFIDDLE ...

Is there a way to enlarge an iFrame to fill the entire screen with just a button click, without using JavaScript

I am currently attempting to achieve full screen mode for an iFrame upon clicking a button, similar to the functionality on this site. On that website, there is a bar that expands to full screen along with the embedded game, which is what I am aiming for. ...

One crucial factor to consider when dealing with dual screen setups is the

Imagine you have the following code snippet : <ul> <li>Menu1 <ul class="submenu"> <li class="firstmenu">submenu-1</li> <li>submenu-2</li> < ...

Tips for tailoring content based on screen size

I am looking for a way to display different content depending on whether the user is viewing my website on a large screen (PC/tablet) or a small screen (mobile). While my site is responsive and uses bootstrap, I have a lot of content that is only suitable ...

Cannot add padding to the DIV element

Here is some HTML and CSS code that I've provided. .x{ border-bottom: 1px solid #000; } .y { border-bottom: 1px solid #000; } .z li{ display: inline; padding-top: 50px; } <div class="x"> <br> <br> <b ...

Ways to eliminate unnecessary spacing in CSS text-stroke

I am trying to achieve a text-stroke effect with transparent text over an image. However, I am facing an issue where the text-stroke also displays lines within the text itself. I am using the Montserrat font from Google Fonts. Can anyone provide assistance ...

Box-free calendar dash component

Encountering an issue within my application dashboard, here's a direct screenshot: https://i.stack.imgur.com/sEMrM.png The problem is that the Calendar days are extending beyond the borders of the calendar box. To implement this, I simply utilized ...

The CSS property for fixing an element in place: position

On my website, I have a position:fixed <div> that appears in the center of the screen. Whenever there are messages, a second position:fixed <div> is displayed next to the first one. I've noticed that on various screen sizes, like a netbo ...

What is the best way to retrieve an element from an array within a script?

As a newbie in the realm of vue and Laravel Framework, I am eager to fetch data from an API and display it dynamically on my web page. To achieve this, I have already set up a table named 'Progress' where I seeded some initial data. Utilizing AP ...