Terry's Second Site Tips

Customizing Your Site - Examples for User Styles

This page updated 13 Jul 2011

Version note: Applies to Second Site 3 & 4

This is one of a group of articles providing examples of how I used the capabilities of Second Site to customize my site as I preferred. This article deals with the use of the User-Style section to make advanced modifications to my selected Theme. My objective was to match the appearance of the other pages on my personal website, which are very similar to those on this website. An example of the results can be seen in my Family History pages. While you may want different results, these examples may illustrate methods you may find useful.

Other articles in this series can be found from my Customizing Your Site - Examples page.

Background

Since I was essentially creating my own Theme, I started with the Plain Theme and then made adjustments to the StyleSheets to create the look I want. More basic modifications of styles are discussed in my Examples for Stylesheets article, which discusses the hundreds options available to customize the styles used by Second Site to format your site. There are many others that cannot be changed there, but advanced users can modify them in the Stylesheets > User section, as described below. You can also create your own styles and use them in the various text fields you use to add material to your site. While you may not want to create the same look I did, perhaps this list will offer some ideas of interest, or suggest how to achieve a particular result you have in mind.

User Styles require more knowledge of CSS than the options described above, and thus should be considered an advanced feature. Help provides some useful examples, there are many Internet articles that can be helpful if you are not already comfortable with writing CSS codes, and John Cardinal's Second Site support list has many helpful people who can assist. But if such things seem like Greek to you, you may prefer to stay with the options illustrated in the other articles in this series.

Using User Styles

User Styles 1 through 5 are designed to allow a user to apply a fixed set of style parameters to either as standard style used in Second Site, or to your own custom styles. User Styles 6 through 20 are intended to allow a user to apply any parameter, not just those offered on Styles 1 through 5.

Using either set, you specify which style you are modifying by entering the name of the style in the "selector" field. If you are making the same modifications to several styles, you can enter more than one in the same field, separated by a coma and space.

The key challenge in using User Styles to modify the standard styles is identifying the CSS parameter that Second Site uses to control the portion of the web page you want to change. I have found the "Inspect Element" feature in my Opera browser to be most helpful. To use it, open a page in your site containing the element you want to modify, and select the text or other element. On the right-click menu, choose Inspect Element, and a window opens with details of the codes used by that element, and a pane on the right with all the CSS styles that apply to that element.

If you prefer to use the FireFox browser, as similar function is available if you install the Web Developer add-on. Google Chrome has a similar function. Internet Explorer has a Developer Tools function that opens with the F12 key, but it seems to be less capable. Use of one of these tools is highly recommended if you plan to use User Styles.

Using Styles 1 through 5, you choose the attribute(s) you want to modify from those listed, and enter a value for it. In some cases, you can select from a drop-down list. In Styles 6 through 20 you enter the name of the attribute, followed by the value, in the "parameters" field. Each page in Styles 6 through 20 accommodates up to ten such pairs of selectors and parameters. If you are modifying several parameters for the same style, you can enter them in the same parameters field, separated by a space or a carriage return.

For guidance on formatting the entries in both the "selector" and "parameters" fields, consult the examples below.

Enter a note in the Description field at the top of the User Style page to remind yourself of the purpose of the entries on that page (ver. 3.4 and later). For User Styles 6 through 20, it helps to group related changes on the same page so it is easier to understand their purposes when you return to them later.

Examples

The following are some User Styles I used for my family history pages. They illustrate the required format for entries, and may also suggest some modifications that you might find useful.

See the discussion in my Customizing Themes and Layouts article on the advantages of linking the colors as shown for the "color" field above, and how to do easily using the Color Picker tool. In the User styles section, this method can only be used in Styles 1 through 5..

Since the change above required only attributes offered in User Styles 1 through 5, I used one of them for this change. But the others required use of other attributes, so I used the second group, User Styles 6 through 20, for them.

While each of these examples is specific to my own preferences in how my site should appear, hopefully the offer some suggestions for changes you might want to make in your own site.

ReigelRidge Home
Terry's Tips Home
Contact Terry

 

The Second Edition of my sell-out book, A Primer for The Master Genealogist, is now available.

Details are can be seen here.

 

Copyright 2000-2012