Hexagonal design table pillars

Can the top columns of a table be styled with column names in this manner? https://i.sstatic.net/rUbyA.png

This is the code snippet I am using:

<table class="" style="background: rgba(255,255,255,0.5); font-size:15px;  border-collapse:separate;
                             border:solid yellow 3px;
                             border-radius:6px;
                             -moz-border-radius:6px;">
  <thead>
    <tr>
      @if ($service->id == 13)
      <th scope="col">PROJECT</th>
      <th scope="col">Execution PERIOD</th>
      <th scope="col">GLA(SQM)</th>
      <th scope="col">Project Value</th>
      <th scope="col">Project Functions</th>
      @endif
    </tr>
  </thead>
  @foreach ($data as $dataItem)
  <tbody>
    @if ($dataItem->service_id == $service->id)
    <tr>
      <th scope="row">{{ $dataItem->project }}</th>
      <td>{{ $dataItem->execution_period }}</td>
      <td>{{ $dataItem->SQM }}</td>
      @if ($dataItem->project == 'Total')
      <td style="font-weight:bold; color:green;">{{ $dataItem->project_value }}</td>
      <td style="font-weight:bold; color:green;">{{ $dataItem->project_function }}</td>
      @else
      <td>{{ $dataItem->project_value }}</td>
      <td>{{ $dataItem->project_function }}</td>
      @endif
    </tr>
    @endif
  </tbody>
  @endforeach
</table>

Is it achievable to implement what I have in mind or will it be complex? I'm unsure about how to approach this in CSS as I'm not very experienced with front-end development.

Answer №1

My attempt at using a more meaningful structure.

To achieve proper spacing for the menu items, you can utilize the display: flex property along with the gap attribute.

If you wish to modify the bevel effect, simply adjust the value assigned to the --bevel variable.

ul {
   list-style:none;
   display: flex;
   gap: 2px;
}

li {
   --bevel: 14px;
   padding: .75rem 1.5rem;
   color: gold;
   background: rgba(0, 0, 0, .8);
   clip-path: polygon(
        0 var(--bevel), 
        var(--bevel) 0, 
        calc(100% - var(--bevel)) 0, 
        100% var(--bevel), 
        100% 100%, 
        0 100%
   );
}
<nav>
   <ul>
      <li>lorem</li>
      <li>lorem ipsum</li>
      <li>consectetur dolor</li>
      <li>amet</li>
   </ul>
</nav>

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

How can I launch an application using an .html file on a Linux operating system?

I'm currently involved in an image processing project and have limited knowledge of HTML. Here's how I envision it working. In my C++ application, I have the capability to read an image, process it, and then save the processed image to a file. T ...

Identify text truncation using JavaScript

I have a container with CSS that truncates text to show ellipsis when it reaches a certain width. Despite the truncation, the full text remains unchanged inside. To test this feature, I'd like to be able to access the truncated text with JavaScript. I ...

Does anyone know of a CSS/JavaScript framework that can be used to replicate the look and functionality of the iOS home

I'm wondering if there is a CSS/JavaScript framework that replicates the layout of an iOS home screen. I want to create a kiosk website with a grid layout similar to Android/iOS where apps can be displayed as icons. ...

Tips for utilizing both noConflict and $ on one page

Can I use both noConflict and $ on the same page? <p>This is a paragraph.</p> <h1>hello</h1> <input type="button" id="=mybtn2" value="jq" onclick="myfun2();" /> <input type="button" id="mybtn" value="$" onclick="myfun(); ...

Modify the border color of a div contained within another div

I recently incorporated a Vue component (available at ): <vue-editor id="description" name="description" :class="{'uk-form-danger': errors.has('description') }" v-model="description" :editorToolbar="customToolbar" v-validate="' ...

generate a different identifier for ajax requests avoiding the use of JSON

The AJAX request functions in the following way: success: function(data) { $('#totalvotes1').text(data); } However, I need it to work with unique IDs as follows: success: function(data) { $('#total_' + $(this).attr("id")). t ...

Modify the hue of the div as soon as a button on a separate webpage is

Looking for assistance with a page called "diagnosticoST" that contains four buttons (btn-institucional, btn-economico, btn-social, btn-natural). These buttons have different background colors until the survey inside them is completed. Once the user comple ...

Omitting "a" elements with a designated ancestor from a jQuery scroll operation

I successfully added smooth scrolling to my webpage using the provided script. However, I also have a section with tabs where I do not want the smooth scrolling effect. Here is my jQuery code: $('a[href*="#"]') // Remove links that don&apos ...

Verify in Selenium2 with Java if the value displayed on the page exceeds a specified threshold X

On my web page, I have a tag that will display a value provided by Python. This value is an integer retrieved from an AWS Athena query, and it will be set to 0 if the query fails. I am looking to verify that this value is greater than 0. The corresponding ...

Issue encountered when attempting to print a Bootstrap table using Google Chrome

Encountering a strange issue while attempting to print my webpage in Chrome. Using Bootstrap, I have a table that adjusts perfectly to the screen size but gets cropped when trying to print in Chrome, unlike Firefox where it prints perfectly. Here is a lin ...

Steer clear of using inline styling when designing with Mui V5

I firmly believe that separating styling from code enhances the clarity and cleanliness of the code. Personally, I have always viewed using inline styling (style={{}}) as a bad practice. In Mui V4, it was simple - I would create a styles file and import i ...

Creating a dynamic slideshow using Jquery Ajax requests

I am looking for help with creating a slideshow using Ajax calls. I have successfully implemented it by adjusting the margin left, but now I need to approach it differently. I have a PHP array that I fetched from a database and I want to use it to display ...

Positioning of the header that adapts and adjusts based

I created a header layout using bootstrap 4.5 https://i.sstatic.net/RhWrs.png <nav class="navbar navbar-expand-sm navbar-light"> <!-- Brand --> <a class="navbar-brand" href="#"> <img src="logo.pn ...

Tips for changing the size and color of SVG images in a NextJS application

Looking to customize the color and size of an svg image named "headset.svg". Prior to this, I used next/image: <Image src={'/headset.svg'} alt='logo' width={30} height={30} className='object-contain' /> The s ...

javascript - Retrieving a JSON string

I am currently working on a stock website where I need to retrieve JSON information from either Google's API or Yahoo's API. To test this functionality, I have used a replacement function to log the data onto a text box for testing purposes. Howe ...

Issue with importing a file using JQuery causing the click event to not function properly

I have a file named navigation.html located in a directory called IMPORTS <!-- Navigation --> <div class="navbar-inner"> <div class="container"> <button type="button" class="btn btn-navbar" data-toggle="collapse" data-ta ...

Changing the background color of an answer box in React when the user clicks on it

I am currently developing a Quiz application that includes a question and four answer options. The goal is to modify the background color of the selected option when a user clicks on it. Essentially, when a user clicks on an answer, it should change color, ...

Guide to Retrieving the Value of the Radio Button in Django

Welcome to my quiz app development journey! Here is a snippet from my HTML file: {% for question in questions %} <p>Q){{question.name}}</p> <input type="radio" value="1" name="{{question.id}}">{{question.o ...

Utilize VBA in Excel to interact with a jQuery button on a web page

Can anyone provide assistance with my VBA Excel code issue? Set ieDoc = Nothing Set ieDoc = ieApp.Document For Each Anchor In ieDoc.getElementsByTagName("div") If InStr(Anchor.outerHTML, "CategoryIDName-popup") > 0 Then ...

"Unable to get the overflow-x: auto property to function properly

Below is the CSS and HTML code that I am working with: #container { display: table; margin: 0 auto; } .table-container { width: 100%; overflow-x: auto; _overflow: auto; } <div id='container'> <div class='table-contain ...