ThemeKit Columns

Menu

Sticky Sidebar

Main Header

ThemeKit Column Sticky Sidebar Main

Main Section

A sidebar layout is very popular and is used on a huge number of website layouts create with Wordpress and its derivatives. The CSS Grid Layout Module is used here to solve the problem of a sidebar with less content than the main section. This creates an ugly, unbalanced design with a large expanse of white space.
A grid layout consists of a parent element, with one or more child elements.
This example contains two elements - an article and an aside. The relative widths are calculated in the CSS. The article and the aside are assigned relative column widths using fractional units (fr) - in this case 2fr and 1fr.
Layout Switch
On computers and tablets in landscape mode, the main and sidebar sit side by side. As the viewport width is reduced, the layout switches at the break point so that both elements become full width and the sidebar slides below the main article. In this example, the break point is set to 799px so that the sidebar drops below the main section when viewed on an tablet in portrait mode and a mobile phone in both landscape and portrait.
Content
The columns have an optional header with a min height control to keep them even.
The optional images have alt text and can be lazy loading.
The optional links can open internal/external pages and have a min width control to keep them balanced.
Layout Styles
The columns have controls for setting the relative widths and are sperated using the grid gap control.
The columns have controls for border with, color and border radius if more separation is required.

Scroll Sidebar

Sidebar

ThemeKit Column Sidebar

Main Article

The two column grid has an HTML5 <article> element for the main section and an HTML5 <aside> for the sidebar.
The relative column widths are adjustable in this case 3:2 and the grid gap adjusts their spacing.
The columns have controls for border width, color and border radius
Images
Both the images are optional. They have alt t text for the search engimes and a control to add padding if required.
The images have a lazy loading function which should be used if the item is not in the viewport at page load.

HTML5

All EverWeb Widgets and templates use HTML5 containers to lay out items. These containers are semantic and allow better indexing of the web page content by the search engines.
In the sidebar widgets the main content is in an <article> element and the sidebar in an <aside>.

© EverWeb Widgets -