How can I use HTML code to style the header cell values of a table?

Can someone please assist me with creating a table header style that looks like the one in the image? Additionally, how can I turn the name and picture area into a block and add borders to them?

I'm also having trouble with my list icons showing up as Chinese characters instead of the sideways triangles I copied the code for. The phone/email codes aren't working either so I had to use images. Here's the HTML code:

body {
  font-family: Arial;
  font-size: 12px;
  width: 800px;
}

table {
  border: 1px solid black;
  border-collapse: collapse;
}

th {
  text-align: left;
  background-color: lightblue;
  border: none;
  padding: 3px;
}

td {
  border: none;
  padding: 10px
}

ul {
  list-style: none;
  padding: 0px;
}

ul li:before {
  content: '\9654';
  margin: 0 1em;
}
<table style="float:right; width: 300px;">
  <tr>
    <th colspan="2">Contact</th>
  </tr>
  <tr>
    <td style="padding: 3px"><img src="phone.jpg" alt="HTML5 Icon" style="float: left;">: 747-357-2004</td>
    <td style="padding: 3px">54th Street,</br>17th Floor,</td>
  </tr>
  <tr>
    <td style="padding: 3px"><img src="phone.jpg" alt="HTML5 Icon" style="float: left;">: 327-127-8390</td>
    <td style="padding: 3px">New York,</br>United States.</td>
  </tr>
  <tr>
    <td style="padding: 3px"><img src="email.jpg" alt="HTML5 Icon" style="float: left;">: <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="99ebf8faf1fcf5fef8ebf7fcebd9fef4f8f0f5b7faf6f4">[email protected]</a></td>
    <td style="padding: 3px">NY 10022</td>
  </tr>
</table>
</br>
</br>
<p><img src="rachel_garner.jpg" alt="HTML5 Icon" style="float: left;">
  <span style="font-size: 25px"><b>RACHEL GARNER</b></span>
  <br><span style="color: orange">MARKETING MANAGER</span><br>
  <br>
  <br>
  <br><span style="color: blue">www.google.com</span></p>

<table width="100%">
  <tr>
    <th colspan="2">Profile</th>
  </tr>
  <tr>
    <td><b>Personal Statement:</b></td>
    <td>Experienced in administrative duties; scheduled meetings, handled travel arrangements and purchasing. Computer skills include Microsoft Excel, Access, Word, and PowerPoint. Excellent problem solving and communication skills. Accustomed to long work
      hours. Winner: Employee of the Month 1999 for October and December.</td>
  </tr>
  <tr>
    <td><b>Career Objective:</b></td>
    <td>To obtain an executive sales/marketing management position within a growth oriented, progressive company. I want to apply my business development/sales skills to an environment where they will make a significant impact on the bottom line. The idea
      atmosphere would be entrepreneurial and one in which new ideas are welcome and decision making is required.</td>
</table>
<br>
<table width="100%">
  <tr>
    <th>Key Skills</th>
  </tr>
  <tr>
    <td>This is a main summary of my skills.</td>
  </tr>
  <tr>
    <td>
      <ul>
        <li>Negotiating (Intermediate)</li>
        <li>Access (Beginner)</li>
        <li>Accounting (Beginner)</li>
        <li>Sales Auditing (Expert)</li>
        <li>Invoicing (Intermediate)</li>
      </ul>
    </td>
  </tr>
</table>
<br>
<table width="100%">
  <tr>
    <th>Education</th>
  </tr>
  <tr>
    <td><b>Bachelor's Degree</b> - <i>Marketing</i> <span style="float: right;"><b>2002 - 2006</b></span></td>
  </tr>
  <tr>
    <td><b>The University of Mississippi</b>, MS</td>
  </tr>
  <tr>
    <td>Bachelor of Business Administration May 2001 Major: Marketing, Minor: International Business Overall GPA: 3.0, Major GPA: 3.3</td>
  </tr>
</table>
<br>
<table width="100%">
  <tr>
    <th>Work Experience</th>
  </tr>
  <tr>
    <td><b>University Hallmark Oxford, MS <span style="float:right;"><i>Full Time</i></span></b></td>
  </tr>
  <tr>
    <td><b>Sales Clerk</b><i> (Invoicing, Administration)</i> <span style="float:right;"><b>Oct 2001 to Present</b></span></td>
  </tr>
  <tr>
    <td>Full time roll overseeing the operation of the sales and marketing department.</td>
  </tr>
  <tr>
    <td>
      <ul>
        <li>Successfully perform managerial duties during manager's absence</li>
        <li>Train new employees and conduct company and product orientations</li>
      </ul>
    </td>
  </tr>
</table>

Answer №1

It is challenging to address the initial query without a visual reference of how the headers should appear.

However, the discussion shifts when it comes to icons. It seems that you are implementing HTML code for icons within the arrow pseudo element, resulting in a different character displayed. To achieve the desired outcome, make sure to utilize Unicode values instead. Refer to sources like Wikipedia for more information.

If you need a right arrow symbol, consider using this code:

content: '\25b6'

Remember, the way browsers render these characters may vary.

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

Limiting uploaded files in HTML5

<input type="file" accept=".csv" /> This code snippet enables users to upload .txt files or any other type of file as well. What is the method to limit the types of files allowed in HTML5? ...

Fade in and out HTML divs using jQuery with customizable timing intervals

I'm attempting to alter an existing solution here by incorporating a total of 7 divs that have fading in and out effects, all within the same space on the page. The sequence should loop back to the initial div after reaching the end. In addition, I r ...

Tips for showcasing five inputs in a single row on a webpage using a customized width in Bootstrap

I am struggling to align 5 inputs in a single row on a page with custom widths. For example, I want the amount input to be smaller than the offer input. I attempted to use columns and apply different classes for size, but the submit button ended up not bei ...

Applying style changes to the height on scroll event in Javascript for Chrome, Firefox, and Internet Explorer

I am working on triggering an event when scrolling to a specific height. I have code that successfully adds a style in Chrome, but it is not functioning properly in IE. Can anyone provide assistance? myID = document.getElementById("subnav"); var mySc ...

Transferring information from one website to another

I need to transfer content from one website to another while maintaining good SEO practices. Using Iframes is not an option, and PHP won't work in the CMS I'm using. I attempted a different approach: $('#target-div').load('http:/ ...

Overflow: Truncating text with an ellipsis in the center

Seeking a CSS-only solution for adding an ellipsis in the middle of a string when it exceeds its container. I have tried splitting the container in half, trimming the first half with a wrapper on a whole letter and adding an ellipsis to the front of the s ...

"Styling with CSS: Create a sleek border-bottom and background effect

I want to add a bottom border and background color on mouse over. Almost there! In the example below, hovering over the span gives an underline. However, I need the underline to display when entering the hyperlink area. a{ text-decoration: none; paddin ...

Sliding left and right with the help of jQuery

Hey there! I'm currently working on designing a sliding menu bar that can move left or right based on user interaction with arrow buttons. When the user hovers over the right arrow, the navigation bar smoothly slides from right to left until it reache ...

What is the CSS technique for concealing the content of an ordered list item while retaining the marker?

In our order process, we utilize an ordered list to display the steps in sequence: <ol> <li>Products</li> <li class="active">Customer</li> <li>Payment</li> </ol> On desktop view, it appears a ...

How to position child divs at the center of a parent div

I am looking to set the maximum width of the "circlecontainer" to 300px, but I also want my 4 child divs (each with a max width of 300px) to remain centered in the browser when it exceeds a width of 1200px. Currently, they are aligned to the left side. Be ...

JavaScript error message stating that the setAttribute function is null

As a newcomer to JS, I am currently working on creating a task list webpage that allows users to submit projects and create task lists within each project with designated due dates. In order to generate unique ID tags for projects and tasks, I utilized UU ...

What sets justify-content apart from align-items?

I'm really struggling to grasp the distinction between these two properties. After conducting some research, it appears that justify-content can handle... space-between and space-around, while align-items is capable of... stretch, baseline, initial, a ...

Tips for fetching integer numbers in a string in JavaScript in sequential order starting from the left side

Within an input element, users are required to input the price of a product. <input size=10 type="text" id="prd_price" title="prd_price" name="prd_price"> Users have the ability to enter Currency Symbols along with other characters, and we cannot ...

Tips for disabling viewport resizer while accessing the Console panel in Chrome using Control+Shift+J

Currently, I am utilizing the viewport resizer in Chrome to preview how my code appears on various devices. However, I have encountered an issue - whenever I try to access the console using ctrl + shift + j, the viewport resizer opens instead. You can obs ...

Scrolling infinitely in every direction - both upwards and downwards

I'm currently working on a page that I want to have an endless scrolling effect both up and down. Right now, I am using jQuery to move content from the top of the page to the bottom. This gives a smooth loop when scrolling down, but I also want it to ...

Incorporate a fontawesome icon into a dynamically created button using ajax

Is it possible to insert fontawesome icons into a button created using this code snippet? $.each(response, function (i, item) { trHTML += '<tr><td>' + item.name + '</td><td>' + "<input type='button&apo ...

How can I eliminate the empty spaces around a bar chart in Kendo UI?

Struggling to eliminate the extra space surrounding the Kendo UI chart below. Could this be due to a gap or spacing issue? The goal is to create a single-line bar chart with only grey appearing on the right side. Access JSFiddle Codes Here $(doc ...

Why won't my JavaScript addEventListener activate on form submission?

I have a basic question as a beginner in JavaScript. I am facing some challenges with my first task involving JavaScript. I decided to learn JS by creating a TODO List, but I am stuck right at the beginning. The event listener that should respond when the ...

get the value of the last selected element using jQuery

I am facing an issue where I cannot retrieve the selected value from my second select element. Even though I have selected the second option in the dropdown, it keeps returning the value of the first option as empty. Here is a snippet of the HTML code: & ...

Height of CSS border-top

I'm facing an issue with setting the height of my top border. It seems like a traditional solution is not possible based on what I have read so far. However, I am determined to find a workaround for this problem. My goal is to have the border align at ...