• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / CSS post titles & dates in recent posts/entries sidebar widget

CSS post titles & dates in recent posts/entries sidebar widget

  • Unknown's avatar
    artypixie · Member · Oct 18, 2015 at 7:34 pm
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    Hi, I have added some space between the ‘post titles’ in the sidebar blog entries widget with #secondary .widget.widget_recent_entries to make them easier to read…

    I would now like to create a line-break before the .post-date (also, it’s very small)

    And also..reduce spacing/padding slightly below title of sidebar .widget-title

    I have experimented with setting padding to 0 em, but not really working – not sure if I have selected correct elements (using web inspector). Any advice appreciated, many thanks.

    P.s. Using custom design CSS upgrade with 2012 theme.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar
    ehtis · Staff · Oct 19, 2015 at 3:03 am
    • Copy link Copy link

    Hi there,

    Let’s see.

    I would now like to create a line-break before the .post-date (also, it’s very small)

    We can apply display: block attribute to .post-date class so that it forms its own new line:

    #secondary .post-date {
        display: block;
        margin-top: 0.6em;
        margin-left: 0;
    }

    You can adjust margin-top for the desired line spacing, with margin-left set to zero.

    And also..reduce spacing/padding slightly below title of sidebar .widget-title

    You were using the correct selector, but it had one mistake as you were placing a dot before h3. Dots are only placed before classes. :) See the following for the correct code, we’re adjusting the margin for reducing space:

    #secondary h3.widget-title {
        margin-bottom: 2px;
    }

    It’s great to see you’re using Web Inspector to try CSS changes. The best part is that you’re going to become only better at it with practice. :)

  • Unknown's avatar
    artypixie · Member · Oct 23, 2015 at 6:39 pm
    • Copy link Copy link

    Yes, the web inspector is a very useful learning tool, combined with the CSS editor, to see changes ‘live’.

    Many thanks for your help – issue solved – much appreciated!

  • The topic ‘CSS post titles & dates in recent posts/entries sidebar widget’ is closed to new replies.

Tags

  • CSS
  • lists
  • post date
  • recent entries
  • sidebar
  • spacing
  • titles
  • widget

About this topic

  • In: CSS Customization
  • 2 participants
  • 2 replies
  • Last activity 10 years
  • Latest reply from artypixie

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions