Style and Layout

Layout


The Style and Layout editor is based on the following concepts:

  • Website
    In the Style and Layout editor, Website refers to the frame within which your website content is displayed. You can edit the properties of the Website frame under Global style.
  • Website exterior
    The Website exterior is what surrounds the Website within the browser window. You can edit the properties of the Website frame under Global style.
  • Blocks
    Blocks are the groups of elements (Components) of your website that define its layout. Blocks are of 3 types: headers, columns, footers. You can have several blocks of each type – for example, several headers. To edit the properties of a Block, just click on it (but not on a component) and its settings will appear in the right-hand side panel.
  • Components
    Components are where the actual pieces of content, similar to widgets. There are many types of Components (e.g. text, image, search box…). You can freely add, remove and move Components. To edit the properties of a Component, just click on it and its settings will appear in the right-hand side panel.
  • Pinned blocks and components
    Pinned blocks and components do not follow your website layout: they are layered on top of the layout, and stay pinned to the frame of the browser. They don’t move when you scroll the page.
    (To create a pinned block/element that takes the full width or the full height of the browser window, use the value 100% for its width or minimum height, and make sure the internal margin is 0 on the longest edge)

Hierarchy of styles

Within the hierarchy Website – Block – Component, styles applied to a “parent” apply to its “children” too.

For example, a change in style at the “Website” level will apply to all Blocks and Components, unless they have their own style (i.e. style field not blank). Similarly, a change in style at a Block level will apply to its Components too, unless the Components have their own style.

To unset a Component or a Block’s own style so that it inherits its parent’s style, just leave the style field blank.

It is recommended to strive to apply styles at the highest possible hierarchy level to make it easier to change them later on.

Understanding margins

Blocks and Components containers have both internal and external margins:

There are several ways to specify margin values. Examples:

  • 20px -> 20 pixel-wide margin on all sides or the element
  • 0 20px -> no margin on top/bottom, 20 pixel margin on left/right-hand sides
  • 0px 10px 20px 30px -> going clockwise: no margin on top, 10 pixel margin on right-hand side, 20 pixel on bottom side, 30 pixel on left-hand side

Sizes

Heights and width values can be specified:

  • In pixel values, e.g. 100px
  • In percentages of the available space in the layout, e.g. 90%

Borders and rounded corners

Borders are defined in the standard condensed CSS format. Examples:

  • 1px solid white -> white border of 1px width
  • 3px dotted #112233 -> 3px-wide dotted border of RGB color #112233 (See e.g. PhotoShop color info to translate color values into this format)

In addition, you can define rounded corners. For example, a rounder corners value of 10px will create round corners with a radius of 10px.

NOTE: Rounded corners are not supported by Internet Explorer prior to version 9, so visitors with older IE browsers always see square corners.

Shadows

You can also add shadows to blocks and components. The shadow value is defined as in the CSS3 standard.

Example:
8px 9px 5px #666666 creates a shadow of color #666666 (mid-grey) that extends 8 pixels below the element and 9 pixels to its right-hand side, with 5 pixels of blur.

For a smarter way to define he shadow color, you can also specify its value so that it depends on the background. For example:
10px 10px 5px rgba(0,0,0,0.4) creates a shadow that is black (RGB values 0,0,0), with a transparency of 0.4. Therefore, it will appear e.g. dark blue if the background is blue.

NOTE: Shadows are not supported by Internet Explorer prior to version 9, and are not visible to visitors with older IE browsers.

18 Responses to Style and Layout

  1. I have been trying to work out if there is a way to lock the header block, so that it stays visible all the time, and only the items below, slideshow, galleries etc are the only part of the website that scrolls?

    Anyone have any ideas? I am a complete web novice and just in the first stages of planning and completing my website.

    Thanks.

    • PhotoDeck says:

      Hello Doug – if you know CSS, that can be achieved with custom CSS to set the header position as “fixed”, and changing the top-margin for the rest of the page. Any designer should be able to do that for you.

    • PhotoDeck says:

      Scrap that, we have now introduced Pinned Blocks for this purpose! See update above ;)

  2. Hi J-F, cool new stuff!! Unable to work out the pinned blocks. Like to have my header and menu pinned but they keep on scrolling

    Regards Vincent

    • PhotoDeck says:

      You need to create new pinned blocks and move your header / menu contents there ;)

  3. Hi. I am trying to create a pinned header block to replace my current header block. Within my new pinned block, I am adding components, but there doesn’t seem to be a choice to add the Search component. Search doesn’t show up in the existing components (when I have my new pinned block selected), and it doesn’t show up in the list of possible components to create.

    • PhotoDeck says:

      Hi Diana,

      Could it be that you already have a search component elsewhere in your design? There can be only one at a time.

    • Well, it is still in the original header block, which I didn’t want to delete until I was sure the pinned block was going to work. I guess once I am sure everything else is fine I can delete the header block.

      So far, though, the pinned header only seems to be pinned to my home page; even though I selected the pinned block in global layout, it seems that the pinned header shows up on my home page, but when I go to any other page, it is the other header that I haven’t deleted which shows up (and is not pinned).

  4. chris says:

    Hi
    How do I change the font style etc in the text box on the pricing page ? I can see how to edit the words, but not the font style.
    Many thanks
    Chris

    • PhotoDeck says:

      Hello Chris,

      Actually you canot change the style of that box, it inherits from your website’s overall style.

  5. dan payne says:

    Thanks very much for the quick reply about putting border around pictures in the gallery.

    Unfortunately it hasn’t worked exactly as I wanted.

    I can get a drop shadow or border around the thumbnails in the gallery but when you click to enlarge them you don’t get a border or drop shadow around the image.

    I have played around and seem to be able to get it around the container, but this does not look right as it is not around the actual image.

    Sorry if it a simple answer.

    Thanks

    Dan

    • PhotoDeck says:

      Hi Dan,

      You’re right, there is unfortunately no option yet to add borders or shadows around the enlarged images. It requires custom CSS work.

  6. Hi

    Been trying for two days now to correct the very heavy bold font that only seems to be in use on the RM image purchase page as in http://prestige-pictures.photodeck.com/-/images/lights/-/medias/37952ca6-370a-11e1-91d4-45e16cab72f6-christmas-lights-in-english-market-town/price/9c8d5814-2737-11e1-b2cb-bfbb50f60ff0?=Buy%20License

    Any which CSS rule controls this?

    Thanks

    Alex

  7. Trying to get any of the theme’s I select to appear as they are in the examples. For now anyway, I’d like the layout to appear as the examples with a large image on top and three thumbnails under.
    I’m sure I’m overlooking something very simple.

    • PhotoDeck says:

      To achieve this, simply add a slideshow (it can have a single image in it) to the frontpage, under “My Images and Videos”, and it will display it above the gallery thumbnails.

  8. Hi Photodeck. I have made by background color white, but cannot determine how to change color of the arrows on the image detail page. I promise I’ve tried every field in the editor – before this post.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

For spam filtering purposes, please copy the number 6081 to the field below: