Content on Google sites filling the entire screen space

My current project involves creating a webpage on Google Sites for school. However, the site's appearance is not what I intended. Instead of displaying as I designed it, the page has extra elements that were added automatically by Google Sites. Is there a way to remove these unnecessary components?

.titlebox {
  display: block;
  margin: 10px;
  padding: 50px;
  background-color: yellow;
  border-radius: 10px;
  border: 2px solid black;
  text-align: center;
}
.map {
  margin: 10px;
  display: inline;
  float: left;
  padding: 20px;
  background-color: green;
  border-radius: 10px;
  border: 2px solid black;
}
.content {
  margin: 10px;
  display: inline;
  float: right;
  padding: 20px;
  background-color: orange;
  border-radius: 10px;
  border: 2px solid black;
}
a div {
  color: black;
  text-decoration: none;
  padding: 5px;
  border-radius: 10px;
  border: 2px;
}
a:hover div {
  color: orange;
  text-decoration: none;
  padding: 5px;
  border-radius: 10px;
  border: 2px;
  background-color: blue;
}
<div class="titlebox">
  <h1>GMO DEBATE</h1>
</div>
<div class="map">
  <div text-align="center">
    <h3>pages:</h3>
  </div>
  <ul>
    <li>
      <a href="pro">
        <div>why GMOs should be labeled</div>
      </a>
    </li>
    <li>
      <a href="con">
        <div>why GMOs shouldn't be labeled</div>
      </a>
    </li>
    <li>
      <a href="info">
        <div>background information</div>
      </a>
    </li>
  </ul>
</div>
<div class="content">
  <h3>Should GMOs be labeled?</h3>
</div>

Although the code is enclosed in a box, I believe the issue lies with the additional content that appeared before any modifications were made. Setting specific widths for the elements does not resolve the problem.

Answer №1

Just like you mentioned, a code box is used to display content in a limited area, with only a specific percentage of the page's display area available.

If you require your website to occupy the entire page, consider using a free hosting site such as to host your web pages and have full control over your content.

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

Accessing JavaScript results in PHP

Hello everyone! I am working on creating a dropdown menu for selecting time using JavaScript to get the computer's current time. My goal is to have an output that automatically selects the option in the dropdown if it matches the computer's time. ...

Setting up web SMS configuration for email integration

I have a code for sending web mails and SMS notifications that is functioning correctly. However, I want to receive SMS notifications only when users select the “A” value from the servicerequired drop-down menu and do not wish to receive SMS between 8 ...

Receiving an undefined value when trying to access the index of a data list array

I'm currently working on implementing a datalist that gets populated from a JavaScript array and want to identify which part of the array was clicked on. After some debugging, I discovered that my arrays are returning undefined or 0. I've trans ...

Safari scrolling with a sleek black background

When I overscroll over the viewport in Safari, a black line appears on the app in all directions. However, in Chrome, this line is white. Even though I have "theme_color": "#ffffff" set in my manifest.json, the issue persists in Safari ...

How can we ensure that the borders of a text field automatically adjust to fit the dimensions of the text field using CSS?

I've encountered an issue with the borders of text fields while working on a project involving CSS/HTML. The problem is that in the browser, the borders appear shorter than the text fields. Initially, I attempted to adjust the border size to match th ...

Creating a custom grid layout with Bootstrap 4

Take a look at the image link provided below. https://i.sstatic.net/yhbx9.jpg I am attempting to use boostrap4 to create a grid layout similar to the one shown in the image. On desktop, the first column should be col-5 width and the other 3 equal. On mob ...

What is the process for extracting content from CSS comments or annotations in a stylesheet?

Here's an interesting concept: allowing users to define a set of CSS rules with annotations. For example: /* @name Page style */ body { font: 16px/1.5 Arial; /* @editable */ background-color: #fff; /* @editable */ } /* @name Section header */ ...

The functionality of Anchor `<a>` tags is compromised in Chrome when using the hashtag symbol (#)

Below is the code I have implemented on my website: <li><a href="/explore/#Sound">Sound</a></li> (This menu is visible on all pages) <a id="Sound"><a> (This is on the specific page where I want to link to) I have at ...

What is preventing the necessary form from being submitted?

I'm creating a mandatory form for my web development class, but I'm encountering some issues. I've copied the exact code from the course materials, and I'm not sure if it's a browser problem. When I click on the register button, on ...

Displaying a carousel using CSS

I have constructed a carousel using HTML, but for some reason it does not display anything once compiled. <div class="list-offers"> <div class="container"> <div class="row1"> <div class="col-xs-12 item bg_fix right" style="ba ...

How can you incorporate a unique font using a CSS class within a bootstrap class declaration?

Is it possible to add a CSS class to a pre-existing bootstrap class on a webpage? For example, I know how to add a custom font to a bootstrap page, but I only want to change the font of a specific line while keeping the rest of the text with the default fo ...

External JavaScript file not executing defined function

My homepage includes a register form that should open when the register button is clicked. However, I am encountering an issue where the function responsible for opening the form from another JavaScript file is not being triggered. Here is the HTML code: ...

Using JQuery to cycle a class with a timer

My list has the following structure <div id="slider"> <ul> <li class='active'> a </li> <li> b </li> <li> c </li> <li> d </li> <li> e </li> </u ...

I created a customized version of jQuery tabs, but I am looking for an external link to display the tab content and to style the original navigation

I've been experimenting with modifying a tabs script in jQuery that I came across. It seems like my attempt to enhance it has made things more complex than necessary. While I know creating tabs with jQuery is simple, I wanted to create my own version ...

The Navbar in Bootstrap 3 remains expanded and does not collapse

It seems like there's a simple solution I'm overlooking. When I resize my screen, the navbar collapse toggle stops working. I've searched various forums but couldn't find a fix that works for me. Could someone lend a hand in identifyin ...

Pass a set value in Vue configuration

I need to create a form where users can edit information from a database. The challenge is to display the current value in the input field so users can choose to change it or leave it as is. Here's how I'm attempting to achieve this: <div v-f ...

The hyperlink function is not operational in Gmail attachments

Using an anchor tag to navigate to a specific section within the same page works perfectly when the HTML file is on my local machine. However, when I attach the file in Gmail and open the attachment, it doesn't work. Why is this happening? How can I m ...

What is the process for implementing hover transitions on link elements?

I am trying to incorporate a transition effect for my links. Essentially, I want the text-decoration (which is currently set to underlink) to gradually appear. Unfortunately, my previous attempt at achieving this has been unsuccessful: #slink{ transit ...

Initiate a webpage reload

Currently, I am developing an android application specifically designed for tablet devices. This application will display a simple HTML page with text that will be shown for extended periods of time, sometimes up to several hours. The content on this page ...

JQuery Anchor Link Scrolling Problem on Specific Devices

I'm having an issue where my webpage does not scroll correctly to an anchor when a link is clicked. The problem arises from the header size changing based on the viewport width. While it works fine in desktop Chrome, in the mobile version the header h ...