CSS for Google Calendar Event Date & Time Elements

custom google calendar widgetWe have just introduced new classes for the Google Calendar widget date & time components. These allow you to customize the date and time with CSS and achieve any styling you want. You can match your website style and make your Calendar Event date/time more prominent in the feed. This article focuses on the CSS used for the date/time components of your custom Google Calendar widget. You can find out more about how to use CSS to style the remaining widget components in our in-depth article on Google Calendar CSS.

Custom Google Calendar Widget CSS Classes

These are the relevant classes for Google Calendar event date/time:

‘Clock icon’ class

This class is for the clock icon which appears alongside the date/time by default. .fa.fa-clock-o Note – If you wish to hide this icon you can use: .fa.fa-clock-o {display:none!important;}

‘Time’ class

The ‘Time’ class styles the time element of the date/time. .fw-gc-feed-item-time-only

‘Date’ class

The ‘Date’ class styles the date element of the date/time. .fw-gc-feed-item-date-only

‘Date & Time’ class

This class styles both date and time components. Useful for adding a border around the whole date+time element, or to reposition the whole date+time element using margins. .fw-gc-feed-item-date
Using these CSS classes you can create a widget such as the example below. You can find the full CSS used for this custom Gcal widget here.
If you need any assistance with customizing your Google Calendar widget, please contact us and we’ll be happy to help!

HTML RSS news ticker widget

The RSS ticker (single-line) widget

tickertape widget An RSS ticker widget consists of a single line of text scrolling horizontally. They are often used to display stock prices, exchange rates, latest news etc. This widget layout is based on the old teleprinter machines which printed text onto ticker tape, a narrow strip of paper on a roll.

What is an RSS ticker widget used for?

News ticker widgets are commonly used to display stock prices, exchange rates and news headlines; although they can also serve many other uses. They also use less screen space than a regular widget as the information displayed at any one time is limited to the width of the widget and only one line of characters. Ticker widgets make useful banners for other page elements too. The above example is a Reuters feed. It was created using this custom CSS which corrects the position of the time/date and applies a gradient background. The setup screen had these settings:

The following settings in the FeedWind setup screen Are important:

Setup page item Setting Notes
Height – (No of feed items) 1 Maintains a single line tickertape
Width As required – in px or responsive Ensure the title/content characters fit into one line. Otherwise, text wrapping occurs which requires a taller widget
Scroll type Horizontal A ticker widget requires horizontal scroll. It would be possible to create a vertical scrolling tickertape, however these are very limited in use as the content is more difficult for your users to read.
Style Text This is the only style which works for a news ticker widget layout
Feed title characters 100 Ensure the whole title fits on one line for the widget width you have specified
Display content Title only You could use “Content-only” too, but not Title+Content. This is because there would be a carriage return between the title and the content. In this example we are trying to fit the text into a single line within the widget width without text-wrapping.
Time/Date Off This can be switched ON/OFF as required