![]() |
|||||||||
The table also has a background image (see below). As links are added to the navigation, the table stretches down and the background image repeats nicely.
The left panel also has a background image (see below).
Repeating images cause some ugly problems and look very unprofessional. A little CSS can take care of these issues quite simply. If you're not confident with CSS, spend time checking the height and width of your panels, then try removing text or images that you have added. The answer will usually be that something you have added is pushing the panel open further than the height or width of the background image, causing it to repeat. In case the navigation pushes the table wider than the background images, we can set up some CSS that tells the images to repeat only down rather than down and across which is the default. <style> .repeat td.XSP_LEFT_PANEL_SPC </style> We then need to add the class .repeat to the <table> tag, like this: <TABLE class=repeat width=160 cellSpacing=0 cellPadding=0 background=left.jpg border=0> The class td.XSP_LEFT_PANEL_SPC is already in the default XSite Pro HTML, so we don't have to do anything further with that. The page footer has a background colour to match the background colour for the Web page, which helps disguise the recognizable page footer that XSite Pro creates.The right panel is 20 pixels wide and is used only to give a little white space to the right of the text. The main panel footer is also set to 20 pixels and used for the same purpose. The reason for using these panels as spacers like this is because the left hand image includes a large white strip and adding padding to the main panel would make this gap even wider. Therefore our main panel padding is set to zero. We are compensating for this with the padding in the right panel and main panel footer. (I could have used CSS to accomplish this, but I figured I'd try to use XsitePro's built-in features as much as I could.) The Copyright statement is snugged up close to the navigation links with a little CSS. <style>
| |
||||||||
Copyright 2006 XSiteProDesigns.com. | |||||||||