Pictures are overflowing from the table

I'm facing a challenge with my homework assignment... I am relatively inexperienced with HTML/CSS and can't seem to figure out why my images are overflowing from the table cells regardless of their sizes...

Table snippet:

<div class="section1 center">
 <p class="section1Text">
  Pamela Holland is a University of Melbourne trained Clinical 
   Psychologist practicing in Melbourne's far southeastern suburbs and West 
   Gippsland who specializes in the delivery of scientifically supported 
   cognitive-behavioral therapies (CBT) to adults and older adolescents 
   experiencing emotional difficulties.
 </p>

 <table style="position:absolute;z-index:6;color:white;font- 
  size:13px;top:145px;left:160px;">

    <tr>
        <td><img src="images/bullets.png" width="15px"></td>
        <td>8 years of experience</td>
        <td><img src="images/bullets.png" width="15px"></td>
        <td>Full confidentiality</td>
    </tr>

    <tr>
        <td><img src="images/bullets.png" width="15px"></td>
        <td>Modern and effective methods of psychotherapy</td>
        <td><img src="images/bullets.png" width="15px"></td>
        <td>My office is located in city center</td>
    </tr>
</table>

<img src="images/owner.png" width="700px">

<div class="dividerTransparency center">
    <p>gsasga</p>
</div>
</div>

Here is a glimpse of my CSS:

.section1 {
width:50%;
background-color:#aba89d;
position:relative;
}

.section1Text{
z-index:5;
position:absolute;
text-align:center;
width:60%;
font-size:13px;
color:white;
top:70px;
left:210px;
 }

.dividerTransparency {
width:100%;
height:42px;
background-color:rgba(103,101,96,.5);
position:relative;
z-index:3;

}

.section1 img {
margin-left:50px;
position:relative;
bottom:-45px;
z-index:2;
}

I hope this format works for sharing my code. I am still learning and appreciate your patience...

Answer №1

To apply the CSS, include the code below.

table tr td img{
    position: relative;}

This solution has been effective in my experience.

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

Confusing Accessibility Rules: A Guide that Leaves Me Scratching My Head

I've been reviewing a set of rules to make sure we're in compliance with the Americans with Disabilities Act. One guideline has me scratching my head: Use the title attribute when text is not accessible I'm confused - how can text be ina ...

Article discussing the Facebook like button

I've recently incorporated Facebook like buttons into the articles on my online store. It's great because when someone shares a post about a product or article, it shows up on their wall. Users receive notifications on Facebook when someone else ...

Why is the current Menu Item highlight feature not functioning properly?

Why isn't the highlight current Menu Item feature working? I've checked my code, but it doesn't seem to be functioning as expected. Could you lend me a hand? Html: <section id="menu-container"> <div id="bar"><img src="b ...

Having difficulty sending emails with attachments using AngularJS

While using Angular, I encountered an issue when sending an email with an attachment. The response I received contained the data code of the file instead of its actual format. See example: https://i.stack.imgur.com/vk7X8.png I am unsure what is causing t ...

The JSX function seems to be malfunctioning, as the function part is not displaying on the webpage as intended

This code snippet is a part of a React component in a project. I have imported a CSS file for styling and have already integrated Material UI. However, the function for the new article is not displaying on the webpage as expected. import "./Widgets. ...

I encountered a SyntaxError indicating a missing ")" right before utilizing jQuery in my code

When trying to run the code below, I encountered an error in the console stating SyntaxError: missing ) after argument list. $(document).ready(function() { $(".blog-sidebar-form form").before("<p class="blog-sidebar-inform>Dummy Text</ ...

Extracting data from websites: How to gather information from dynamic HTML elements

On the website I am exploring, there is a dynamic graph with descriptions below it that keep changing. My goal is to extract all these trajectory descriptions. The HTML code snippet related to the description area looks like this: <div class="trajDesc ...

Apply the child's style if the parent's sibling contains the specified class

I am struggling to add the class "bold" to a child element (span) of a parent element (button.usa-nav-link). This parent element has a sibling (ul li.active) with the class .active. When the sibling is active, I want the child element's text to be bol ...

Is there a way to properly direct to an internal page while utilizing [routerLink] and setting target="_blank" without triggering a full page reload?

I'm attempting to use [routerLink] along with target="_blank" to direct to an internal page without triggering a full app reload. Currently, the page opens in a new tab, but the whole application is refreshed. Here is the HTML: <a [routerLink]=" ...

CSS: Concealing a separate div

I am working with a parent div in my code that has 2 child divs. I am hoping to find a way to hide the second child when hovering over the first child, using only CSS or JavaScript. Take a look at my Fiddle here <div class="parrent"> <div id ...

Choosing the most suitable stylesheet in Angular 8 when multiple CSS files are present

In my project, I have several CSS stylesheets for angular components. I am curious if there is a method to designate a preferred stylesheet when multiple sheets loaded by a component contain the same styles but with different values. ...

Adjust background color as you scroll

Is there a way for me to smoothly change the background color to a solid color as I scroll? I want the transition to happen seamlessly. Check out this link for an example <div class="sticky-nav"> </div> .sticky-nav{ position: fixed; widt ...

Using Python and Selenium to Scroll Down the Page (with Two Separate Scrollbars)

I need help scrolling down the conversation section on Facebook Messenger. There are 2 scroll bars on the page, and I specifically want to scroll down scroll bar number 1 (see image) Click this link to access the page (make sure you are logged in and hav ...

Execute JavaScript code following the completion of loading and running an external script

My goal is to dynamically load and run a third-party JavaScript file (from a different domain) and then execute some of my own code afterwards. One option I'm considering is using jQuery's $.getScript: $.getScript('https://login.persona.org ...

Is it possible to make a div jump or bounce if it has a flex display?

I'm looking to add some interactive animation to an image inside a div when my mouse hovers over it. To better explain the issue I'm facing, I created a quick representation of what I want to achieve in the code below. My goal is to have the te ...

"Shuffle the Order of Divs Each Time the Page Loads

I have multiple divs labeled as "gallerycard". I want them to appear in a different random order each time the page is loaded. <div id="gallerycard"> <div id="name">Akulina</div> <div id="info">N/A</div> </div> ...

Naming conventions for initial layout DIVs: Best approaches

As a beginner in the realm of website design, I find myself at the early stages of constructing an HTML/CSS site based on a sketch I've created. In planning out the DIVs for the homepage, I am faced with questions about how to label them and determine ...

Using jQuery to smoothly animate scrolling to the top of a

How can I create a "scroll to top" button at the bottom of my page that smoothly scrolls to the top? Despite using an "animate({scrollTop})" script, the scroll animation is not working and it jumps directly to the top. This is the script I am using: $(&a ...

It may display a user, but it reveals all users on the table to me, and I am specifically seeking one with $_session

I am looking to display specific user information using a $_session variable. Currently, I have it working with a table format but I want to avoid using a table and instead use a CSS div. However, when I tested this, I encountered an error message saying " ...

Tips for eliminating the flash of color upon website loading

Every time I visit my site at , there's a brief moment of grey before the site fully loads. Despite being a simple landing page, it seems to be taking longer than expected to load. I suspect this issue is caused by the combination of linear gradients ...