Improving the layout of the title page in R Markdown ioslides

I am looking to customize the appearance of the initial title page that appears when converting my Rmd file to html ioslides. The current header in my test Rmd file looks like this:

    ---
    title: This test
    subtitle: that test
    author: jake
    output: 
       ioslides_presentation:
       incremental: true
       css: myCss4.css
    ---

My goal is to center the title text (which defaults to the lower left corner) and make changes to the color and font size. While I was able to adjust the color and font size successfully, I have been unable to modify the position of the text...

Here is the custom CSS code I have attempted:

    slides > slide.title-slide hgroup h1 {
      font-weight: bold;
      font-size: 24pt;
      color:red;
      bottom: 50%;
    }

I've experimented with properties like bottom:50%, top=50%, and others with no luck... The location of the title text remains unchanged. What should I do differently in my code? Or is there a better alternative to using CSS for this customization?

Answer №1

Consider implementing the following:

sections > section.title-section hgroup h1 {
  font-weight: bold;
  font-size: 24pt;
  color: blue;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

Modifying JavaScript and links will not result in page navigation

My code includes a simple menu with Bootstrap. When clicking on the menu items, the page does not change. I have tried using links and JavaScript, but Chrome shows no errors related to JavaScript. Is there another method to change the page? Even using a li ...

How can I simulate mouse position in a UIWebView?

Can the mouse position (x,y) for HTML-5 elements on a UIWebView be programmatically set using stringByExecutingJavascript in order to trigger hover, mouse over, and other interactions? ...

Using lapply to categorize results in R

As someone who has recently transitioned to using R after utilizing SAS and Stata for so long, I primarily employ it for biostatistics. My current goal is to conduct a univariate linear regression on approximately 20 explanatory variables and then move th ...

Tips for making the text input smaller in a datepicker

https://i.sstatic.net/fuECu.png Is there a way to reduce the width of a datepicker while using Bootstrap? It's taking up too much space in my browser window. Below is the code snippet I am using for this functionality. <!---DatePicker ----> ...

Recursive instruction malfunctioning

I'm currently trying to develop a custom recursion directive, but unfortunately it's not functioning as expected. I have followed the instructions outlined here: Recursion in Angular directives For reference, you can view the fiddle here: http ...

Why is my Feed2JS RSS feed functional locally but not operational after deployment on GitHub Pages?

I've been using feedtojs.org to display my Medium blog posts on my GitHub Pages website. Strangely enough, it works perfectly fine on my local server but not on the actual domain. The RSS feed is valid. Here's how it appears on my local server: ...

Notifying the chosen option using jQuery

I have been attempting to display an alert on the webpage based on the selected option. Unfortunately, it appears that my code is not functioning properly. This is what I have tried: $(document).ready(function(){ $("select.country").change(functio ...

Exploring the power of natural cubic splines in regression analysis using

Having an issue with the splines::ns() function in R. I came up with a simple test scenario dat <- data.frame(t <- seq(0, 6, .01), x <- rnorm(length(t), sd = 1), y <- 5 + t - x^2 + rnorm(length(t), sd = .33 ...

When using NVDA, the close button is being read multiple times, whereas in JAWS it is being read correctly

Here is the code for a close button within a modal pop-up: <h2 class="sc-ejdXBC byjYiM MuiTypography-root MuiTypography-h6 sc-EoWXQ kOYWJk MuiDialogTitle-root" id="popupTitle"> Default Pop-UP Title <button class="sc-dm ...

Guide on incorporating Bootstrap JS into HTML5 reusable web elements

RESOLVED: the solution is in a comment TL;DR: Issues triggering Bootstrap's JS, likely due to incorrect import of JS scripts I've been working on integrating Bootstrap with my custom reusable web components across all pages. Specifically, I&apo ...

Angular Igx-calendar User Interface Component

I need assistance with implementing a form that includes a calendar for users to select specific dates. Below is the code snippet: Here is the HTML component file (about.component.html): <form [formGroup]="angForm" class="form-element"> <d ...

Merging factor categories without changing the original levels

Is there a way to combine outcomes for participant groups while also maintaining separate levels? For instance, when aggregating data across multiple columns, I usually use the following method: aggregate(list(x$variable1, x$variable 2, x$variable 3), by = ...

Sass encountered an issue when trying to import using the "~" symbol from the node_modules directory

I am currently developing a single-page web application using Angular 6, and I recently integrated the ngx-toast library into my project. However, I encountered an issue when trying to load the libraries by adding the following Sass code with the "~" symb ...

Unable to view Bootstrap modal, screen remains black

My attempt to resolve the issue with my edit subscription modal has hit a roadblock. It used to function properly, but now it refuses to show up. Strangely enough, I have another modal with an identical HTML structure that works perfectly fine. After inspe ...

Custom field data in WordPress

I'm having difficulty formatting the prices of certain products using a custom field (unit_price). The value is 3.2, but the code only displays 3 because it doesn't recognize commas or dots. Is there a way to display the full value? any assistanc ...

Struggling to eliminate the unseen padding or white space preventing the text from wrapping under the button

Just starting out with html and css and could use some assistance with a small issue I've come across. While redesigning a website, I have a three-button form (Donate, Find, Subscribe). I'm trying to get the paragraph underneath the Donate and Fi ...

How can I move Bootstrap 5 navbar list items to the right side?

I'm struggling to position the signup and login links on the right side of the page. I've tried using mr-auto, ml-auto, and justify-content-end but none of them seem to be working. <nav class="navbar navbar-expand-lg navbar-light"&g ...

The :not() CSS selector does not function properly during the initial loading of a webpage

This particular CSS code rotates an SVG upward pointing arrow by 180 degrees only when the header does not possess the .collapsed class: .IRE-content__header:not(.collapsed) svg { transform: rotate(180deg); } However, an issue arises when the page is ...

What specific quirk in Firefox is responsible for this behavior, and is there a way to replicate it in standards mode?

In Firefox, this particular document displays differently in standards mode compared to quirks mode. When in quirks mode, the div fills the entire screen, but in standards mode it does not. I went through the MDN quirks list and couldn't pinpoint a sp ...

Enhance JSON object with texture using three.js

I've successfully created a 3D model using Blender. After exporting it with the Three.js exporter and loading it in JavaScript, everything seems to be working fine except for one issue - the texture is not being displayed properly. I made sure to add ...