Photo page layout

Single photo + Placement + Size + Fit
with simplest html markup ever.

Start guide See how it's done

Placement options

View example
Default photo is centered on screen:
<img src="photo.jpg"/>
View example
Photo placement towards the left edge of browser window:
<img src="photo.jpg" self="left"/>
View example
Photo placement towards the top edge of browser window:
<img src="photo.jpg" self="top"/>
View example
Photo placement towards the bottom and right edges of browser window:
<img src="photo.jpg" self="bottom right"/>

Size options

Photo size relative to browser width

View example
Photo size is half of the size of the browser window:
<img src="photo.jpg" self="size-1of2"/>
View example
Photo size is third of the size of the browser window:
<img src="photo.jpg" self="size-1of3"/>
View example
Photo size is quarter of the size of the browser window:
<img src="photo.jpg" self="size-1of4"/>

Fit options

Photo is scaled to fit browser window

View example
Photo is scaled to fit within browser window:
<img src="photo.jpg" fit="contain"/>
View example
Photo is scaled to cover browser window:
<img src="photo.jpg" fit="cover"/>
View example
Top transform point of cover photo:
<img src="photo.jpg" fit="cover top"/>

Combined examples

Combine placement, size and fit options for advanced photo page layout.

View example
Photo covers the right half of the screen:
<img src="photo.jpg" self="size-1of2 right" fit="cover"/>
View example
Photo (from the right) covers the left third of the screen :
<img src="photo.jpg" self="size-1of3 left" fit="cover right"/>
View example
Photo placed to the right covers two thirds of the screen:
<img src="photo.jpg" self="size-2of3 right" fit="cover"/>
View example
Photo covers the left half of the screen:
<img src="photo.jpg" self="size-1of2 left" fit="cover"/>
View example
Photo (from the right) covers the right half of the screen:
<img src="photo.jpg" self="size-1of2 right" fit="cover right"/>
View example
Photo (from the left) covers the right half of the screen:
<img src="photo.jpg" self="size-1of2 right" fit="cover left"/>

How it's done?

Single photo page guidelines: