Customizing a Ning Page, Part 2
In the last article, we looked at some basic ways to customize your profile page on Ning, the software built for making social communities. Using the built-in options on the appearance page, you can make a design that looks very good indeed. I have seen some very nice examples created simply with thoughtful color selection.
If you wish to go a bit deeper in customizing your page, however, you’re going to need to do a little bit of CSS editing. To do so, you’ll want to go into your appearance page (see last article) and click the “advanced” tab. You’ll see a box there where the CSS is available for you to edit or add to. Ning allows up to 1000 characters of CSS, and you can do quite a lot with that. Here’s an example.
One of the things that I do not care for in Ning is how long a page can get if you have a lot of activity going on. With all the comments, latest activity, and blog posts, the page can creep way down. I wanted to restrict those areas of my site to a certain height using CSS.
Before doing anything to a page with CSS, you will want to install firebug, or some tool like it. Firebug is a plugin for the firefox browser that will make your life a whole lot easier if you have not used it before. Essentially, it allows you to see everything about a web page, including all the html and css information. You can use this to easily determine the id names of the divs in a page, and then what css styling is applied to that div.
Using firebug, i was able to determine that the Latest Activity section of my page was contained in a div called “xg_module_body”, then in a div called “xg_module_head”, and had the class name “xg_module_activity”. That sounds complicated, but is actually very easy to discover using firebug. There are a number of good tutorials out there for firebug, and even some youtube videos you should check out.
Once you know the structure of the thing you want to style up, you can start playing with the style options in CSS.
/* Latest Activity */ #xg_module_body, #xg_module_head h2, .xg_module_activity{ width : 540px; height : 500px; overflow : auto; margin : 3px; text-align : left; border:1px ridge #B00C34; }
The code above simply restricts the width and height properties of the div that my latest activities will appear in. With that done, the browser will by default apply scrollbars to the contents if necessary. The other items are simple enough, a thin border and a bit of margin spacing. There are a whole range of things you can edit in CSS, and there are many good reference books that can show you how.
The result for me was that I could have nice boxes rather than long pages that scroll on forever – a little bit cleaner and so easy to do. You could even copy/paste the css code from above and it would work for you as well – this is the beauty of a framework like Ning.
-t.


