Challenges related to elements overlapping in design (CSS, HTML)

Some unusual layout issues are occurring that seem to be related to CSS.

The main div, toolbar div, and the closed dojo expandopane are causing problems. Initially, the top of the main div overlaps the toolbar until the expando pane is expanded once. After this, everything appears fine. Additionally, the scale_bar is not properly integrated into the toolContainer.

Below is the HTML body:

<!DOCTYPE html>
<html dir="ltr">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" />
  <title>A Company | SIG WEB</title>

  <script>
  var dojoConfig = {
    parseOnLoad: false,
    async: true,
    packages: [
      {
        name: "agsjs",
        "location": '/SPE_SIG/agsjs' // for xdomain load
      }, {
        name: "js",
        "location": '/test/js'
      }]
    };
    </script>

    <link rel="stylesheet" href="http://js.arcgis.com/3.17/dijit/themes/claro/claro.css">
    <link rel="stylesheet" href="http://js.arcgis.com/3.17/esri/css/esri.css">
    <link rel="stylesheet" href="http://js.arcgis.com/3.18/dojox/layout/resources/ExpandoPane.css">
    <link rel="stylesheet" href="css/widget_styles.css">

    <script src="http://js.arcgis.com/3.17/"></script>


    <script src="js/Map.js"></script>

    <!--<script type="text/javascript">
    dojo.require("dojox.layout.ExpandoPane");
  </script>-->

  <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
  <script type="text/javascript">
  $(window).load(function() {
    $(".loader").fadeOut("slow");
  })
  </script>

</head>

<body class="claro">
  <div class="loader"></div>
  <div class = "contentclass" id="content" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'sidebar', gutters:true" style="width: 100%; height: 100%; margin: 0;">

    <div id="rightPane" data-dojo-type="dojox/layout/ExpandoPane" data-dojo-props="region:'right',title:'Outils',startExpanded:false">

      <div data-dojo-type="dijit/layout/AccordionContainer">
        <!-- <div data-dojo-type="dijit/layout/ContentPane" id="legendPane" data-dojo-props="title:'Légende', selected:true">
          <div id="legendDiv"></div>
...

The CSS code used is as follows:

html,
body,
#map {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  z-index:0;
}

...

.scaleBarClass {

  display: inline-block;
  float: right;
  padding: 15px 115px;
}

To view a simplified version of the issue on a public URL, click here. Here's how the page initially loads (with a slight map overlap over the toolbar): https://i.sstatic.net/MtiVL.jpg

And here's how it looks after expanding the 'expandopane'—the elements align correctly: https://i.sstatic.net/qBJSZ.jpg

Answer №1

.light .dijitToolbar {
height:45px;}

This solution should resolve the problem :)

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

Creating a Gulpfile.js that efficiently manages a multitude of files spread across various folders

For my ongoing WordPress projects, I am simultaneously working on themes and plugins. In my theme folder, I have a gulpfile.js that compiles .scss files into .css. I am considering creating a central "master" gulpfile in the root folder to compile .scss fi ...

Enabling element overlap using jQuery

I have implemented jQuery to animate a navbar button on one of my web pages. However, the animation causes the div below it to be displaced and disrupts the layout. Is there a way to allow the button to animate without affecting the position or layout of t ...

PHP code isn't showing any posts

Context: I have implemented a PHP loop to generate a dynamic feed of my portfolio posts on my WordPress website. Issue: The first five posts are being displayed correctly, but the subsequent posts are not. I'm uncertain about the underlying cause and ...

Steps to center an HTML canvas on the screen

I attempted to center my canvas horizontally using <div style="text-align:center;">, but the y axis remains unchanged. How can I position the HTML canvas in the center of both the x and y axes? Any suggestions on how to achieve this alignm ...

Enlarging and cutting video footage

I have developed an app that features a code enabling users to capture photos using their computer-connected camera. How it Works: A webcam is utilized to display a video element with the camera as its source: function onSuccess (stream) { this.video.s ...

Is there a regular expression that can be used to extract sentences from HTML

As I delve into the world of HTML parsing, I'm starting to understand that using regular expressions for this task is not always the best approach. However, in my Perl class, I am currently experimenting with utilizing regular expressions to extract a ...

The dimensions of images and text in HTML

I'm having trouble adjusting my page to fit the resolution of the screen. The image I'm using is 1920 pixels wide, but it's extending beyond the window. Click this link for the code and images: index1.html and style1.css are not needed. < ...

Utilizing background image CSS class repetitively

I have a button background class that I want to reuse multiple times. How can I keep all the common styles separate and only change the URL multiple times? Here is my CSS: .menuBtnColour{ position: relative; //common top: 0;//common left: 0;/ ...

The reveal/conceal feature will not reveal all elements at the outset

I've been working on implementing a show/hide elements filter. However, I'm facing an issue where all elements that are supposed to display initially are hidden instead. Additionally, the 'active' class is not being properly removed or ...

How can scriptlets be used to dynamically create a properly functioning model?

Having trouble populating data into the modal form. I've tried placing the modal code inside a for-each loop, and while it successfully displays the details in the modal, the functionality of the close button and clicking outside the modal to close it ...

Styling with CSS: Shifting an Element with each adjustment in page width

Within my project, there is a basic div that serves as a navigation bar. Inside this div rests an image portraying a logo. My goal is for the position of the logo to adjust every time the page width is altered. I attempted using media queries for this pu ...

Creating an opaque effect on a Material UI Drop down menu: Step-by-step guide

For the last half hour, I've been experimenting with my Select dropdown menu in an attempt to make it semi-transparent, but without success. I've tried adjusting the properties of the Paper, then the Menu, and then the MenuList, yet it appears th ...

What is the best method to remove the gap between my two horizontal div elements?

Is there a way to eliminate the small space between my two horizontal sections here? I've already attempted using margin: 0px; and padding: 0px; on the container, but it doesn't seem to be effective. Any assistance would be greatly appreciated! ...

How can you ensure a cohesive visual style throughout various Razor and HTML views?

In my ASP.Net MVC 5 application, I have a Layout.cshtml and HTML view page included. However, I want to maintain a consistent look and feel across multiple views in the application. I am aware that this can be achieved by using a Razor view page with the f ...

Is there a way to use prettier to format HTML codes without breaking up the tags?

As someone new to web development, I have recently encountered some challenges with coding, one of them being Prettier. This tool formats codes into parts, making it difficult for me to understand the code properly. After formatting, the code gets separat ...

Is it possible to remove strings within HTML elements?

{% for term in terms %} <div class="term term-count-{{loop.index}}"> <b>{{ term }}</b>: &nbsp;&nbsp; {{ terms[term] }} &nbsp;&nbsp; </div> {% endfor %} 'terms' is a dictionary w ...

Is it possible to make nested HTML list items align to the left?

Is it possible to align nested HTML list items to the left? For example: Bat Cat Ratonetwothree Mat <ul> <li>Bat</li> <li>Cat</li> <li>Rat<ul><li>one</li><li>two< ...

Customize hover effects in tailwind css with dynamic values

I am trying to customize the text color on hover based on different category names using tailwind CSS. In my configuration, I have assigned a specific color code for each category like this : tailwind.config.js theme: { extend: { } }, co ...

Reducing URL query parameters

In my application, I have a variety of filtering options that users can use to narrow down their search results. For example: <input type="checkbox" name="filters[1][]" value="4" /> Filter 1-4<br /> <input type="checkbox" name="filters[1][] ...

Customizing the Style of Mat-Form-Field

I have designed a search bar using mat-form-field and attempted to personalize the appearance. Currently, there is a gray border-like region surrounding the input field and icons. Moreover, clicking on the input field results in a visible border: <form ...