Add a Side Bar to Your Topic
THESE PAGES ARE STILL UNDER CONSTRUCTION AND DO NOT NECESSARELY REFLECT THE CURRENT VERSION OF TÓPICO
In this tutorial, you'll learn how to add a sidebar to your topic.
Create a new style for the side bar
Follow these steps to create a new style for the side bar:
-
Open the stylesheet for editing;
- Click on the small button beside the stylesheet drop down;
- Select the file name that's visible in the stylesheets drop down list;
- Go to the bottom of the stylesheet;
-
On a new line, add the following style:
CSS
div.sidebar {width:144px; margin:4px; padding:4px; background:#F5F5F5; color:Black; border:1px solid Black; float:right;}
- Save the file.
The above style will float a 144 pixels wide <div> element to the right side of the published page.
Add the side bar style to the drop down list
Follow these steps to add the side bar style to the drop down list.
- Right-click on the button above the editor;
- From the popup menu, select a style list (pick your choice) to add the style to;
- Once the file is open, add the style definition below to an appropriate group;
- Save the file.
XML
<style> <name xml:lang="en">Sidebar (right)</name> <name xml:lang="fr">Encadré (droite)</name> <description xml:lang="en"/> <description xml:lang="fr"/> <elt>div</elt> <attr> <name>class</name> <value>sidebar float-right</value> </attr> </style>
Your new custom style is now ready to use. The side bar at the top right of this page was added this way.
THESE PAGES ARE STILL UNDER CONSTRUCTION AND DO NOT NECESSARELY REFLECT THE CURRENT VERSION OF TÓPICO
55 / 194