Creating a web responsive grid from scratch: Best practices

Currently, I am engaged in developing a timesheet/billing system for a client's project. One of the main tasks on my plate is to create an effective grid-layout that accurately displays data in its designated positions. We have not yet determined which server-side programming platform will be utilized for this system, so we are currently working with plain HTML. The client has requested our collaboration in finalizing the aesthetic appeal and layout of the HTML before moving forward with any implementation, as per the initial client requirements...

However, there seems to be a deviation from the main topic. Upon inspecting the first row of the grid, you may notice green 'Approve' and red 'Reject' buttons. Adjacent to the reject button, there appears to be a small portion of blue background color visible. It was brought to our attention that this is incorrect, prompting us to address this grid layout issue.

During my investigation, I observed that this issue relates more to responsive web design since it does not present itself on my monitor screen of 1440x900. In that view, everything appears perfectly aligned. However, when viewed at varying resolutions in terms of width and height, the blue background color becomes increasingly conspicuous. This led me to realize that this stems from the absence of designing a responsive web grid from the outset. Admittedly, prioritizing this aspect wasn't deemed crucial initially, given the uncertainty surrounding how the grid layout would evolve after creating the web designer's mockup from scratch. As we progressed through the project and established a foundation, we gained insights on how to ensure responsiveness within our grid layout.

It appears that I now need to tackle these issues sooner than anticipated. Consequently, I find myself under pressure to determine the best course of action to rectify this pending problem prior to presenting it to the client. I've heard about two approaches to grid-based responsive web design: DIY and framework-based. With no previous experience in responsive web design, I seek your recommendation on which approach would be most beneficial towards resolving layout issues on the page (and subsequently utilizing that groundwork across all other grids within the timesheet billing system).

Here's the code pertaining to the layout of the problematic row:

<div class="table_row 1">
    <div class="table_column" style="width: 110px;">
        Steven Kugel
    </div>
    <div class="table_column" style="width: 110px;">
            Mrs Smith
    </div>
    <div class="table_column" style="width: 60px;">
        03.07.2014
    </div>
    <div class="table_column" style="width: 110px;text-align:center;">
        3.5
    </div>
    <div class="table_column" style="width: 120px;text-align:center;">
        80%
    </div>
    <div class="table_column" style="width: 130px;text-align:center;">
        4
    </div>
    <div class="table_column" style="width: 76px;text-align:center;">
        7.5
    </div>
    <div class="table_column" style="width: 45px;">
        1,575
    </div>
    <div class="table_column" style="width: 126px;background-color: #fff;display:inline-flex;">
    &nbsp;
    <div style="float:left;margin-right: 5px;">
        <input type="button" value="Approve" name="APPROVE" style="background-color: #6EBA66;width: 58px; height: 0px; margin-right: 4px; padding-top: 1px;padding-bottom: 18px;font-size:13px;"></div>
            <div style="float:left;">
    <input type="button" value="Reject" name="REJECT" style="background-color: #D70D1E;width: 58px; height: 0px; margin-right: 4px; padding-top: 1px;padding-bottom: 18px;font-size:13px;"></div>
    </div>
</div>

Please feel free to offer constructive criticism so I can enhance my responsive web design skills further.

Answer №1

For a responsive design, consider utilizing bootstrap or metroui as they are standard versions. You can explore the grid system by visiting this link:

http://getbootstrap.com/css/#grid

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

Tips on automatically clearing caches when refreshing a webpage

I am working on a php + jquery website project. Every time I navigate to a page using jquery ajax, I have to manually clear the cache using ctrl + F5. Otherwise, the buttons on the page become unresponsive. I have tried forcing a page refresh with "windo ...

Is there a way to prevent text from being automatically linked after using an <a> tag?

Whenever I attempt to input text into the div tag below, it mysteriously appears hyperlinked, even though there is no "a" tag enclosing it. HTML: <html> <head> <link href = "https://fonts.googleleapis.com/css?family=Work+Sans:3 ...

Having trouble with refreshing the div content when using jQuery's $.ajax() function

My goal is to refresh a div that has the id #todos after saving data in the database. I attempted to use .load() within $.ajax() $('.todo--checkbox').change(function () { let value = $(this).data('value'); $.ajax({ url: ...

What could be the reason for bootstrap failing to recognize and apply my variables?

Whenever I set the text color to green using this code: @textColor: green; It works perfectly and changes the text color, but when I try to modify grid column width and gutter width with this code: @gridColumnWidth: 10px; @gridGutterWidth: 0px; @flu ...

Center the panel on the page and decrease its width using Bootstrap

I recently incorporated a Bootstrap panel above a search results table - my first experience working with Panels. This panel contains a form with a select menu, allowing users to filter the list of search results based on their selections. Currently, the ...

Error: The EJS compiler encountered a SyntaxError due to an unexpected token || in the show component file located at /var/www/html

I'm currently working on a project inspired by Colt Steele's YelpCamp creation during his Udemy Web Dev Bootcamp. Everything was going smoothly until I tried to refactor some code towards the end of the course using YouTube tutorials. Now, whenev ...

Ways to show a div element within an input field?

I want to incorporate tags similar to stackoverflow on my website. Users will be able to create tags for filtering results, searching, showcasing expertise, and more. I have managed to create tags, but I am struggling to display them inside an input box l ...

Is it possible to make the li elements within my ul list display on multiple lines to be more responsive?

My credit card icons are contained within a ul. I have used the properties background-image and display:inline for the LIs, which display nicely on larger screens. Unfortunately, when viewed on mobile devices, the icons are cut off. My question is whether ...

What could be the reason behind these links not affecting the height of my div element?

I am having trouble with the links not changing the height of the "holder" element. I can't seem to figure out what is going wrong. HTML: <div id="holder"> <a class="button" href="#"><span>home</span></a> <a class="b ...

Enhance Your Images: Creating Stunning Colored Overlay Effects using HTML and CSS

I'm currently working on implementing an overlay effect for images on a webpage. The idea is that when the cursor hovers over an image, it will change color slightly. However, I'm facing some issues and the desired effect is not reflecting. How c ...

What is the best way to integrate inline radio controls in React-Bootstrap?

Currently, I am working on my personal project using Electron, React-Bootstrap, and Typescript. However, I am facing an issue with placing two radio controls next to each other. Despite following the examples from React-Bootstrap, I have not been success ...

When I include scroll-snap-type: y; in the body tag, the scroll-snapping feature does not function properly

Hey there! I've been trying to implement scroll-snapping on my project but unfortunately, I couldn't get it to work. I tested it out on both Chrome and Firefox, but no luck so far. Here's the code snippet I've been working with, would a ...

Font-face renders properly on most browsers except for Firefox

For a while now, my project has been using font-face without any issues. However, I recently discovered that the font face is not working on Firefox versions 14 and 15, and probably also not on version 12 and above as discussed in this thread: http://css-t ...

Is there a way to adjust the SVG level so that it aligns with the center of the polygon instead

Looking to align a simple svg icon for a dropdown button with the text in the button so that the centers match up. Currently, the icon is aligned with the bottom of the text instead. Here's the code for the svg: <svg xmlns='http://www.w3.org ...

I'm encountering an issue: Uncaught ReferenceError

I am currently working on a to-do list project in javascript, but I keep encountering an error message that says: Uncaught ReferenceError: itemsjson is not defined. After setting my get.item to null, I proceeded to add .push to the code. Can someone pleas ...

Is there a way to designate whether the <ul> element is displayed horizontally or vertically?

For example: <ul> <li>a</li> <li>b</li> </ul> The default output is: ab But I am looking for: a b Is there a way to achieve this? ...

Obtain a list from a Python code within an HTML page that has been web scraped

As a beginner in web scraping, I encountered a minor obstacle while working with the code below: import requests from bs4 import BeautifulSoup url = "www.website.com" page = requests.get(url) soup = BeautifulSoup(page.content, "html.parser") price_scripts ...

Display the information in the second dropdown menu once the selection has been made in the first dropdown menu

I've successfully implemented a feature where selecting an option from the first drop-down list populates the second drop-down list accordingly. The HTML code snippet is as follows: <select size="1" id="BodyPart" title="" name="BodyPart"> ...

Can you have two navigation bars and a picture all in one Bootstrap layout?

I have a requirement to use a single image on two different Bootstrap navbars. However, the issue is that the image appears split between the two navbars.https://i.stack.imgur.com/jUnIL.png My goal is to display the full image without it being divided bet ...

When the browser window is minimized, the top section of the website becomes concealed

For the past few weeks, I have been working on creating a new website. The progress is looking good overall, but there is one issue that I have encountered. When viewing my website in a browser window smaller than the actual webpage size, the top menubar ...