Is there anyone who can take a shot at creating this calendar widget using HTML/CSS? I'm struggling to code it myself

I have been assigned a task to create a calendar widget using HTML and CSS, but I'm struggling to figure out the structure with tables or divs. Here is my design for the calendar:

Here is how I've attempted to design it so far:

You can view the live demo of the site here: . Any help would be greatly appreciated.

Answer №1

To enhance the appearance of your calendar, consider removing the float:left and display:inline-block attributes from #archive-calender th { and #archive-calender td {. This will bring you closer to your desired design.

Next, adjust the border-collapse property to separate within #archive-calender {, and introduce some border-spacing:3px to create gaps between the cells.

Lastly, include a bit of padding:2px on #archive-calender td { for some space inside the cells to avoid any overcrowding.

I hope this helps!

edit don't forget about adding background color or image to the cells.

You can enhance the look by applying either background-color or background-image to #archive-calender td { for those stylish grey cells.

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

Can the CSS file be modified while a MVC site is running?

My MVC website has a black and white color scheme with specific design elements in blue color. I handle all the coloring through CSS. I would like to change the color of these elements from blue to a different color occasionally. However, when using jQuer ...

In search of the HTML code for the forward button when extracting content from a webpage

While using Power Automate Desktop to scrape a webpage, I encountered an issue with clicking the next button. Even after copying the HTML code within the developer tools of the webpage, I found that both the previous and next buttons had the same path, mak ...

Modify a different tag within CSS

I am attempting to reduce the space between the words: "frihedskamp og fremtidsforelskelse" When I remove the CSS tag in line 149, the spacing returns to normal. To address this, I tried adding the following override on line 266: HTML <div class="col ...

What is the method for invoking a function with arguments within an HTML `<p>` element?

I am looking to display like and dislike percentages on cards. <v-card v-if="software[2] == searched || searched == ''" class="software-card" > <h3>{{ software[2] }}</h3> ...

"Enhance Your Website Navigation with HTML5 and CSS - Creating a Wide

I've spent a full day trying to solve this issue, but unfortunately, I haven't been able to achieve any results. My goal is to create a menu with collapsible links that expand horizontally when hovering over the parent <li>. Essentially, it ...

Can a substring within a string be customized by changing its color or converting it into a different HTML tag when it is defined as a string property?

Let's discuss a scenario where we have a React component that takes a string as a prop: interface MyProps { myInput: string; } export function MyComponent({ myInput }: MyProps) { ... return ( <div> {myInput} </div> ...

Grouping and retrieving values from an array of JavaScript objects

I am looking to implement a groupBy function on the object array below based on the deptId. I want to then render this data on a web page using AngularJS as shown: Sample Object Array: var arr = [ {deptId: '12345', deptName: 'Marketin ...

Issues with Loading Bootstrap JavaScript on Basic "Hello World" Project

I am experiencing an issue where the JavaScript code is not displaying on my website. I have checked the inspect element sources and it seems to load correctly, but for some reason, it is not being applied. Any insights on why this might be happening? Than ...

How to Keep PHP Include Visible within the div using Bootstrap 4

I utilized PHP include to add the information inside the modals for the albums, but it is not hidden as specified in the div class where it is included. You can check out the music page on . However, here is the code snippet for the music page where I in ...

Inaccurate rendering of border widths on IOS platform

After setting the border width of these input boxes to 1px, it appears that on iOS devices, the top border seems larger than intended (regardless of the browser being used). Interestingly, on any other type of device, the border looks perfectly fine. & ...

The process of eliminating body padding in Nuxt.js

I'm considering building a website using Nuxt.js because I've heard it's both cool and user-friendly. While I do have some knowledge of vue.js, I'm stuck on a particular issue: How can I remove the padding from the body? I understand ...

Show different JSON data based on the existence of another key in Javascript

Having recently started learning JavaScript, I attempted the code below but couldn't quite get it to work. Despite consulting various resources, I still wasn't successful. Desired Output: To check if AUTO damage is present in the data. If so, re ...

Enhancing SEO for slideshow presentations

I've been thinking about the SEO implications of using a slideshow. For content that hasn't been displayed in the slideshow yet, I'm keeping it hidden in a div. While this content will still be indexed, search engines (especially Google) ma ...

What is the correct way to link an image path to my PHP script?

I am currently working on a project as a student where we created a MySQL database named Video_Game_Shop. Our task is to connect this database to a website using PHP and HTML, and display all the games listed in our database on one page. To achieve this, ...

How to execute a doPostBack function within a jQuery click event

My current situation involves a js function that triggers a click event on all 'a' elements... $(document).ready(function hideRanges() { $('a').click(function (event) { $('.ranges, #UpdatePanel').hide(); }); }); ...

What is the best way to eliminate the margin on the <v-textarea> component in Vuetify?

My textarea seems to have a top margin that I can't get rid of. Here is my code: <v-flex d-flex xs12> <v-textarea v-model="test" outline type="text" color="primary" v-valida ...

What is the best way to ensure that the button aligns with the height of the surrounding form elements in Bootstrap 5?

I've been attempting to adjust the button to match the same height as the other elements (either make it smaller to align with them or enlarge the other elements to match the button). Here is the code snippet I used: <link href="https://cdn.jsde ...

Center aligning text within an accordion button using Bootstrap 5 framework

I'm struggling to center align the text inside the accordion button while keeping the arrow on the right side Here is an example of what I'm trying to achieve: https://i.sstatic.net/2brrY.png In the Bootstrap 5 documentation, there's an e ...

Centering text on input placeholder

What is the best way to center a placeholder vertically in an input field? input[type='text']{ background-color: rgba(255,255,255,.4); border:3px solid rgba(0,0,0,.5); min-height: 45px; border-radius: 6px; color:#fff; } input[type=&apo ...

What is the best way to retrieve the ID of a <tr> or <td> element?

When working with JavaScript, I have created a dynamic table where each row is structured as follows: <td id="user[i]['id']">user[i]['name']</td> Within this structure, I am seeking to extract the value user[i]['id&ap ...