<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Emma Stone</title>
    <description>The latest articles on Forem by Emma Stone (@codegirl12).</description>
    <link>https://forem.com/codegirl12</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1231108%2F98e93bcb-ad10-4d52-b7b8-ba712b93f0db.jpg</url>
      <title>Forem: Emma Stone</title>
      <link>https://forem.com/codegirl12</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/codegirl12"/>
    <language>en</language>
    <item>
      <title>How to Style Tables and Images in Gutenberg: A Frmenu Case Study</title>
      <dc:creator>Emma Stone</dc:creator>
      <pubDate>Mon, 11 Dec 2023 18:02:52 +0000</pubDate>
      <link>https://forem.com/codegirl12/how-to-style-tables-and-images-in-gutenberg-a-frmenu-case-study-53ic</link>
      <guid>https://forem.com/codegirl12/how-to-style-tables-and-images-in-gutenberg-a-frmenu-case-study-53ic</guid>
      <description>&lt;p&gt;How to Style Tables and Images in Gutenberg: A Frmenu Case Study&lt;br&gt;
Gutenberg, the default block editor in WordPress, has revolutionized the way we create and design content. Among its many features, styling tables and images seamlessly is a common challenge faced by content creators. &lt;/p&gt;

&lt;p&gt;In this comprehensive guide, we'll explore how to effortlessly style tables and center-align images using Gutenberg, using the popular food blog &lt;strong&gt;&lt;a href="https://frmenu.org/"&gt;FrMenu&lt;/a&gt;&lt;/strong&gt; as a case study.&lt;/p&gt;

&lt;h2&gt;
  
  
  Styling Tables in Gutenberg
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Customizing Table Appearance&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Gutenberg provides a straightforward way to create tables, but styling them to match your website's aesthetics may require some customization. Frmenu tackled this challenge with a few simple CSS adjustments:&lt;/p&gt;

&lt;p&gt;`&lt;br&gt;
/* Apply styles to Gutenberg tables &lt;em&gt;/&lt;br&gt;
.wp-block-table {&lt;br&gt;
    border-collapse: collapse;&lt;br&gt;
    border: 2px solid #000; /&lt;/em&gt; Increased border thickness &lt;em&gt;/&lt;br&gt;
    background-color: #fafafa; /&lt;/em&gt; Default background color */&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;/* Add slightly more rounded border-radius &lt;em&gt;/&lt;br&gt;
.wp-block-table, .wp-block-table th, .wp-block-table td {&lt;br&gt;
    border-radius: 8px; /&lt;/em&gt; Increased border-radius */&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;/* Optional: Add some spacing to improve visual appearance */&lt;br&gt;
.wp-block-table {&lt;br&gt;
    margin: 10px 0;&lt;br&gt;
}`&lt;/p&gt;

&lt;p&gt;This CSS code enhances the appearance of tables, providing a clean and visually appealing look to Frmenu's content.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Increased Border Thickness and Rounded Corners&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;To make tables stand out and look more modern, Frmenu opted for a slightly thicker border and added rounded corners. This not only improves aesthetics but also contributes to a more engaging user experience.&lt;/p&gt;

&lt;h2&gt;
  
  
  Center-Aligning Images
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Simplifying Image Alignment&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Center-aligning images in Gutenberg can be achieved effortlessly with a few lines of CSS. Frmenu took advantage of this technique to ensure consistency across its 600 plus pages:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;br&gt;
/* Center-align all images */&lt;br&gt;
img {&lt;br&gt;
    display: block;&lt;br&gt;
    margin-left: auto;&lt;br&gt;
    margin-right: auto;&lt;br&gt;
}&lt;br&gt;
By applying this CSS to the entire website, Frmenu automated the center alignment of all images, eliminating the need for manual adjustments on each page.&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Optimizing Visual Appeal&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Center-aligning images not only enhances the visual appeal of the content but also ensures a uniform and professional look across the entire website. Frmenu's decision to automate this process significantly reduced the time and effort required for content creators.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Styling tables and center-aligning images in Gutenberg can be a game-changer for your website's visual appeal. By following the Frmenu case study, you can leverage these techniques to streamline your content creation process.&lt;/p&gt;

&lt;p&gt;Remember, the key is to experiment and tailor the styles to match your brand's identity. With Gutenberg's flexibility and a bit of CSS magic, you can transform your content and provide a delightful reading experience for your audience.&lt;/p&gt;

&lt;p&gt;Explore these techniques on your WordPress website and witness the impact on both aesthetics and user engagement. Happy styling!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
