How to Create an Email Signature with CSS

Creating an attractive and professional email signature can add a personal touch to your communications and enhance your brand. With a bit of HTML and CSS knowledge, you can create an email signature that stands out. 


Before we begin, it's important to note that not all email clients support CSS in the same way. Some strip-out styles and others have limited support. Therefore, it's crucial to keep your design simple and test it across multiple email clients.

Here's a simple guide to help you make your email signature with CSS:

Step 1: Start With Basic HTML Structure

First, you'll need to set up your HTML structure. Here's a basic template:

<div class="email-signature">

    <div class="signature-content">

        <div class="name">Your Name</div>

        <div class="title">Your Title</div>

        <div class="company">Your Company</div>



Step 2: Styling With CSS

Now, let's add some style to your signature with CSS. Remember to keep it simple. Here's an example:

<style type="text/css">

    .email-signature {

        font-family: Arial, sans-serif;

        color: #333333;


    .signature-content {

        border-top: 1px solid #333;

        padding-top: 10px;


    .name {

        font-size: 18px;

        font-weight: bold;


    .title, .company {

        font-size: 14px;



This CSS will set a sans-serif font for your email signature, add a line above it, and give some space above this line. It will also make your name stand out by making it larger and bolder.

Step 3: Add Contact Information and Social Links

You may want to include additional information like your email address, phone number, or social media links. Here's how you can add those to your HTML:

<div class="email-signature">

    <div class="signature-content">

        <div class="name">Your Name</div>

        <div class="title">Your Title</div>

        <div class="company">Your Company</div>

        <div class="contact-info">

            <span class="email"></span> | 

            <span class="phone">Your Phone Number</span>


        <div class="social-links">

            <a href="your-twitter-link">Twitter</a> | 

            <a href="your-linkedin-link">LinkedIn</a>




And add corresponding CSS:

.contact-info, .social-links {

    font-size: 12px;

    margin-top: 5px;


.social-links a {

    color: #333333;

    text-decoration: none;


Step 4: Testing

After crafting your email signature, you should test it on multiple email clients (like Gmail, Outlook, Apple Mail, etc.) to ensure it displays correctly. There are tools like Litmus and Email on Acid that can help you do this.

Step 5: Implementing Your Signature

To use your signature, copy the HTML with the embedded CSS and paste it into your email client's signature settings. The exact steps will depend on your email client. 

Please remember that creating a complex email signature with CSS might not work as expected due to the varying levels of CSS support in different email clients. Always test your signature, and when in doubt, lean towards simplicity. Here's how you can set up your email signature in some popular email clients:


  • Click on the gear icon in the upper right corner and select "See all settings."
  • Scroll down to the "Signature" section and click on "Create new."
  • Paste your HTML code into the box. Gmail will render the HTML and display your signature.
  • Click "Save Changes" at the bottom of the page.


  • In Outlook, go to File > Options > Mail and then click on the "Signatures" button.
  • In the new window that opens, click "New" to create a new signature.
  • Name your signature and then in the "Edit signature" box, paste your HTML code.
  • Click "OK" to save your signature.

Apple Mail

  • Go to Mail > Preferences from the menu in Apple Mail.
  • Go to the "Signatures" tab.
  • Click on "+" to add a new signature.
  • Paste your HTML code into the right-hand side box.

SOGo Webmail

  • Log in to your SOGo Webmail account.
  • Click on the gear icon (Preferences) at the top right corner of the screen.
  • From the drop-down menu, select "Mail".
  • On the left side, under the "Mail" section, click on "Signatures".
  • Click on the "+" button to create a new signature.
  • You will be prompted to enter a signature name and the signature content. Paste your HTML code into the "Signature" field. Please note that SOGo Webmail might not support complex CSS, so it's best to keep your signature relatively simple.
  • Once you've pasted your HTML code, check the box for "This signature is HTML" if it is not already checked.
  • After you have entered your signature, click "Save and Close" to save your new signature.
  • Under "Mail Preferences" on the left, click on "Default Identity". Here, you can set your new signature as the default for new messages and replies/forwards.

Thexyz Email

  • Log in to your Thexyz Email account.
  • Click on the "Settings" gear icon at the upper right corner of the webmail dashboard.
  • On the left pane, click on "Composing Email", then select "Signatures".
  • Click on "Add New Signature". A new window will appear.
  • Input a name for your new signature in the "Signature Name" field. This is useful if you will have multiple signatures.
  • In the "Signature" field, paste the HTML code of your email signature. Please note that Thexyz might have limitations on the types of HTML and CSS that it will accept, so it's best to keep your signature relatively simple. Thexyz webmail uses a rich text editor, which allows you to add simple formatting like bold, italics, and underline.
  • If you want this to be your default signature for all outgoing emails, check the box that says "Use this signature by default".
  • Finally, click "Save" to save your new email signature.
  • Now, when you compose a new email, your signature should automatically appear at the bottom of the email body.

Step 6

If your email signature isn't displaying as expected, it might be due to your email client not fully supporting CSS. Here are some steps to troubleshoot:

Simplify your CSS: Stick to basic properties and values. Avoid complex selectors.

Use inline CSS: If your email client supports it, consider using inline CSS instead of embedded CSS. Inline styles are added directly to the HTML elements and are less likely to be stripped out by email clients.

Use a tool or service: There are several tools and services that allow you to create professional email signatures that are compatible with various email clients. These might be a good alternative if you're having trouble.

Creating a personalized email signature with CSS and HTML is a great way to add a professional touch to your communications. Just remember to keep it simple, test across multiple email clients, and troubleshoot as needed. With a bit of practice, you'll soon have an eye-catching signature that enhances your personal or corporate brand. Happy coding!

Posted in

How to have a animated GIF image as the background of a website

Using an animated GIF as the background of a website can be done using CSS. Here's a step-by-step guide on how to do it:

Upload your GIF: First, you need to upload your GIF to your website server or an image hosting service. Once uploaded, get the URL of the GIF.

Set the GIF as a background image: You can use CSS to set the GIF as the background of an element or the whole website. Here's an example on how to set the GIF as the background of the whole website:

body {

  background-image: url('path_to_your_gif.gif');

  background-repeat: no-repeat;

  background-size: cover;


In the url('path_to_your_gif.gif'), replace 'path_to_your_gif.gif' with the URL of your GIF.

This will set the GIF as the background image of your website, it will not repeat and it will cover the whole background.

If you want your GIF to repeat (tile) across the background, you can use background-repeat: repeat;.

If you want the GIF to be fixed as you scroll down the page, you can use background-attachment: fixed;.

If you want the GIF to automatically resize according to the viewport, you can use background-size: 100% 100%; instead of background-size: cover;.

Remember, while using animated GIFs can be a fun way to add some life to your website, they can also be distracting and potentially slow down your website's load time. So, use them sparingly and ensure they enhance the user experience rather than detract from it. It may be a good idea to compress the GIF before uploading. 

Posted in

How to Hide Featured Images on WordPress Posts

Featured images can add a great visual element to your WordPress posts, but there may be times when you want to hide them. For example, you might want to hide the featured image if it's not relevant to the content of the post, or if you're using a plugin that already displays an image.

If your WordPress theme doesn't provide an option to hide featured images, don't worry - you can easily achieve this by adding a few lines of code to your site. Here's how you can do it:

Step 1: Access the Admin Panel

First, log in to your WordPress dashboard and go to the Admin Panel.

Step 2: Navigate to Additional CSS

Next, navigate to the Appearance section and click on Customize. From there, select Additional CSS.

Step 3: Add the Code

Copy and paste the following code into the Additional CSS section:

.entry-content img {

  display: none;


This code will hide the featured image for all single posts on your website.

Step 4: Hide the Featured Image for a Particular Post

If you want to hide the featured image for a specific post, you can do so by adding the post ID to the code. To do this, use the following code:

.post-12345 .post-image {

  display: none;


Make sure to replace "12345" with the actual post ID of the post where you want to hide the featured image.

Note: Keep in mind that this code will only hide the featured image from the specific page or post. The image will still be available in your media library.

Force the DIVI secondary to not merge with the mobile menu and remain even on mobile

You can force the menu items to remain visible in the secondary header on mobiles using this CSS:

@media screen and (max-width: 980px) {

#page-container {

padding-top: 0px !important;


#top-header {

position: static !important;

display: block !important;


#top-header .container {

padding-top: 0.75em !important;


#page-container #main-header {

position: relative !important;

top: 0 !important;


#top-header #et-secondary-menu,

#top-header #et-secondary-nav {

display: block !important;


#top-header #et-secondary-nav li {

text-align: center !important;


#et-main-area {

padding-top: 1px;



CSS tricks to add some creativity and flair to your website

Here are a few fun CSS tricks that you can use to add some creativity and flair to your website or web application:

Text Shadow: You can add a shadow to text by using the text-shadow property. For example:

h1 {

  text-shadow: 2px 2px #ff0000;


This will create a red shadow 2 pixels to the right and 2 pixels down from the text.

Gradient Background: You can create a gradient background using CSS by setting the background-image property to a linear or radial gradient. For example:

body {

  background-image: linear-gradient(to bottom, #ff0000, #0000ff);


This will create a gradient that goes from red to blue from top to bottom.

Animations: CSS animations allow you to add movement and interactivity to your website. You can use the @keyframes rule to define an animation and then apply it to an element with the animation property. For example:

@keyframes example {

  from {

    transform: translateX(0);


  to {

    transform: translateX(100px);



.element {

  animation: example 2s linear;


This will make the .element move horizontally 100 pixels to the right over the course of 2 seconds using a linear easing.

Transform: The transform property allows you to scale, rotate, and translate elements. For example:

.element {

  transform: rotate(45deg);


This will rotate the .element 45 degrees clockwise.

These are just a few of the many creative things you can do with CSS. I encourage you to explore more and see what kind of effects you can create!

Posted in

Handy CSS hacks for Gravity Forms

Gravity Forms is a popular plugin for WordPress that allows you to create custom forms for your website. The plugin includes a wide range of styling options, but you can also use CSS to further customize the appearance of your forms. Here are some handy CSS hacks you can use to customize your Gravity Forms:

  1. Change the font: You can change the font of your forms by adding the following code to your site's CSS: "font-family: 'your font name';"
  2. Change the form color: You can change the color of your form by adding the following code to your site's CSS: "background-color: #hexcode;"
  3. Change the button color: You can change the color of your submit button by adding the following code to your site's CSS: "input[type='submit'] {background-color: #hexcode;}"
  4. Center the form: You can center your form on the page by adding the following code to your site's CSS: "form.gform_wrapper {margin: 0 auto;}"
  5. Change the input field width: You can change the width of your input fields by adding the following code to your site's CSS: "input[type='text'] {width: pixels;}"
  6. Add a border to the form: You can add a border to your form by adding the following code to your site's CSS: "form.gform_wrapper {border: 1px solid #hexcode;}"
  7. Add a hover effect: You can add a hover effect, such as changing the color of a button when someone hovers over it, by adding the following code to your site's CSS: "input[type='submit']:hover {background-color: #hexcode;}"
  8. Style radio and checkboxes: You can customize the appearance of radio and checkboxes in your form by adding the following code to your site's CSS: "input[type='radio'], input[type='checkbox'] {property: value;} "
It's important to note that to add custom CSS to your Gravity Forms, you will need to access your WordPress site's CSS editor and add the code to the appropriate area. Additionally, Gravity forms allow for custom styling for specific forms via the settings. It's also recommended to back up your website before making any changes to the site's code, in case something goes wrong. It's also a good idea to have a general understanding of CSS and its syntax before making any major changes, as it can make debugging and troubleshooting easier.