Different varieties of responsive calendars with built-in memos for various device displays

I developed a responsive calendar with memos for each day. Everything seems to be working fine, but only on two different screen resolutions. When viewing it on my small monitor with the resolution of 1024x768, it displays like this:

https://i.sstatic.net/18HPA.png

However, when I adjust the screen size to that of a smartphone, it looks like this:

https://i.sstatic.net/DxLP1.png

But, when I try to set a different resolution, everything gets messed up and looks like this:

https://i.sstatic.net/V2vz5.png

I have created a fiddle for you to test how it works:

https://jsfiddle.net/skyr9999/fgmyy0xh/

Here's the HTML code:

<div class="result">
    (calendar content here)
</div>

and the CSS code:

(CSS styling here)

How can I fix these issues? I want the calendar to display in two columns on medium-sized screens, similar to one of the following layouts:

Sun     Mon
Tue     Wed
Thu     Fri
    Sat

or

Sun     Mon     Tue
Wed     Thu     Fri
        Sat

Update 1

I also noticed double borders between cells. How can I remove them? I tried using border-collapse: collapse; but it didn't work.

Answer №1

I always manage to find solutions to my problems. Check out the updated fiddle here - https://jsfiddle.net/skyr9999/q78qeuh6/

Here is the HTML code:

<div class="result">
<!-- Code snippet for Sunday to Saturday with some dummy data -->
</div>

and the corresponding CSS code:

.result{
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 3em 0;
    padding: 0;
    border-collapse: collapse;
}

/* Additional CSS rules for responsive design and styling */

/* Media queries for various screen widths */
@media all and (max-width: 370px) {
    /* Rules for smaller screen sizes */
}

@media all and (min-width: 370px) and (max-width:539px) {
    /* Rules for medium-sized screens */
}

@media all and (min-width: 540px) and (max-width: 720px) {
    /* More specific rules for larger screens */
}

...

/* General styles for cells and headers */
.flexcell
{
    /* Styling for each cell */
}

.flexmemo_descr
{
    /* Description styles */
}

.flexmemo
{
    /* Memo styling */
}

.emptyflex {
    /* Empty cell style */
}

The design is optimized for different screen resolutions, ensuring proper display across a range of devices. The mobile view includes special styles for full description visibility.

To address issues like double frames in cells, negative margins are used strategically. The layout is tested for responsiveness using FireFox Adaptive Design Mode.

You can preview how the page looks in mobile mode here.

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

Try incorporating the <code> tags or a similar method in ReactJS when using JSX

I've been experimenting with ReactJS and JSX to develop a prototype for a styleguide. One issue I encountered is that JSX seems to be ignoring my <code> tags, instead of displaying the raw HTML code needed to call components. Here's what ...

I'm attempting to integrate the map function into my React Redux application, but after implementing useDispatch, I'm encountering an error message in the console

I am currently troubleshooting an app I'm working on, but I keep encountering errors in the console. Included below is a picture of the error as well as the code snippet triggering the issue. Can anyone provide insight into what might be causing this ...

jQuery AJAX Concurrent Event

I have encountered a problem similar to ones discussed on SO, but none exactly match my specific issue. Here's the situation: var x = 5; if( some condition ){ $.ajax({ url:"...", success: function(response){ x = respo ...

The elements within the HTML, CSS, and Bootstrap are all clashing and

Website Output https://i.sstatic.net/5JVyg.jpg I've been working on a small website with a bootstrap carousel, and in this specific section of the program, the Bootstrap and HTML/CSS elements overlap by default. I'm not sure how to separate the ...

What is the most effective way to alphabetically organize a Javascript array?

Is there a more professional way to sort people alphabetically by last name in an array? Here is the array I'm working with: const people = [ 'Bernhard, Sandra', 'Bethea, Erin', 'Becker, Carl', 'Bentsen, Lloyd' ...

Issue with Retrieving the Correct Element ID in a Loop with JavaScript Function

I'm in the process of developing a dynamic wages table with HTML and JavaScript to compute each employee's wage based on input from each row. In order to achieve this, I've utilized a loop to assign a unique ID to the total cell in every ro ...

Utilizing Angular JS to Manage Controller Events

I am currently working on an application that requires saving a large amount of data in cascade, similar to a typical master-detail view. Within this view, there is a "Save All" Button which saves each row in an iteration. This process triggers jQuery cus ...

The functionality of Angular 2 md-radio buttons in reactive forms seems to be hindering the display of md-inputs

Currently, I am following the instructions for implementing reactive form radio buttons on a project using Angular 2.1.2 and Google's MD-alpha.10 Atom-typescript shows no errors in my code. However, when testing the application, I encountered the foll ...

The use of "Undefined in res.redirect" is a common issue that may arise when working with a combination of libraries such as

Encountering an issue while trying to redirect the user to a signature route with the file name as a URL argument, and receiving undefined... Example of a file as a URL argument after upload: http://localhost:3000/undefined?arquivo-assinado=82a35943-5796 ...

Utilizing CSS pseudo-elements in selectors with Scrapy

Is it possible to use the CSS text-transform property directly within Scrapy selectors? Ex: .css("::text-transform: capitalize").extract() The current method returns capitalized data, but can we apply CSS properties like text-transform to modify ...

Is there a way to control the visibility of two divs depending on which one a user hovers on?

Having two stacked div elements containing images, I want the div with id = "features3_HDS_image" to become visible when a user hovers over the div with id = "HDS_Blurb", and the div with id = "features3_FH_image" to be displayed when hovering over the div ...

Displaying a DIV inside an embedded DIV when selecting an option in HTML by utilizing JavaScript

My goal is to create a page where users initiate a questionnaire by clicking START in a web form - this action will open the DIV for the first question. As users answer each question (with yes/no choices), it will either display a specific DIV related to ...

Checking the alignment of a label or element in the center of a webpage using javascript

I am new to JavaScript and was attempting to determine if an element is centered aligned by accessing its CSS properties/values. Can someone help me retrieve the CSS property to verify text alignment using JavaScript? ...

Achieving equal height for the englobing/parent div and the inner divs

To achieve a standard left, middle, and right column layout, it is necessary for me to enclose various inner divs of different heights within a surrounding/parent div. It is crucial that the parent div adjusts its height to match the tallest inner div, whi ...

JavaScript String Splitting with Regular Expressions

It's like the solution is right in front of me, but I just can't seem to see it. var expr = "-5+6.3x24"; console.log(expr.split(/([+\-x\/])/)); The expected output should be: ["-5", "+", "6.3", "x", "24"] I want to split the string ...

Need jQuery solution for changing CSS in numerous locations upon hover

Currently, I am working on a WordPress website and I am trying to figure out how to change the CSS color of a side navigation element when a remote image is hovered over. In a typical scenario, I would accomplish this using CSS by assigning a hover class ...

Failed to build development environment: Unable to assign the attribute 'fileSystem' to a null value

I'm attempting to launch an Ionic 2 Application, but I keep encountering this error when running ionic serve Error - build dev failed: Unable to assign a value to the 'fileSystem' property of object null Here is the complete log: λ ion ...

In the Android Chrome browser, the settings of the meta viewport attribute do not take effect when the device is in full screen mode

While using the fullscreen api in Android, I noticed that the values of meta viewport attributes like initial-scale and user-scalable are not reflected in the browser when in full screen mode. However, when not in full screen mode, these values work as exp ...

Sophisticated CSS design featuring a heart-shaped cutout from the background

I am trying to design a shape using only CSS (no images) that is the opposite of a heart shape. It's a bit hard to explain, so here is a visual representation: The blue represents the background, but the shape I am aiming for is not a heart, it is ac ...

Steering clear of repeating evaluations and dynamically unloading objects requested with `require` is important

I'm currently delving into the intricacies of the nodejs module system. Among the resources I've come across so far are: https://nodejs.org/api/modules.html These readings have shed light on a few aspects, but I still have some lingering ques ...