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

What could possibly be causing the 500 server error in PHP?

It's frustrating - every time a user tries to enter their email and password, an error 500 message pops up on the server! But strangely enough, upon refreshing the page, everything seems to work just fine... So why does the server throw an error on th ...

Is it possible to create a custom tag in HTML 4?

What is a custom tag in HTML (Kindly note that I am specifically talking about the differences from XHTML)? I need to include some additional text to meet StackOverflow's posting requirements. Thanks! ...

Guide to configuring capybara-webkit for testing ajax requests and capturing screenshots containing HTML with loaded CSS and JavaScript

Having some trouble setting up capybara-webkit on my Rails 4.2.1 app. Tests are running fine, links are being clicked, and ajax calls are working, but there's one odd issue with capybara-screenshot gem. I wanted to capture html screenshots with all as ...

The image selection triggers the appearance of an icon

In my current project, I am working on implementing an icon that appears when selecting an image. The icon is currently positioned next to the beige image, but I am facing difficulties in making it disappear when no image is selected. Below are some image ...

The first-child and last-child selectors are not working properly in the CSS

In the family of elements, the first child should proudly show off the image icon for home while the last child remains humble without any background imagery: Check out the evidence here: http://jsfiddle.net/gUqC2/ The issue at hand is that the first chi ...

JavaScript generating HTML code causing malfunctions

I have been attempting to implement the IN Place Editing feature using JQuery. Below is the code snippet editinplace.js $(document).ready(function() { //When div.edit me is clicked, run this function $("div.editme").click(function() { // ...

Is it possible to alter the name of a slot before displaying the element in the shadowDOM, depending on the slot utilized in the DOM?

In my project, I am working on implementing different features for both desktop and mobile devices. Some of these features can be replaced by slots. My goal is to have a slot that can be either replaced by a desktop slot called poster-foreground, or a mobi ...

Is there a way to circumvent the mouse up event?

I want to create a feature where when a user clicks down, something specific occurs. The sequence of events includes: An action taking place (which is not the focus here). Triggering a mouse up event. Implemented with: angular, html, css. Excludes: jQue ...

What is the best method for incorporating a YouTube embedded video into an image carousel using HTML and CSS?

I'm encountering an issue with my product carousel that includes an image and a video. The image displays correctly, but when I attempt to click on the video to have it appear in the main carousel view, it doesn't function as expected. Here is a ...

Ways to reduce lag while executing a for loop

How can I optimize my prime number generation process to avoid lagging? For example, is there a way to instantly display the results when generating primes up to 1000? HTML: <!DOCTYPE html> <html> <meta name="viewport" content="width=dev ...

Discovering the positions of HTML elements rendered with WebKit (or Gecko) technology

I am seeking a way to retrieve the dimensions (coordinates) of all HTML elements on a webpage as they appear in a browser, including their rendered positions. Specifically, I need to obtain values like (top-left, top-right, bottom-left, bottom-right) Afte ...

What is the formula for determining the REAL innerWidth and innerHeight?

I am currently working on a responsive website using Bootstrap and I am looking to create an element that perfectly fits the screen size. When I set the height/width to 100%, the browser includes the toolbar, other tabs, and the Windows taskbar in the cal ...

What is the best way to align an element based on the position of another element?

I have integrated a calendar icon above a fullcalendar, and when I click on the icon, a react-datepicker pops up. Here is my CSS : .react-datepicker { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 0.8rem; background-color: ...

How do I change the class of an element using $this?

Please review the code below: $(".nwe-cl-icontext").click(function () { $(this).parent().toggleClass("nwe-active"); }) .nwe-cl-c.nwe-active { background: red; } .nwe-cl-c { background: green; } <scrip ...

Can we retrieve the CSS of an element?

Using Selenium's webdriverJS, I have automated tasks on an HTML5 page. To incorporate a CSS selector into a function, I had to rely on XPath for selecting elements: var complexXpath = "//*/div/a"; /* This is just an example */ var element = mydri ...

Tips for wrapping the content of a <span> element within a <td> element

Can someone help me figure out how to wrap the content of a <span> tag that is inside a <td>? The style I have applied doesn't seem to be working. Here's the code snippet: <td style="white-space:nowrap;border:1px solid black"> ...

What is the best method for eliminating tiny spaces between images that are aligned horizontally?

Check out this link for more details: . I am looking to eliminate the slim vertical gaps between the images in html5 without resorting to using the table cellpadding="0" cellspacing="0". Any ideas on how to achieve this? ...

The division of columns in the Bootstrap grid is malfunctioning

Recently, I embarked on my journey with Bootstrap and encountered an issue with the Grid Col System. I am aiming to center the logo and navigation bar on the page by dividing the Grid layout into 4 col-lg-4 (md-4). Subsequently, I inserted the image and na ...

Substitute the information in the table with new data

I am working with an HTML table that has 5 columns, one of which contains dates. I need to convert the date format only if the data is not empty. To achieve this, I am utilizing moment.js for date formatting. While the date format conversion works perfect ...

What steps can I take to stop a select box within a flex container from shrinking?

Currently working on some code that involves a flex container. Struggling to prevent fields from shrinking too much on smaller screen sizes. var crsdesc; //var for new window function popup(mylink) { if (!window.focus) return true; var href; if (t ...