#1 a fixed background image
a street artist in palma majorca
this text will scroll while the image stays fixed
click/tap the colored blocks in the header to scroll to that panel
this text will scroll while the image stays fixed
click/tap the colored blocks in the header to scroll to that panel
the panel will grow and shrink as the page is resized
With single page websites becoming more popular and also the use of fixed background images with slants to define the various sections, I thought that I would produce a simple layout using just CSS showing how easy this is.
Works in all the latest browser version, except PC Safari, including tablets and smartphones. Most tablets and smartphones do not support fixed backgrounds so on these devices the background images scroll with the page.
The layout is fully responsive using @viewport and vh, vw, vmin sizing.
You have a choice of using the vertical scrollbar to move from section to section, or use the # links in the header to jump to a specific section.
Each section can contain any code you like.
The 'slants' are produced using css border styles and can be any color you like and the angle of slant can be easily adjusted by a small change to the slant style.
The Google ads are responsive, but not 'dynamic' so you will need to reload the page to see changes to the ad size.
these edges can be any color you like
the background color should match the edge colors
a view of the lake in this national trust estate
these panels will grow and shrink with the browser size
the sea was calm and produced some great reflections
and the section grows and shrinks
for steam punk fans
just one more panel below
so the end is nigh, just the footer to go