Clear Foundation Table

Having trouble creating a transparent table using the Foundation framework. I was successful without the framework, but it's just not working with it. Any tips or suggestions would be greatly appreciated.

table {
    text-align: center;
}
table thead th{
    text-align: center;
}
tbody tr th{
    font-weight: normal;
}
th{ 
    background-color: rgba(251,169,17,0.5);
}
td{ 
    vertical-align: top;
    height: 10em;
    outline: 3px solid #e3e3e3;
    /*border: 1px solid rgba(251,169,17,.5);*/
    background-color: rgba(0,0,0,0);
}
td:hover{
    background-color: #CEE3F6;
}

Answer №1

When working with Foundation, the background color is initially set for the thead and tbody elements. If you need to change or override these default settings, you can use the following CSS code:


table thead,
table tbody {
  background: transparent;
}

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

The CSS method will not function properly on Safari when targeting the specific ID

that.displayIcon = that.scrollPosition / that.headerHeight $('#icon').css({'opacity':that.displayIcon}) that.rotateIcon = Math.min(1,that.scrollPosition/that.headerHeight) $('#icon').css({'transform':'rot ...

Center-aligned video text overlay that adapts to different screen sizes for a responsive design

I am looking to showcase a full-width video with overlay text that is perfectly centered both vertically and horizontally on the video. The centering should adapt to changes in viewport width so that it remains centered at all times. Additionally, I would ...

What causes the CSS width property to vary when using the display:inline property?

There is a piece of code that contains a <ul> element with the default css property display:block. Here is the code snippet: ul,li{ list-style-type:none; padding:0; /*display:inline;*/ } #parent{ width:100%; /*height:50px;*/ background-color ...

Currently utilizing Yii framework to customize the appearance of a DIV element by specifying the CSS properties within the View, and subsequently storing the CSS file

I am looking for a way to allow users to customize the properties of a parent div, such as color, background, and other CSS styles, directly from the WordPress theming dashboard interface. Can someone please guide me in the right direction? ...

Z-index in iframe: Lightning fast

Here's the issue: When I use Flash on a website and create a dialog box that should be above all other elements, I typically just adjust the z-index for the dialog box. However, in IE6 it's necessary to set a transparent wmode for the flash. The ...

What is the best way to create a function that will initiate the download of a particular file based on a specific key provided by the

I need assistance in creating a function for my text box and button setup. Can someone please guide me on how to achieve this? The user will be provided with a specific alphanumeric key from the website. They must input this key into the text box and then ...

Use HTML5 and CSS3 to align text in the center of the page below the header

I am currently in the process of transitioning from using old HTML tables for styling to utilizing HTML5 with CSS. However, I am encountering some difficulties: Check out my Codepen Demo The issue I am facing is that the text aligns itself to the edge of ...

Rotating an input 90 degrees within a div for unique positioning

I used JavaScript to make an input range vertical, like so: var range_pitch = document.createElement("input"); range_pitch.setAttribute("type", "range"); range_pitch.style.webkitTransform = "rotate(90deg)"; range_pitch.style.mozTransform = "rotate(90deg)" ...

Impact of Jquery on dropdown menus in forms

Currently, I have a script for validating form information that adds a CSS class of .error (which includes a red border) and applies a shake effect when the input value is less than 1 character. Now, I also need to implement this validation on various sel ...

What is the updated technique for creating a full-width HTML section in 2023?

In most web designs, the content is typically "contained" to be centered and limited by a maximum width: <!DOCTYPE html> <html> <body> <div id="container" style="width: 1000px; margin: 0 auto;"> ...

Excess content from the Bootstrap container is spilling over and

Encountered an issue while developing a page using bootstrap5 relating to the positioning of the footer and main content container. Everything was functioning correctly until the addition of the footer: Prior to adding the footer: https://i.sstati ...

Adding text on top of an image

I am having trouble with the master slider plugin as slide1, 2, and 3 each have unique classes. I attempted to overlay text on the image but it is not showing up. I tried using the following CSS code but nothing appeared on the screen. .classnameslide1: ...

Is there a way to create a shadow effect using css?

I am attempting to replicate the subtle shadow effect displayed in the image. https://i.sstatic.net/fa7iB.png https://i.sstatic.net/YgY0W.png Struggling with implementing this shadow effect using CSS. I experimented with box-shadow: box-shadow: 0 3px 6p ...

Creating a button with multiple background gradients using CSS

When working on a button element that already boasts a gradient effect, my aim was to integrate a small play image directly in the center. However, achieving this without compromising the current layout and ensuring compatibility across various browsers pr ...

Add a line break tag (<br>) specifically for devices with a width less than 768 pixels

I have a lengthy subtitle that includes the following: Self-discovery | Personal development | Health prevention This is how it appears in HTML: <h2>Self-discovery <span class="divider"> | </span> Personal development <span class="d ...

What is the best way to create a container filled with numerical figures?

If I have the number 445758, and I want each of these numbers to be displayed in their own box like this: https://i.sstatic.net/hBiA4.jpg Can you explain how to achieve this? ...

When Chrome DevTools are opened, some elements of a webpage undergo a transformation in their style

I've recently started working on a static webpage using VueJS/NuxtJS and Buefy as the UI library, although I am still learning about these technologies. One issue that I have encountered is that certain elements on the page change style when I open C ...

Adjust the width of content within a wrapper using HTML and CSS to automatically resize

I am facing an issue with a content div that has variable length content arranged horizontally. I want the width of this content div to adjust automatically based on the length of its content. Removing the arbitrary "20%" value from the width property is c ...

Two entities positioned on opposite extremes

Is there a way to design a div with two elements (text and image) positioned on opposite sides? The length of the text varies as it's a list of months for selection. Ideally, the text should appear on the left side of the div as a "p" element, while t ...

Tips for creating space between words within a <p> element and lining them up with text boxes in the following <div>

Here is the code I wrote for the form: <div class="container-fluid" id="unlabelled"> <p class="bg-primary">Items<span>Quantity</span><span>In Kit</span></p> <form> < ...